CreateEndpoint
Creates a private network endpoint for an Elasticsearch Serverless application. You can create up to 50 endpoints in each area. Currently, you can only create a VPC endpoint to connect your VPC network to the Elasticsearch Serverless network. When you invoke this operation, it creates the AliyunServiceRoleForESServerless role by default.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
es-serverless:CreateEndpoint |
create |
*All Resource
|
None | None |
Request syntax
POST /openapi/es-serverless/endpoints HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The body parameters. |
|
| endpointZones |
array<object> |
Yes |
The list of zones. |
|
|
object |
No |
|||
| zoneId |
string |
No |
The zone ID. The supported regions and zones are as follows:
|
cn-hangzhou-h |
| vswitchId |
string |
No |
The vSwitch ID. |
vsw-uf6qmfkqdcw***** |
| vpcId |
string |
Yes |
The VPC instance ID. |
vpc-uf664nyle5khp5*** |
| name |
string |
No |
The name. |
testendpoint |
| type |
string |
No |
The endpoint type. Default value: VPC. |
VPC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request result. |
||
| requestId |
string |
The request ID. |
2C5DAA30-****-5181-9B87-9D6181016197 |
| result |
object |
The result. |
|
| endpointId |
string |
The endpoint ID. |
essep-abd***dks |
Examples
Success response
JSON format
{
"requestId": "2C5DAA30-****-5181-9B87-9D6181016197",
"result": {
"endpointId": "essep-abd***dks"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.