All Products
Search
Document Center

Security Center:ModifyTagWithUuid

Last Updated:Mar 11, 2024

Modifies the names of the tags that are added to assets, or modifies the tags for assets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ModifyTagWithUuidWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
UuidListstringNo

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****
TagListstringYes

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
TagIdstringNo

The ID of the tag that you want to manage.

Note You can call the DescribeGroupedTags operation to query the IDs of tags.
3897941
MachineTypesstringNo

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: server
  • cloud_product: Alibaba Cloud service
ecs
TargetstringNo

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: the UUID of the server that you want to add or remove.

  • targetType: the method by which the server is added. Valid values:

    • uuid: by server
    • groupId: by server group
  • flag: the operation that you want to perform on the server. Valid values:

    • del: removes the tag from the server.
    • add: adds the tag to the server.
[{"target":"inet-7c676676-06fa-442e-90fb-b802e5d6****","targetType":"uuid","flag":"add"}]

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

70C4B40D-D55E-4B7B-9992-8535E396B2F4

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-12The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Target
2022-08-01The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.
2022-08-01The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.