All Products
Search
Document Center

Web Application Firewall:TagResources

Last Updated:Apr 24, 2024

Adds tags to resources.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region in which the Web Application Firewall (WAF) instance is deployed. Valid values:

  • cn-hangzhou: Chinese mainland.
  • ap-southeast-1: outside the Chinese mainland.
cn-hangzhou
ResourceTypestringYes

The type of the resource. Set the value to ALIYUN::WAF::DEFENSERESOURCE.

ALIYUN::WAF::DEFENSERESOURCE
ResourceIdarrayYes

The IDs of the resources. You can specify up to 50 resource IDs.

stringYes

The ID of the resource.

demo.xxxaliyundoc.com-waf
Tagobject []Yes

The tags to add to the resource.

KeystringNo

The key of tag N to add to the resource. Valid values of N: 1 to 20.

demoTagKey
ValuestringNo

The value of tag N to add to the resource. Valid values of N: 1 to 20.

demoTagValue

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

57F8460F-8A62-5D79-8ED5-653C****0C6B

Examples

Sample success responses

JSONformat

{
  "RequestId": "57F8460F-8A62-5D79-8ED5-653C****0C6B"
}

Error codes

For a list of error codes, visit the Service error codes.