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

Tag Management

Table 1 Actions for tag management

Permission

API

Action

Dependent Permission

IAM Project

(Project)

Add a resource tag.

POST /v2/{project_id}/{resource_type}/{resource_id}/tags

dns:tag:set

-

Add or delete resource tags in batches.

POST /v2/{project_id}/{resource_type}/{resource_id}/tags/action

dns:tag:set

-

Delete a resource tag.

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

dns:tag:set

-

Query tags of a resource.

GET /v2/{project_id}/{resource_type}/{resource_id}/tags

dns:tag:get

-

Query project tags.

GET /v2/{project_id}/{resource_type}/tags

dns:tag:get

-

Query resources by tag.

POST /v2/{project_id}/{resource_type}/resource_instances/action

dns:tag:get

-