Modifies the names of the tags that are added to assets, or modifies the tags for assets.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| UuidList | string | No | The UUIDs of the servers. Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
| e2737dc3-78f4-4653-a986-dc5fad4b****,c189f0e3-df22-42d5-a73d-02c05667**** |
| TagList | string | Yes | The names of the tags that you want to manage. Separate multiple tag names with commas (,). Note
You can call the DescribeGroupedTags operation to query the names of tags.
| ac,ad |
| TagId | string | No | The ID of the tag that you want to manage. Note
You can call the DescribeGroupedTags operation to query the IDs of tags.
| 3897941 |
| MachineTypes | string | No | The type of the asset to query. If you do not specify this parameter, the tags of all asset types are queried. Valid values:
| ecs |
| Target | string | No | The details of the server for which you want to manage the tag. The value of this parameter is in the JSON format and contains the following fields:
| [{"target":"inet-7c676676-06fa-442e-90fb-b802e5d6****","targetType":"uuid","flag":"add"}] |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "70C4B40D-D55E-4B7B-9992-8535E396B2F4"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-09-25 | The Error code has changed | View Change Details |
| 2024-01-12 | The request parameters of the API has changed | View Change Details |
| 2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
