Adds tags to resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:TagResources |
create |
*DefenseResource
|
None | None |
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 |
No |
The ID of the resource. |
demo.xxxaliyundoc.com-waf |
|
| Tag |
array<object> |
Yes |
The tags to add to the resource. |
|
|
object |
No |
|||
| 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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
57F8460F-8A62-5D79-8ED5-653C****0C6B |
Examples
Success response
JSON format
{
"RequestId": "57F8460F-8A62-5D79-8ED5-653C****0C6B"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.