Anti-DDoS Pro allows you to classify and query instances by using custom tags. After you create a custom tag, you can add the tag to Anti-DDoS Pro instances that have the same purpose or attribute. This allows you to classify instances and query multiple instances at a time. This topic describes how to create and manage custom tags and also query instances based on the tags.

Background information

Each tag is a key-value pair. Anti-DDoS Pro poses the following limits on tags:

  • You can add tags to only Anti-DDoS Pro instances, which are deployed in mainland China.
  • You can add up to 20 tags to an instance.
  • The key of each tag that is added to an instance must be unique. If you add a tag that has the same key as an existing tag, the value of the new tag overwrites that of the existing tag.
  • Each tag must be added to at least one instance.

Add a tag

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select Mainland China.
    If you select this region, the Anti-DDoS Pro console appears.
  3. In the left-side navigation pane, choose Assets > Instances.
  4. On the Instances page, find the instance to which you want to add a tag and click the Edit Tag icon next to a tag in the Instance column.
    Instance tags
  5. In the Edit Tag dialog box, add a tag to the instance.
    You can use one of the following methods to add a tag to the instance:
    • To add an existing tag, you can click Select Tag and select a tag key and a tag value from the tag list.
    • To create a tag, you can click Create Tag, specify Tag Key and Tag Value, and then click OK. Edit Tag

    You can add more than one tag to the instance.

  6. Click OK.
    After the tag is added, you can view the tag in the Instance column.

Query instances based on tags

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select Mainland China.
    If you select this region, the Anti-DDoS Pro console appears.
  3. In the left-side navigation pane, choose Assets > Instances.
  4. On the Instances page, select Tag from the drop-down list next to the search box and select the tag key and value.
    Tag
    Instances that have the specified tag are displayed in the instance list.

Remove a tag

You can remove tags from only one instance at a time.

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select Mainland China.
    If you select this region, the Anti-DDoS Pro console appears.
  3. In the left-side navigation pane, choose Assets > Instances.
  4. On the Instances page, find the instance from which you want to remove a tag and click the Edit Tag icon next to a tag in the Instance column.
  5. In the Edit Tag dialog box, click the Delete icon icon next to the tag that you want to remove and click OK.
    Note After a tag is removed from an instance, the tag is deleted if it is not added to other instances.