GetPipelineScanReportUrl - Get the download URL for a scan report

Updated at:

Obtains the download URL for a pipeline scan report.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Get the endpoint and replace the {domain} placeholder in the API request syntax.

  • Get a personal access token.

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

Product

Resource

Required permission

Pipeline

Pipeline

Read-only

Request syntax

Central edition

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

Region edition

GET https://{domain}/oapi/v1/flow/pipelines/getPipelineScanReportUrl

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Personal access token

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID

5ebbc0228123212b59xxxxx

reportPath

string

query

Yes

Path to the scan report. You can obtain this path by calling the API at https://www.alibabacloud.com/help/document_detail/460565.html.

/test/test/test.html

Request examples

Central edition

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

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/pipelines/getPipelineScanReportUrl?reportPath=/test/test/test.html' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

string

Temporary download URL for the scan report, valid for one hour.

http://aliyun.com

Response example

http://aliyun.com

Error codes

For API error codes, see Error Code Center.