GetPipelineEmasArtifactUrl_云效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}/pipelineRun/{pipelineRunId}/emas/artifact/{emasJobInstanceId}/{md5} HTTP/1.1

路径参数

字段名称字段详情
organizationIdstring

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

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

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

示例值:Psaxsa
md5string

emas 构建产物 md5,可通过 API https://help.aliyun.com/document_detail/460565.html

示例值:assasas
pipelineIdinteger<int64>

流水线 Id

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

流水线运行实例 id

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

请求参数

字段名称字段详情
serviceConnectionIdinteger<int64>

服务连接 id

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

返回参数

字段名称字段详情
requestIdstring

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

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

错误信息

示例值:”“
successboolean

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

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

错误码

示例值:”“
fileUrlstring

emas 构建产物临时下载地址,一个小时有效期

示例值:http://aliyun.com

返回示例

错误码

全局错误码
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,获取流水线emas构建产物临时下载地址

相关示例