- API Reference
- APIs
- Tag Management
- Querying Tags of a Resource
Querying Tags of a Resource¶
Function¶
Query tags of a specified resource.
URI¶
GET /v2/{project_id}/{resource_type}/{resource_id}/tags
For details, see Table 1.
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID. You can obtain it in Obtaining a Project ID. |
resource_type | Yes | String | Resource type.
|
resource_id | Yes | String | Resource ID |
Request¶
Parameter description
None
Example request
Query tags of the private zone whose ID is ff8080825b8fc86c015b94bc6f8712c3:
GET https://{DNS_Endpoint}/v2/{project_id}/DNS-private_zone/ff8080825b8fc86c015b94bc6f8712c3/tags
Response¶
Parameter description
Example response
{ "tags": [ { "key": "key1", "value": "value1" }, { "key": "key2", "value": "value2" } ] }
Returned Value¶
If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.
For details, see Status Code.
last updated: 2024-09-27 14:30 UTC - commit: 8786d43b4013d165354726e74b1e847936cd2b3b
Page Contents