Querying Tag of a Specified Instance
Function
This API is used to query the tags of an instance by its instance ID.
This API is available only in the CN North-Beijing4 region.
URI
GET /v1.0/{project_id}/instances/{instance_id}/tags
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| instance_id | Yes | String | Instance ID. |
Request
None
Response
When the status code is 200, the response parameters are as follows.
| Parameter | Type | Description |
|---|---|---|
| tags | Array of objects | List of tags. For details, see Table 2. |
| Parameter | Type | Description |
|---|---|---|
| key | String | Tag key, which
|
| value | String | Tag value, which
|
Example response
When the status code is 200, the response parameters are as follows.
{
"tags": [
{
"key": "001",
"value": "002"
},
{
"key": "003",
"value": "004"
}
]
} Return Value
| Return Value | Description |
|---|---|
| 200 | Instance tags queried successfully. |
Error Codes
None
Last Article: Adding or Deleting Tags in Batches
Next Article: Other APIs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.