Creates and binds tags to specified Bastionhost instances.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the Bastionhost instances to which tags need to be created and bound. | cn-hangzhou |
ResourceType | string | Yes | The type of the resource. Set the value to INSTANCE, which indicates that the resource is a Bastionhost instance. | INSTANCE |
ResourceId | array | Yes | The resource IDs. | |
string | No | The ID of Bastionhost instance N. Valid values of N: 1 to 20. NoteYou can call the DescribeInstances operation to obtain the ID of the Bastionhost instance. | bastionhost-cn-78v1gc**** | |
Tag | array | No | The tags. | |
object | No | |||
Key | string | No | The key of tag N of the instance. Valid values of N: 1 to 20. Note
| operation |
Value | string | No | The value of tag N of the instance. Valid values of N: 1 to 20. Note
| operation_test |
Response parameters
Example
Normal return example
JSON
Format
{
"RequestId": "2F24F0A8-4C69-4E89-9392-457D107E2D4A"
}
Error codes
For a list of error codes, visit the API error center.