All Products
Search
Document Center

Resource Management:Add multiple tags to resources in bulk

Last Updated:Jun 18, 2026

Use a public template in CloudOps Orchestration Service (OOS) to add multiple tags to multiple resources of the same type in a region in a single execution.

Background information

This example uses the OOS public template ACS-TAG-TagResourcesIgnoreCaseSensitive to add the tags CostCenter:Hangzhou and Team:Dev to two ECS instances in the China (Hangzhou) region. For other supported resource types, refer to the OOS console.

Procedure

  1. Log on to the OOS console.

  2. In the left-side navigation pane, choose Automated Task > Public Template.

  3. In the top navigation bar, select the desired region.

    Note

    By default, OOS deployed in a region can be used to manage resources only in this region. For example, OOS deployed in the China (Hangzhou) region can be used to manage ECS instances only in this region. However, OOS provides a method to manage resources deployed in other regions. If you want to call API operations in other regions, specify the region ID in the ACS::ExecuteAPI action. We recommend that you do not use this method. Therefore, in this example, you must make sure that the region in which OOS is deployed is the same as the region in which the ECS instances you want to manage reside. For more information about the limits on OOS, see Limits.

  4. On the Public Template page, find ACS-TAG-TagResourcesIgnoreCaseSensitive and click Create Execution.

  5. On the Basic Information page, configure basic information for the execution and click Next: Set Parameters.

    This example uses the default values for Basic Information.

    Note

    Set Execution Mode to Automatic. This means that all tasks in the template are automatically run in sequence, instead of as separate steps.

  6. On the Parameter Settings page, set the execution parameters and click Next: OK.

    1. In the Select Label section, specify the tags to add. You can add multiple tags. In this example, add the tags CostCenter:Hangzhou and Team:Dev.

    2. In the Select Resource section, select the region and resource type, then enter the IDs for the resources you want to tag.

      You can enter multiple resource IDs. In this example, the IDs of two ECS instances are entered.

    3. In the Advanced section, keep the default values for Rate Control and RAM Role.

  7. Confirm your settings and click Create.

View the result

If the execution status is Success on the Executions page, the tags CostCenter:Hangzhou and Team:Dev are added to the specified ECS instances. You can also verify the tags on the Instances page in the ECS console.