Querying Tags of a DCS 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 Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
tags |
Array of ResourceTag objects |
Tag list. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Tag key.
|
value |
String |
Tag value.
|
Example Requests
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/tags
Example Responses
Status code: 200
Instance tags queried successfully.
{ "tags" : [ { "value" : "a", "key" : 1 }, { "value" : "b", "key" : 2 } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Instance tags queried successfully. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.