Querying Project Tags
Function
This API is used to query tags of resources of a specific type.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
er:tags:list |
List |
- |
- |
- |
- |
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.