Get Object Download Information
POST/v1/storages/get-objects-download-info
Batch get object download URLs.
Request
- application/json
Body
arrayrequired
Download object request parameters in array format
- Array [
- ]
cloudObjectId Cloud object ID (string)
Responses
- 200
- default
Returned on successful call
Response Headers
X-Request-Id string
Request ID
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- v1GetObjectDownloadInfoResponseItemSuccess
- v1GetObjectDownloadInfoResponseItemError
- ]
oneOf
cloudObjectId Cloud object ID (string)
downloadUrl Download URL after object upload (not URL encoded) (string)
downloadUrlEncoded URL encoded download URL after object upload (string)
code Error code returned when the request for this object fails (string)
message Error message returned when the request for this object fails (string)
[
{
"cloudObjectId": "cloud://your-envId.bucket/file.jpg",
"downloadUrl": "https://url/file.jpg",
"downloadUrlEncoded": "https://url/file.jpg"
},
{
"code": "INVALID_PARAM",
"message": "Invalid request param."
}
]
Common error information, see https://docs.cloudbase.net/error-code/service for details
Response Headers
X-Request-Id string
Request ID
- application/json
- Schema
- Example (from schema)
- InvalidHost
Schema
code Error code (string)
message Error message (string)
requestId Request ID (string)
{
"code": "string",
"message": "string",
"requestId": "string"
}
Invalid request address
{
"code": "INVALID_HOST",
"message": "xxx",
"requestId": "xxx"
}
Loading...