How to add or overwrite one or more tags to various resources of CVM ECS
This article mainly introduces how to add or cover one or more tags to the resources of Cloud Virtual Machine ECS, which has certain reference value. Friends who need it can refer to it. I hope you all have a lot to gain after reading this article. Let's take a look at it together.
AddTags
described
When invoking this interface, you need to note:
Up to 20 tags can be added to a single Cloud Virtual Machine ECS resource.
Tag.n.Key and Tag.n.Value must match.
If the Tag.n.Key already exists on the specified resource, the new Tag.n.Value automatically overrides the original Tag value.
request parameters
return parameter
All are common return parameters. See Common Return Parameters.
example
request example
https://ecs.aliyuncs.com/? Action=AddTags&ResourceId=s-946ntx4wr&ResourceType=snapshot&RegionId=cn-shenzhen&Tag.1.Key=test&Tag.1.Value=api&
example of returned result is as
XML format
C46FF5A8-C5F0-4024-8262-B16B639225A0
JSON format
{ "RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"}
error code
The following error codes are specific to this interface. For more error codes, visit the API Error Center.
Thank you for reading this article carefully. I hope Xiaobian can share how to add or cover one or more labels to the various resources of Cloud Virtual Machine ECS. At the same time, I hope you will support us more. Pay attention to the industry information channel. Find out if you encounter problems. Detailed solutions are waiting for you to learn!