- API Reference
- APIs
- Interconnection with TMS
- Querying Resource Tags
Querying Resource Tags¶
Function Description¶
This API is used to query tags of a specified resource.
URI¶
URI format
GET /v1/{project_id}/waf/{resource_id}/tags
Parameter description
Table 1 Path parameters¶ Parameter
Mandatory
Type
Description
project_id
Yes
String
Specifies the project ID.
resource_id
Yes
String
Specifies the resource ID.
Request¶
Request parameters
None
Response¶
Response parameters
Parameter | Type | Description |
---|---|---|
tags | Specifies the tag list. | |
toatl | Integer | Specifies the number of tags. |
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. |
value | String | Specifies the value. Each value contains a maximum of 43 Unicode characters. The value must comply with Character Set Specifications. |
Example¶
Response example
{
"total": 2,
"tags": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value3"
}
]
}
Status Code¶
Table 4 describes the normal status code returned by the API.
Status Code | Description | Meaning |
---|---|---|
200 | OK | The request has succeeded. |
For details about error status codes, see Status Codes.