Modifies the names of the tags that are added to assets, or modifies the tags for assets.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ModifyTagWithUuid | update |
|
| none |
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
JSON
format
{
"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 |