Updated on 2026-07-29 GMT+08:00

Adding Tags

Tags are used to identify cloud resources, such as instances, images, and disks. If you have multiple types of cloud resources which are associated with each other, you can add tags to the resources to classify and manage them easily. For more information, see Overview.

If your organization has configured tag policies for BMS, you need to add tags to your BMSs based on the tag policies. If you do not follow the policies, BMSs may fail to be created or BMS tags may fail to be added or modified. Contact your organization administrator to learn more about tag policies.

You can add tags to a BMS in the following ways:

For details about how to use predefined tags, see Using Predefined Tags.

Add Tags During BMS Creation

  1. Log in to the BMS console.
  2. Click Buy BMS.
  3. Configure the BMS parameters.

    Select Configure now for Advanced Settings and add a tag key and tag value. For the tag key and tag value requirements, see Table 1.

    For details about other parameters, see Creating a Custom BMS.

Add Tags on the BMS Details Page

  1. Log in to the BMS console.
  2. In the BMS list, click the name of the target BMS.

    The page showing details of the BMS is displayed.

  3. Click the Tags tab and then Add Tag. In the displayed dialog box, enter the tag key and tag value. For the tag key and tag value requirements, see Table 1.

    You can change the tag value after the tag is added.

Add Tags on the TMS Console

This method applies to the following scenarios:

  • Add tags with the same tag key to multiple resources. For example, allocate five BMSs to R&D projects A, B, C, D, and E, respectively.
  • Add tags with the same tag key and value to multiple resources. For example, allocate five BMSs to R&D projects, two to project A and three to project B.
  1. Log in to the TMS console.
  2. On the displayed Resource Tags page, select the region where the resource is located, select BMS-BMS for Resource Type, and click Search.

    All BMSs matching the search criteria are displayed.

  3. Perform this step if you want to add tags that have the same key to multiple BMSs.
    1. In the Search Result area, click Create Key. In the displayed dialog box, enter a key (for example project) and click OK.

      After the tag is created, the tag key is added to the resource list shown in Figure 1. If the tag is not contained in the list, click and select the created tag from the drop-down list.

      By default, the value of the tag key is Not tagged. You need to set a value for the tag of each resource to associate the tag with the resource.

      Figure 1 Resource list

    2. Click Edit to make the resource list editable.
    3. Locate the row that contains the BMS, click , and enter a value (for example A).

      After a value is set for a tag key, the number of tags is incremented by 1. Repeat the preceding steps to add tag values for other BMSs.

  4. Perform this step if you want to add tags that have the same key and value to multiple BMSs.

    In the search result area, select the BMSs to which you want to add the same tag, click Manage Tag, enter the tag key (for example, project) and tag value (for example, A), and click OK.

Using Predefined Tags

If you want to add the same tag to multiple BMSs or other resources, you can create a predefined tag on the TMS console and then select the tag for the BMSs or resources. This free you from having to repeatedly enter tag keys and values. The procedure is as follows:

  1. Log in to the TMS console.
  2. In the navigation pane on the left, choose Predefined Tags. In the right pane, click Create Tag, and enter a key (for example project) and a value (for example A) in the displayed dialog box.
  3. Choose Service List > Computing > Bare Metal Server. On the BMS console, click the name of the BMS to which you want to add the predefined tag.

    The page showing details of the BMS is displayed.

  4. Click the Tags tab and then Add Tag. In the displayed dialog box, select the predefined tag you have created.