All Products
Search
Document Center

Security Center:ModifyTagWithUuid

Last Updated:Jan 20, 2026

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

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-09-25The Error code has changedView Change Details
2024-01-12The request parameters of the API has changedView Change Details
2022-08-01The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-08-01The internal configuration of the API is changed, but the call is not affectedView Change Details