This API is used to query all resource tags of a tenant in a specified project.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
Request parameters
None
Response parameters
Parameter |
Type |
Description |
---|---|---|
tags |
Specifies the tag list. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Specifies the key. It contains a maximum of 36 Unicode characters. The key value must comply with Character Set Specifications. |
values |
List<String> |
Specifies the list of values. Each value contains a maximum of 43 Unicode characters. The value must comply with Character Set Specifications. |
Response example
{ "tags": [ { "key": "key1", "values": [ "value1", "value2" ] }, { "key": "key2", "values": [ "value1", "value2" ] } ] }
For details about error status codes, see Status Codes.