Configures security groups for a specified Bastionhost instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ConfigInstanceSecurityGroups |
none |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. The default value is zh. Valid values:
|
zh |
| InstanceId |
string |
Yes |
The ID of the Bastionhost instance. Note
You can call the DescribeInstances operation to obtain the instance ID. |
bastionhost-cn-78v1gh**** |
| RegionId |
string |
No |
The region ID of the Bastionhost instance. |
cn-hangzhou |
| AuthorizedSecurityGroups |
array |
Yes |
A list of authorized security group IDs. |
sg-bp14u00sh39jvw5**** |
|
string |
No |
The ID of the authorized security group. You can specify up to 100 security group IDs. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| InstanceId |
string |
The ID of the Bastionhost instance for which the security groups are configured. |
bastionhost-cn-78v1gh**** |
| RequestId |
string |
The ID of the request. This is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot and locate issues. |
0ECCC399-4D35-48A7-8379-5C6180E66235 |
Examples
Success response
JSON format
{
"InstanceId": "bastionhost-cn-78v1gh****",
"RequestId": "0ECCC399-4D35-48A7-8379-5C6180E66235"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.