UpdatePrivateNetwrok
Modifies the private network information of an application.
Operation description
The system automatically creates a service-linked role to allow access to other Alibaba Cloud services such as Object Storage Service (OSS). OSS address requirements: The directory name must contain es-serverless, or the es-serverless:es-serverless tag must be added to the OSS bucket.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
es-serverless:UpdatePrivateNetwork |
update |
*All Resource
|
None | None |
Request syntax
PUT /openapi/es-serverless/instances/{appName}/private-networks HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appName |
string |
Yes |
The application name. |
test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
array<object> |
No |
The body parameter. |
|
|
array<object> |
No |
The body parameter. |
||
| type |
string |
No |
The type of the IP address whitelist. Valid values:
|
PRIVATE_ES |
| enabled |
boolean |
No |
Specifies whether private 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 detailed structure of the whitelist. |
|
|
object |
No |
The detailed structure of the whitelist. |
||
| groupName |
string |
No |
The name of the whitelist group. This parameter is required if the whiteIpGroup parameter is specified. |
default |
| ips |
array |
No |
The specific IP addresses or CIDR blocks. |
|
|
string |
No |
The specific IP addresses or CIDR blocks. |
127.0.0.1 |
|
| modifyMode |
string |
No |
The modification method. Valid values:
|
Cover |
| vpcId |
string |
No |
The VPC instance ID. |
vpc-uf664nyle5khp5*** |
| pvlEndpointId |
string |
No |
The endpoint ID. |
ep-bp1id6dc2568**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
2C5DAA30-****-5181-9B87-9D6181016197 |
| result |
array<object> |
The result. |
|
|
array<object> |
The result. |
||
| type |
string |
The type of the IP address whitelist. |
PRIVATE_ES |
| enabled |
string |
Indicates whether private network access is enabled. |
true |
| domain |
string |
The domain name. |
test-**.private.cn-hangzhou.es-serverless.aliyuncs.com |
| port |
string |
The port number. |
9200 |
| whiteIpGroup |
array<object> |
The detailed structure of the whitelist. |
|
|
object |
The detailed structure of the whitelist. |
||
| groupName |
string |
The name of the whitelist group. |
default |
| ips |
array |
The specific IP addresses or CIDR blocks. |
|
|
string |
The specific IP addresses or CIDR blocks. |
127.0.0.1 |
|
| vpcId |
string |
The VPC ID. |
vpc-uf6gykvwcirp886ef**** |
| pvlEndpointId |
string |
The endpoint ID. |
ep-bp1id6dc2568**** |
Examples
Success response
JSON format
{
"requestId": "2C5DAA30-****-5181-9B87-9D6181016197",
"result": [
{
"type": "PRIVATE_ES",
"enabled": "true",
"domain": "test-**.private.cn-hangzhou.es-serverless.aliyuncs.com",
"port": "9200",
"whiteIpGroup": [
{
"groupName": "default",
"ips": [
"127.0.0.1"
]
}
],
"vpcId": "vpc-uf6gykvwcirp886ef****",
"pvlEndpointId": "ep-bp1id6dc2568****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.