Querying Resource Tags
Function
This API is used to query tag information of a specified instance.
URI
GET /v2/{project_id}/{resource_type}/{resource_id}/tags
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
| resource_type | Yes | String | Resource type.
|
| resource_id | Yes | String | Resource ID. |
Request
None
Response
| Parameter | Type | Description |
|---|---|---|
| tags | Array of resource_tag objects | A list of tags. |
| count | Integer | Number of tags. |
{
"tags": [
{
"value": "",
"key": "testtest"
},
{
"value": "",
"key": "test"
}
],
"count": 0
} Error Codes
For details, see Error Codes.
Last Article: Deleting a Resource Tag
Next Article: Querying Project Tags
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.