Enable or disable the Internet-facing SLB for the FE or BE component.
Try it now
Test
RAM authorization
Request syntax
POST /webapi/network/updatePublicNetworkStatus HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Data returned by the operation. |
c-b25e21e24388**** |
| ComponentType |
string |
No |
Data returned by the operation. |
BE |
| PublicNetworkEnabled |
boolean |
No |
Enable or disable the public network. |
true |
| NodeGroupId |
string |
No |
The compute group ID. |
ng-3d5ce6454354**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code of the request. |
200 |
| RequestId |
string |
The ID of the request. |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
Indicates whether the request succeeded. |
true |
| ErrCode |
string |
The error code. |
InvalidParams |
| ErrMessage |
string |
The error message. |
Invalid params: [instance not exists]. |
| Total |
integer |
The total number of instances. |
100 |
| Data |
boolean |
Data returned by the operation. |
true |
| AccessDeniedDetail |
string |
Access denied details. |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": true,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"Total": 100,
"Data": true,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.