Updated on 2022-08-02 GMT+08:00

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

Table 1 Request header parameter

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

Table 2 Request body parameters

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.