Updated on 2024-03-25 GMT+08:00

Deleting a Resource Tag

Function

This API is used to delete a resource tag.

Calling Method

For details, see Calling APIs.

URI

DELETE /v2/{project_id}/{resource_type}/{resource_id}/tags/{key}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

resource_type

Yes

String

Resource type. The value can be DNS-public_zone, DNS-private_zone, DNS-public_recordset, DNS-private_recordset, or DNS-ptr_record.

resource_id

Yes

String

Resource ID

key

Yes

String

Tag key. The key cannot be left blank or be an empty string.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

None

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

204

Response to the request for deleting a resource tag

Error Codes

See Error Codes.