This topic describes how to modify a tag value of multiple resources at a time by using an Operation Orchestration Service (OOS) custom template.
Prerequisites
A tag is added to resources. For more information, see Create or add a tag.
Background information
In this topic, a custom template is created in OOS. This template can be used to modify
a tag value of hundreds of ECS instances at a time. In this example, a tag value of
the ECS instances is changed from OldTagValue to NewTagValue. The corresponding tag
key-value pair is changed from
TagKey:OldTagValue
to TagKey:NewTagValue
.
Note
- You can use the OOS custom template to modify a tag value for up to 1,000 resources at a time. If the number of resources is greater than 1,000, you must execute the template multiple times.
- You can use the OOS custom template to modify the tag values of any resources that support tagging in the same region. You can modify the API operations in the template to make it applicable to various resources. For more information about resources that support tagging, see Overview.For information about the resources that OOS supports, see List of supported cloud services.
Step 1: Create a template
You can perform the following steps to create an OOS custom template to modify a tag value of multiple resources.
Step 2: Execute the template
You can perform the following steps to execute the template that you created in Step 1: Create a template to modify a tag value of multiple resources.