ListPipelineJobHistorys_云效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 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

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

请求语法

POST /organization/{organizationId}/pipeline/{pipelineId}/job/historys HTTP/1.1

路径参数

字段名称字段详情
organizationIdstring

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

示例值:5ebbc0228123212b59xxxxx参考取值来源:
    GetCodeupOrganization
    ListOrganizations
pipelineIdstring

流水线 Id

示例值:123参考取值来源:
    ListPipelines
    CreatePipeline
    AddPipelineRelations
字符长度 <= 1000

请求参数

字段名称字段详情
categorystring

任务分类,暂时只支持 DEPLOY

示例值:DEPLOY枚举值:DEPLOY
identifierstring

任务标识

示例值:10_ssasasa
nextTokenstring

下一页 token

示例值:xsaxsa
maxResultsinteger<int64>

每页最大数据,最多支持 50

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

返回参数

字段名称字段详情
requestIdstring

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

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

错误信息

示例值:”“
successboolean

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

示例值:true 接口调用成功,false 接口调用失败
errorCodestring

错误码

示例值:”“
jobsarray<object>

任务列表

nextTokenstring

下一页 token

示例值:xsxxs
totalCountinteger<int32>

任务总数

示例值:20

返回示例

错误码

全局错误码
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.诊断
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
InvalidIdentifier.NotFound
space id is error or not exist.诊断
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-12-30
新增OpenAPI,获取流水线任务的执行历史

相关示例