If you have a large number of ApsaraDB for Redis instances, you can create tags, bind the tags to the instances for classification, and then filter the instances by tag.

Precautions

  • A tag consists of a key-value pair. The key must be unique in the same region of the same account, but the values do not need to be unique.
    Note A key can multiple values or no value at all.
  • You can edit tags for a maximum of 50 instances simultaneously.
  • You can bind a maximum of 20 tags to an instance.
  • You can bind or unbind a maximum of 20 tags at a time.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the top navigation bar, select the region where the instance resides.
  3. On the Instance List page, create a tag for a single instance or multiple instances at the same time.
    • To create a tag for a single instance, choose > Edit tags in the Action column for the target instance.
      Figure 1. Create a tag for a single instance
    • To create tags for multiple instances, select the target instances and click Edit Tags below the instance list.
      Figure 2. Create a tag for multiple instances
  4. In the Edit Tags dialog box that appears, click Create.
    Note If you have created a tag, you can select the tag from the Available Tags drop-down list to bind it to the selected instances.
  5. Set Key and Value, and then click Confirm.
    Figure 3. Set the key and value of the tag
  6. Repeat the preceding two steps to create all tags, and then click Confirm.
Note After creating a tag, you can bind it to other instances.

Related operations

Operation Description
TagResources You can call this operation to bind tags to one or more ApsaraDB for Redis instances.