Querying All Tags of a Tenant
Function
This API is used to query the tags of all resources owned by a tenant in a specified project.
This API is available only in the CN North-Beijing4 region.
URI
GET /v1.0/{project_id}/dcs/tags
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
Request
None
Response
When the status code is 200, the response parameters are as follows.
| Parameter | Type | Description |
|---|---|---|
| key | String | Tag key, which
|
| values | Array of strings | Tag value, which
|
Example response
{
"tags": [
{
"key": "001",
"values": [
"002"
]
},
{
"key": "003",
"values": [
"004"
]
}
]
} Return Value
| Return Value | Description |
|---|---|
| 200 | Successfully queried all tags of a tenant. |
Error Codes
None
Last Article: Tag Management APIs
Next Article: Adding or Deleting Tags in Batches
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.