Queries the tags that are added to a resource.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region in which the Web Application Firewall (WAF) instance is deployed. Valid values:
| cn-hangzhou |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. | caeba0bbb2be03f84eb48b699f0***** |
ResourceType | string | Yes | The type of the resource. Set the value to ALIYUN::WAF::DEFENSERESOURCE. | ALIYUN::WAF::DEFENSERESOURCE |
ResourceId | array | No | The resource IDs. You can specify up to 50 resource IDs. | |
string | No | The resource ID. | demo.xxxaliyundoc.com-waf | |
Tag | object [] | No | The tags that are added to the resource. | |
Key | string | No | The key of tag N that is added to the resource. Valid values of N: 1 to 20. | Tagkey1 |
Value | string | No | The value of tag N that is added to the resource. Valid values of N: 1 to 20. | TagValue1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0*****",
"RequestId": "716E64DA-044F-51C7-B528-2FBF****AE4F",
"TagResources": [
{
"ResourceType": "ALIYUN::WAF::DEFENSERESOURCE",
"TagValue": "TayValue1",
"ResourceId": "c754d2a4-28f1-46df-b557-9586173a****",
"TagKey": "TagKey1"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.