GetPipelineEmasArtifactUrl - Get a temporary download URL for a pipeline's EMAS build artifact
Use OpenAPI to retrieve a temporary download URL for a pipeline’s Enterprise Mobile Application Studio (EMAS) build artifact.
|
Applicable editions |
Central edition |
Endpoints and authorization information
-
Obtain an endpoint: Replace {domain} in the API request syntax.
-
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/getEmasArtifactDownloadUrl
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Your personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Position |
Required |
Description |
Example |
|
organizationId |
string |
path |
Yes |
The organization ID. |
5ebbc0228123212b59xxxxx |
|
emasJobInstanceId |
string |
query |
Yes |
The ID of the EMAS job. You can get this ID by calling the API operation described at https://help.aliyun.com/document_detail/460565.html. |
Psaxsa |
|
md5 |
string |
query |
Yes |
The MD5 hash of the EMAS build artifact. You can get this value by calling the API operation described at https://help.aliyun.com/document_detail/460565.html. |
assasas |
|
pipelineId |
integer |
query |
Yes |
The pipeline ID. You can get this ID by calling the ListPipelines operation. |
1111 |
|
pipelineRunId |
integer |
query |
Yes |
The ID of the pipeline running instance. |
1 |
|
serviceConnectionId |
integer |
query |
Yes |
The service connection ID. |
122 |
Request example
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/getEmasArtifactDownloadUrl?emasJobInstanceId=Psaxsa&md5=assasas&pipelineId=1111&pipelineRunId=1&serviceConnectionId=122' \
-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 EMAS build artifact. The URL is valid for one hour. |
http://aliyun.com |
Response example
http://aliyun.com
Error codes
For API error codes, see the Error Code Center.