as
  1. Help Center
  2. AS Management
  3. Monitoring AS Groups and Instances
  4. Marking AS Groups and ECSs

Marking AS Groups and ECSs

If you have many resources of the same type, you can use a tag to manage resources flexibly. You can identify specified resources quickly using the tags allocated to them.

Using a tag, you can assign custom data to each AS group. You can organize and manage AS groups, for example, classify AS group resources by usage, owner, or environment.

Each tag contains a key and a value. You can specify the key and value for each tag. A key can be a category associated with certain values, such as usage, owner, and environment.

For example, if you want to distinguish the test environment and production environment, you can allocate a tag with the key environment to each AS group. For the test environment, the key value is test and for the production environment, the key value is production. You are advised to use one or multiple groups of consistent tags to manage your AS group resources.

After you allocate a tag to an AS group, the system will automatically add the tag to the ECSs automatically created in the AS group. If you add a tag to an AS group or modify the tag, the new tag will be added to the ECSs automatically created in the AS group. Creating, deleting, or modifying the tag of an AS group will have no impact on the ECSs in the AS group.

Restrictions of Using Tags

You must observe the following rules when using tags:
  • Each AS group can have a maximum of 10 tags added to it.
  • Each tag contains a key and a value.
  • You can set the tag value to an empty character string.
  • If you delete an AS group, all tags of it will also be deleted.

Add a Tag to an AS Group

  1. Log in to the management console.
  2. Under Computing, click Auto Scaling. In the navigation pane on the left, choose Instance Scaling.
  3. Click the AS group name. On the Basic Information page, click the Tags tab and then click Add Tag.
  4. Configure required parameters. For details, see Table 1.
    Table 1 Tag naming rules

    Parameter

    Requirement

    Example Value

    Tag Key

    • The value cannot be empty.
    • An AS group has a unique key.
    • The value consists of at most 36 characters. It cannot contain the following characters: =*<>\,|/

    Organization

    Tag Value

    • The value can be an empty character string.
    • A key can have only one value.
    • The value consists of a maximum of 43 characters. It cannot contain the following characters: =*<>\,|/

    Apache

  5. Click OK.

Modify or Delete Tags of an AS Group

  1. Log in to the management console.
  2. Under Computing, click Auto Scaling. Then, on the Auto Scaling page, click the AS Groups tab.
  3. Click the AS group name. On the Basic Information page, click the Tags tab.
  4. Locate the row that contains the tag and click Edit or Delete in the Operation column.

    After clicking Edit, configure required parameters. For details, see Table 1.

    After you click Delete, the added tag will be deleted.