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
You can call the DescribeInstances operation to query the Bastionhost instance ID. |
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 instance ID of the Bastionhost instance for which public network access is enabled. |
bastionhost-cn-78v1gh**** |
| RequestId |
string |
The request ID. The China Chinese system generates a unique ID for each request. You can use the 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.