Obtain Object Download Information
POST/v1/storages/get-objects-download-info
Batch obtain object download URLs.
Request
- application/json
Body
arrayrequired
Download object request parameters, array format
- Array [
- ]
cloudObjectId Cloud Object ID (string)
Responses
- 200
- default
Returned on success
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 address after object upload (not URL-encoded) (string)
downloadUrlEncoded URL-encoded download address 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."
}
]
General error message. See https://docs.cloudbase.net/error-code/service
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...