UpdateNetwork
Updates the public network configuration of an application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
es-serverless:UpdateNetwork |
update |
*All Resource
|
None | None |
Request syntax
PUT /openapi/es-serverless/instances/{appName}/networks HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appName |
string |
Yes |
The instance ID. |
autotest-8k8a8 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
array<object> |
No |
The request body. |
|
|
array<object> |
No |
The request body structure. |
||
| type |
string |
No |
The type of the IP address whitelist. Valid values:
|
PUBLIC_ES |
| enabled |
boolean |
No |
Specifies whether public network access is enabled. |
true |
| domain |
string |
No |
The domain name information. This parameter cannot be modified. |
autotest-8k8a8.serverless.cn-hangzhou.elasticsearch.aliyuncs.com |
| port |
integer |
No |
The port number. This parameter cannot be modified. |
9200 |
| whiteIpGroup |
array<object> |
No |
The whitelist. |
|
|
object |
No |
The whitelist structure. |
||
| groupName |
string |
No |
The name of the whitelist group. This parameter is required if the whiteIpGroup parameter is specified. |
default |
| ips |
array |
No |
The list of IP addresses in the whitelist group. |
|
|
string |
No |
The specific IP address or CIDR block. |
127.0.0.1 |
|
| modifyMode |
string |
No |
The modification method. Valid values:
|
Cover |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body structure. |
||
| requestId |
string |
The request ID. |
2C5DAA30-****-5181-9B87-9D6181016197 |
| result |
array<object> |
The returned result. |
|
|
array<object> |
The returned structure. |
||
| type |
string |
The type of the IP address whitelist. |
PUBLIC_ES |
| enabled |
string |
Specifies whether private network access is enabled. |
true |
| domain |
string |
The domain name. |
test-123.serverless.cn-hangzhou.elasticsearch.aliyuncs.com |
| port |
string |
The port number. |
9200 |
| whiteIpGroup |
array<object> |
The whitelist information. |
|
|
object |
The whitelist structure. |
||
| groupName |
string |
The name of the whitelist group. |
default |
| ips |
array |
The list of IP addresses in the whitelist group. |
|
|
string |
The specific IP address or CIDR block. |
127.0.0.1 |
Examples
Success response
JSON format
{
"requestId": "2C5DAA30-****-5181-9B87-9D6181016197",
"result": [
{
"type": "PUBLIC_ES",
"enabled": "true",
"domain": "test-123.serverless.cn-hangzhou.elasticsearch.aliyuncs.com\n",
"port": "9200",
"whiteIpGroup": [
{
"groupName": "default",
"ips": [
"127.0.0.1"
]
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.