GetPipelineArtifactUrl - Get the download URL for a pipeline build artifact

Updated at:

Retrieve the download URL for a pipeline build artifact.

Applicable editions

Central edition

Endpoint and authorization information

  • Obtain an endpoint: Replace {domain} in the request syntax.

  • Obtain a personal access token.

  • Obtain the organizationId: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required permission

Pipeline

Pipeline

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/getArtifactDownloadUrl

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example

organizationId

string

path

Yes

The organization ID.

5ebbc0228123212b59xxxxx

filePath

string

query

Yes

The file path. For more information about how to obtain the path, see https://help.alibabacloud.com/document_detail/460565.html.

/test/test/test.tgz

fileName

string

query

Yes

The file name. For more information about how to obtain the name, see https://help.alibabacloud.com/document_detail/460565.html.

test.tgz

Request example

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/getArtifactDownloadUrl?filePath=/test/test/test.tgz&fileName=test.tgz' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

string

The temporary download URL for the file. The URL is valid for one hour.

http://aliyun.com

Response example

http://aliyun.com

Error codes

For error codes, see Error Code Center.