Querying Tags 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 AP-Singapore 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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot