Querying Tags of a Specified Instance
Function
This API is used to query the tags of an instance by its instance ID.
URI
GET /v2/{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
Example response with status code 200:
Parameter |
Type |
Description |
---|---|---|
tags |
Array of ResourceTag Objects |
List of tags. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Tag key, which:
|
value |
String |
Tag value, which:
|
Example Request
POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/tags
Example Response
Example response with status code 200:
Instance tags queried successfully.
{ "tags" : [ { "value" : "a", "key" : 1 }, { "value" : "b", "key" : 2 } ] }
Status Code
Status Code |
Description |
---|---|
200 |
Instance tags queried successfully. |
Error Code
See Error Codes.
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