Adds tags to resources.
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 |
ResourceType | string | Yes | The type of the resource. Set the value to ALIYUN::WAF::DEFENSERESOURCE. | ALIYUN::WAF::DEFENSERESOURCE |
ResourceId | array | Yes | The IDs of the resources. You can specify up to 50 resource IDs. | |
string | Yes | The ID of the resource. | demo.xxxaliyundoc.com-waf | |
Tag | object [] | Yes | The tags to add to the resource. | |
Key | string | No | The key of tag N to add to the resource. Valid values of N: 1 to 20. | demoTagKey |
Value | string | No | The value of tag N to add to the resource. Valid values of N: 1 to 20. | demoTagValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "57F8460F-8A62-5D79-8ED5-653C****0C6B"
}
Error codes
For a list of error codes, visit the Service error codes.