Batch Deleting DCS Instances
Function
This API is used to delete multiple DCS instances at a time.
URI
DELETE /v1.0/{project_id}/instances?allFailure={allFailure}
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Project ID. For details on how to obtain the value of this parameter, see Obtaining a Project ID. |
allFailure |
String |
No |
An indicator of whether all DCS instances failed to be created will be deleted. Options: Options:
|
Request
Request parameters
Request URL:
DELETE https://{dcs_endpoint}/v1.0/{project_id}/instances?allFailure={allFailure}
Example request with allFailure set to false:
{ "instances": [ "54602a9d-5e22-4239-9123-77e350df4a34", "7166cdea-dbad-4d79-9610-7163e6f8b640" ] }
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
results |
Array |
For details about how to delete an instance, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
instance |
String |
DCS instance ID. |
result |
String |
Instance deletion result. Options: success and failed |
Example response
{ "results": [ { "instance": "54602a9d-5e22-4239-9123-77e350df4a34", "result": "success" }, { "instance": "7166cdea-dbad-4d79-9610-7163e6f8b640", "result": "success" } ] }
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