Adds a tag to Anti-DDoS Pro instances.

Usage notes

You can call the CreateTagResources operation to add a tag to multiple Anti-DDoS Pro instances at a time.

Note Anti-DDoS Premium does not support the tag feature.


You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateTagResources

The operation that you want to perform. Set the value to CreateTagResources.

RegionId String Yes cn-hangzhou

The region ID of the instance. Set the value to cn-hangzhou, which indicates an Anti-DDoS Pro instance in the Chinese mainland.

ResourceGroupId String No rg-acfm2pz25js****

The ID of the resource group to which the Anti-DDoS Pro instance belongs in Resource Management.

If you do not configure this parameter, the Anti-DDoS Pro instance belongs to the default resource group.

ResourceType String Yes INSTANCE

The type of the resource. Set the value to INSTANCE, which indicates an Anti-DDoS Pro instance.

ResourceIds.N String Yes ddoscoo-cn-mp91j1ao****

The ID of the Anti-DDoS Pro instance to which you want to add the tag.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
Tags.N.Key String No testkey

The key of the tag that you want to add to the Anti-DDoS Pro instance.

Tags.N.Value String No testvalue

The value of the tag that you want to add to the Anti-DDoS Pro instance.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8" ?>

JSON format

HTTP/1.1 200 OK

  "RequestId" : "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"

Error codes

For a list of error codes, visit the API Error Center.