nav-img
Advanced

Deleting a Resource Tag

Function

This API is used to delete a tag from a resource.

URI

DELETE /v5/{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 defined by TMS. When HSS calls the API, the resource type is HSS.

resource_id

Yes

String

Resource ID defined by TMS. When HSS calls the API, the resource ID is the quota ID.

key

Yes

String

Key to be deleted

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

Response Parameters

None

Example Requests

Delete the tag whose key is abc, project_id is 94b5266c14ce489fa6549817f032dc61, resource_type is hss, and resource_id is 2acc46ee-34c2-40c2-8060-dc652e6c672a.

DELETE https://{endpoint}/v5/94b5266c14ce489fa6549817f032dc61/hss/2acc46ee-34c2-40c2-8060-dc652e6c672a/tags/abc

Example Responses

None

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes