LogPipelineJobRun_云效2020_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
暂无数据

请求语法

GET /organization/{organizationId}/pipeline/{pipelineId}/pipelineRun/{pipelineRunId}/job/{jobId}/logs HTTP/1.1

路径参数

字段名称字段详情
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

示例值:5ebbc0228123212b59xxxxx参考取值来源:
    GetCodeupOrganization
    ListOrganizations
pipelineIdinteger<int64>

流水线 ID,可在流水线链接中获取,如 https://flow.aliyun.com/pipelines/【PipelineId】/current

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:12222参考取值来源:
    ListPipelines
    AddPipelineRelations
jobIdinteger<int64>

任务 id,可通过 API https://help.aliyun.com/document_detail/460565.html 获取任务 Id

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:12
pipelineRunIdinteger<int64>

流水线运行实例 id

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:12参考取值来源:
    ListPipelineRuns
    StartPipelineRun
    GetReleaseStagePipelineRun

返回参数

字段名称字段详情
requestIdstring

请求 id,每次请求都是唯一值,便于后续排查问题

示例值:ASSDS-ASSASX-XSAXSA-XSAXSAXS
errorMessagestring

错误信息

示例值:""
logobject

日志

successboolean

true 接口调用成功,false 接口调用失败

示例值:true
errorCodestring

错误码

示例值:""

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidCluster.NotFound
No cluster is available to generate the workspace.诊断
400
InvalidCodeUrl.NotSupportSVN
The parameter codeUrl is invalid. SVN is not supported.诊断
400
InvalidParam.ParamNotPresent
The parameter is invalid.诊断
400
InvalidResource.NotFound
No resource is found. You cannot create the workspace. Please try again later.诊断
400
InvalidResourceRole.NotFoun
The member role is invalid.诊断
400
InvalidResourceRole.NotFound
The member role is invalid.诊断
400
InvalidUser.NotFound
The user that is invoking the API service is not a registered user.诊断
400
InvalidUser.ResourceMemberCouldNotDeleteOwner
Resource owner cannot be deleted.诊断
400
InvalidUser.ResourceMemberNotExists
The resource member does not exist.诊断
400
InvalidUser.UserNotInCurrentOrganization
The user is not in the organization.诊断
400
InvalidWorkspaceStatus.NotSuccess
The workspace status is invalid. You can only operate workspaces with the SUCCESS status.诊断
400
InvalidWorkspaceTemplate.NotFound
The parameter workspaceTemplate is not found.诊断
403
Forbidden.AccessDenied
The user is not authorized to perform the operation.诊断
403
Forbidden.UserNotAdminOrOwner
The current user is not an admin or owner in the organization and is not authorized to perform the operation.诊断
403
Forbidden.UserNotInCurrentOrganization
The user is not in the organization and is not authorized to perform the operation.诊断
404
InvalidOrganization.NotFound
The organization is not found.诊断
404
InvalidPipeline.NotFound
The pipeline is not found.诊断
404
InvalidPipelineRun.NotFound
The pipeline execution instance is not found.诊断
404
InvalidUser.UserNotInCurrentOrganization
The current user is not in the organization and has no permission to operate.诊断
404
InvalidWorkspace.NotFound
The workspace is not found.诊断

变更历史

变更时间变更内容概要操作
2021-11-25
新增OpenAPI,查询任务运行日志

相关示例