Deleting Templates with Specified IDs in Batches
Function
This API is used to delete templates with specified IDs in batches.
URI
POST /v3/vm/templates/delete
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). Minimum length: 1 character Maximum length: 16,384 characters |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
ids |
No |
Array of strings |
Specifies the IDs of the templates to be deleted. |
Response
None
Example Request
Delete the templates with the IDs of 3db302e8-95de-478c-a892-8a083f2d269b and 708847ae-f013-4b1a-8ea8-6cfa1e94237d.
POST https://{endpoint}/v3/vm/templates/delete { "ids" : [ "3db302e8-95de-478c-a892-8a083f2d269b", "708847ae-f013-4b1a-8ea8-6cfa1e94237d" ] }
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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