Modifies the relationship between tags and servers or cloud services.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyTagWithUuid

The operation that you want to perform.

Set the value to ModifyTagWithUuid.

UuidList String No 111-xx,aa-bb

The UUID of the asset for which you want to modify the tag.

Note You can call the DescribeCloudCenterInstances operation to query the UUID.
TagList String No ac,ad

The list of tag names.

Note You can call the DescribeGroupedTags operation to query the tag name.
TagId String No 8704

The ID of the tag.

Note You can call the DescribeGroupedTags operation to query the tag ID.
MachineTypes String No ecs

The type of the asset bound to the tag. Valid values:

  • ecs: Elastic Compute Service (ECS) instances
  • cloud_product: Alibaba Cloud services

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String 7E0618A9-D5EF-4220-9471-C42B5E92719F

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyTagWithUuid
&TagList=ac,ad
&<Common request parameters>

Sample success responses

XML format

<ModifyTagWithUuidResponse>
      <RequestId>70C4B40D-D55E-4B7B-9992-8535E396B2F4</RequestId>
</ModifyTagWithUuidResponse>

JSON format

{
    "RequestId": "70C4B40D-D55E-4B7B-9992-8535E396B2F4"
}

Error codes

For a list of error codes, visit the API Error Center.