UpdatePublicNetworkStatus
Enables or disables public network access for a Milvus instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
milvus:UpdatePublicNetworkStatus |
update |
*Instance
|
None | None |
Request syntax
POST /webapi/network/updatePublicNetworkStatus HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
c-123xxx |
| ComponentType |
string |
Yes |
The component type. Valid value:
|
Proxy |
| PublicNetworkEnabled |
boolean |
Yes |
Specifies whether to enable public network access. |
true |
| Cidr |
string |
No |
The CIDR block. |
192.168.**.**/24,172.1.**.**/16 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
ABCD-1234-5678-EFGH |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrCode |
string |
The error code. |
Failed to find instance |
| ErrMessage |
string |
The error message. |
Failed to find instance c-123xxx |
| Data |
boolean |
The returned data. |
true |
| AccessDeniedDetail |
string |
Details about the access denied error. |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxxx", "EncodedDiagnosticMessage": "xxxx", "AuthPrincipalType": "SubUser", "AuthPrincipalDisplayName": "xxxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "milvus:xxxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "ABCD-1234-5678-EFGH",
"Success": true,
"ErrCode": "Failed to find instance",
"ErrMessage": "Failed to find instance c-123xxx",
"Data": true,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxxx\", \"EncodedDiagnosticMessage\": \"xxxx\", \"AuthPrincipalType\": \"SubUser\", \"AuthPrincipalDisplayName\": \"xxxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"milvus:xxxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.