获取对象下载信息
POST/v1/storages/get-objects-download-info
批量获取对象下载 URL。
Request
- application/json
Body
arrayrequired
下载对象请求参数,数组格式
- Array [
- ]
cloudObjectId 云端对象ID (string)
Responses
- 200
- default
调用成功时返回
Response Headers
X-Request-Id string
请求ID
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- v1GetObjectDownloadInfoResponseItemSuccess
- v1GetObjectDownloadInfoResponseItemError
- ]
oneOf
cloudObjectId 云端对象ID (string)
downloadUrl 对象上传后的下载地址(未进行 URL 编码) (string)
downloadUrlEncoded 对象上传后进行 URL 编码的下载地址 (string)
code 对该对象的请求出错时返回的错误码 (string)
message 对该对象的请求出错时返回的错误信息 (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."
}
]
Response Headers
X-Request-Id string
请求ID
- application/json
- Schema
- Example (from schema)
- InvalidHost
Schema
code 错误码 (string)
message 错误信息 (string)
requestId 请求 ID (string)
{
"code": "string",
"message": "string",
"requestId": "string"
}
请求地址异常
{
"code": "INVALID_HOST",
"message": "xxx",
"requestId": "xxx"
}
Loading...