Deleting OBS Assets in Batches
Function
This API is used to delete OBS assets in batches in JSON format.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/asset-center/obs/buckets/batch-delete
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID, which is used to identify a specific project. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
obs_ids |
No |
Array of strings |
OBS bucket ID. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
msg |
String |
Returned message, which is used to describe the operation result or error information. |
|
status |
String |
Return status, for example, '200', '400'. |
Status code: 201
OBS asset deleted.
Example Requests
POST /v1/{project_id}/asset-center/obs/buckets/batch-delete
{
"obs_ids" : [ "xxxx", "xxxx" ]
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OBS assets deleted in batches. |
|
201 |
OBS asset deleted. |
|
401 |
Unauthorized access. Request denied. |
|
403 |
Unauthorized operation. Request denied. |
|
404 |
Project does not exist. Batch adding failed. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot