Creates and adds tags to specified bastion hosts.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the bastion hosts to which you want to create and add tags. Note
For more information about the mapping between region IDs and region names, see Regions and zones.
| cn-hangzhou |
ResourceType | string | Yes | The type of the resource. Set the value to INSTANCE, which indicates that the resource is a bastion host. | INSTANCE |
ResourceId | array | Yes | An array that consists of IDs of bastion hosts. Valid values: 1 to 20. Note
You can call the DescribeInstances operation to query IDs of bastion hosts.
| |
string | Yes | The ID of the bastion host. | bastionhost-cn-78v1gc**** | |
Tag | object [] | No | An array that consists of tags. | |
Key | string | No | The key of tag N. Valid values of N: 1 to 20. Note
| operation |
Value | string | No | The value of tag N. Note
| operation_test |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2F24F0A8-4C69-4E89-9392-457D107E2D4A"
}
Error codes
For a list of error codes, visit the Service error codes.