Creates and attaches tags to cloud resources. If a tag already exists on a resource, the tag value is updated.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:TagCloudResources |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The cloud resource type. Valid values:
|
AppInstanceGroupId |
| ResourceIds |
array |
No |
The list of resource IDs. A maximum of 50 resource IDs are supported. You do not need to specify this parameter when the resource type is tenant ID. |
|
|
string |
Yes |
The resource ID. |
aig-0002 |
|
| Tags |
array<object> |
Yes |
The list of tags. System tags and custom tags are supported.
Note
Each tag key on the same resource can have only one tag value. If you add a tag key that already exists, the corresponding tag value is updated to the new value. |
|
|
object |
Yes |
The tag information. |
||
| Key |
string |
Yes |
The tag key. This parameter is case-sensitive. The tag key must be 1 to 128 characters in length. |
Resolution |
| Value |
string |
Yes |
The tag value. This parameter is case-sensitive. The tag value must be 1 to 128 characters in length. |
720p |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| FailedResources |
array<object> |
The list of failed resources and tag information. |
|
|
array<object> |
The failed resource and tag information. |
||
| ResourceType |
string |
The cloud resource type. Valid values:
|
AppInstanceGroupId |
| ResourceId |
string |
The resource ID. |
aig-001 |
| Tags |
array<object> |
The list of failed tag information. |
|
|
object |
The failed tag information. |
||
| Key |
string |
Tag key. |
System/Scheduler/STOP_NEW_USER_CONNECTION |
| Value |
string |
Tag value. |
true |
| Scope |
string |
Tag Type. Valid values:
|
System |
| Code |
string |
The error code. |
TAG_KEY_DUPLICATED |
| Message |
string |
The error message. |
Duplicate tag keys exist. |
Examples
Success response
JSON format
{
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServiceUnavailable | Service unavailable. Please try again later. | Service unavailable. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.