All Products
Search
Document Center

App Streaming:TagCloudResources

Last Updated:Dec 17, 2025

Creates and adds tags to cloud resources and updates the values of existing cloud resource tags.

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

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
appstreaming:TagCloudResourcesupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypestringYes

The type of the cloud resource.

Valid values:

  • CenterImageId: center image ID.
  • AppId: app ID.
  • WyId: Alibaba Cloud Workspace user ID.
  • AppInstanceGroupId: delivery group ID.
  • AliUid: tenant ID.
AppInstanceGroupId
ResourceIdsarrayNo

The resource IDs. You can specify up to 50 resource IDs. You do not need to specify this parameter if you set ResourceType to AliUid.

stringYes

The resource ID.

aig-0002
Tagsarray<object>Yes

The tags that you want to remove from the cloud resources. System and custom tags are supported.

  • Valid values for system tags:

    • System/Scheduler/GRAYSCALE: canary tags.
    • System/Scheduler/STOP_NEW_USER_CONNECTION: tags used to stop new users bound to the delivery group from establishing a connection.
  • You can create up to 20 custom tags.

Note Each tag key on a resource can have only one tag value. If you create a tag that has the same key as an existing tag, the value of the existing tag is overwritten.
objectYes

The tag of the model.

KeystringYes

The key of a tag. The value must be 1 to 128 characters in length and is case-sensitive. The name must be 1 to 128 characters in length.

Resolution
ValuestringYes

The value of a tag. The value must be 1 to 128 characters in length and is case-sensitive. The name must be 1 to 128 characters in length.

720p

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

FailedResourcesarray<object>

The cloud resources on which the operation failed and the corresponding tags.

FailedResourcesobject

The cloud resource on which the operation failed and the corresponding tag.

ResourceTypestring

The type of the cloud resource.

Valid values:

  • CenterImageId: center image ID.
  • AppId: app ID.
  • WyId: Alibaba Cloud Workspace user ID.
  • AppInstanceGroupId: delivery group ID.
  • AliUid: tenant ID.
AppInstanceGroupId

Examples

Sample success responses

JSONformat

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "FailedResources": [
    {
      "ResourceType": "AppInstanceGroupId",
      "ResourceId": "aig-001",
      "Tags": [
        {
          "Key": "System/Scheduler/STOP_NEW_USER_CONNECTION",
          "Value": true,
          "Scope": "System"
        }
      ],
      "Code": "TAG_KEY_DUPLICATED",
      "Message": "Duplicate tag keys exist."
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
500ServiceUnavailableService unavailable. Please try again later.Service unavailable. Please try again later.

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