Delete objects
POST/v1/storages/delete-objects
Batch delete objects.
Request
- application/json
Body
arrayrequired
Delete object request parameters, array format
- Array [
- ]
cloudObjectId Cloud object ID (string)
Responses
- 200
- default
Returned when the call is successful
Response Headers
X-Request-Id string
Request ID
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- v1DeleteObjectsResponseItemSuccess
- v1DeleteObjectsResponseItemError
- ]
oneOf
cloudObjectId Cloud object ID (string)
code Error code returned when the request for this object fails (string)
message Error description returned when the request for this object fails (string)
cloudObjectId Cloud object ID operated in this request (string)
[
{
"cloudObjectId": "cloud://your-envId.bucket/not-exist",
"code": "OBJECT_NOT_EXIST",
"message": "Storage object not exists."
},
{
"cloudObjectId": "cloud://your-envId.bucket/file.jpg"
}
]
General 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...