Creates and binds tags for specified Bastionhost instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:TagResources |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Bastionhost instance for which you want to create and bind tags. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type. The only valid value is INSTANCE, which indicates a Bastionhost instance. |
INSTANCE |
| ResourceId |
array |
Yes |
The list of Bastionhost instance IDs. Valid values of N: 1 to 20. Note
You can call the DescribeInstances operation to query the Bastionhost instance IDs. |
bastionhost-cn-78v1gc**** |
|
string |
No |
The Bastionhost instance ID. |
bastionhost-cn-78v1gc**** |
|
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag of the Bastionhost instance. |
||
| Key |
string |
No |
The tag key of the instance. Valid values of N: 1 to 20. Note
|
operation |
| Value |
string |
No |
The tag value of the instance. Note
|
operation_test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
2F24F0A8-4C69-4E89-9392-457D107E2D4A |
Examples
Success response
JSON format
{
"RequestId": "2F24F0A8-4C69-4E89-9392-457D107E2D4A"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.