Home  >  Article  >  Operation and Maintenance  >  Add or overwrite one or more tags to various resources of the cloud server ECS

Add or overwrite one or more tags to various resources of the cloud server ECS

坏嘻嘻
坏嘻嘻Original
2018-09-27 15:42:332010browse

The content this article brings to you is about adding or covering one or more tags to various resources of cloud server ECS. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. helped.

AddTags

Description

When calling this interface, you need to pay attention to:

Single item cloud server Up to 20 tags can be added to ECS resources.

The tag key (Tag.n.Key) and the tag value (Tag.n.Value) must match the key value.

If the tag key (Tag.n.Key) already exists on the specified resource, the new tag value (Tag.n.Value) will be used to automatically overwrite the original tag value.

Request parameters

Add or overwrite one or more tags to various resources of the cloud server ECS

##Return parameters

are all public return parameters. See Public 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
&<公共请求参数>

Return example

XML format

<AddTagsResponse>
    <RequestId>C46FF5A8-C5F0-4024-8262-B16B639225A0</RequestId>
</AddTagsResponse>

JSON format

{
  "RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

Add or overwrite one or more tags to various resources of the cloud server ECS

The above is the detailed content of Add or overwrite one or more tags to various resources of the cloud server ECS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn