Get a Resource Download URL

Retrieves a pre-signed download URL of a resource, which expires after a period of time.

Request URL

GET {base_url}/uc-cautop/api/v1/resources/download-url

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code No String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.
Query parameters
Parameter Required Type Description
resourceId Yes String The ID of the resource that has been uploaded to the resource service.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Download_URL> The download URL information of the resource.
Download_URL
Parameter Type Description
downloadUrl String The pre-signed download URL of the resource.
expiresIn Integer The expiration time of the URL, in seconds.