Enables public network access for a specified Bastionhost instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:EnableInstancePublicAccess |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Bastionhost instance. Note
Call the DescribeInstances operation to obtain the ID of the Bastionhost instance. |
bastionhost-cn-78v1gh**** |
| RegionId |
string |
No |
The region ID of the Bastionhost instance. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceId |
string |
The ID of the Bastionhost instance for which public network access is enabled. |
bastionhost-cn-78v1gh**** |
| RequestId |
string |
The ID of the request. This is a unique identifier generated by Alibaba Cloud for the request. Use this ID to troubleshoot issues. |
D47B5043-FDD6-4FBE-976E-5FC67A23578F |
Examples
Success response
JSON format
{
"InstanceId": "bastionhost-cn-78v1gh****",
"RequestId": "D47B5043-FDD6-4FBE-976E-5FC67A23578F"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.