Querying Project Tags
Function
This API is used to query tags of resources of a specific type.
Calling Method
For details, see Calling APIs.
URI
GET /v3/{project_id}/{resource_type}/tags
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID |
|
resource_type |
Yes |
String |
Tagged resource type.
|
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
tags |
Array of Tags objects |
Tags |
|
total_count |
Integer |
Total number of records. |
Example Requests
Querying tags of an enterprise router
https://{erouter_endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/tags
Example Responses
Status code: 200
OK
{
"tags" : [ {
"key" : "keys",
"values" : [ "value" ]
}, {
"key" : "key3",
"values" : [ "value3", "value33" ]
}, {
"key" : "key1",
"values" : [ "value1" ]
}, {
"key" : "key2",
"values" : [ "value2", "value22" ]
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot