CreateApp
Creates an Elasticsearch Serverless application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
es-serverless:CreateApp |
create |
*All Resource
|
None | None |
Request syntax
POST /openapi/es-serverless/instances HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The body parameter. |
|
| appName |
string |
Yes |
The application name. |
test |
| description |
string |
No |
The application description. |
test |
| network |
array<object> |
No |
The public network information. |
|
|
array<object> |
No |
The specific structure of the public network information. |
||
| type |
string |
No |
The type of the IP address whitelist. Valid values:
|
PUBLIC_ES |
| enabled |
boolean |
No |
Specifies whether to enable public network access. |
true |
| domain |
string |
No |
The domain name information. |
test-123.serverless.cn-hangzhou.elasticsearch.aliyuncs.com |
| port |
integer |
No |
The port number. |
9200 |
| whiteIpGroup |
array<object> |
No |
The whitelist. |
|
|
object |
No |
The specific 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 list of IP addresses in the whitelist group. |
|
|
string |
No |
The specific IP address or CIDR block. |
127.0.0.1 |
|
| authentication |
object |
Yes |
The authentication information. |
|
| basicAuth |
array<object> |
No |
The basic authentication information. |
|
|
object |
No |
The basic authentication information. |
||
| username |
string |
No |
The username. This parameter cannot be specified. The system uses the application ID as the username by default. |
test-123 |
| password |
string |
No |
The password. |
Dem***23 |
| regionId |
string |
No |
The region where the application resides. |
cn-hangzhou |
| version |
string |
No |
The application version. Only Elasticsearch 8.17 is supported. |
8.17 |
| chargeType |
string |
Yes |
The billing method. Currently, only pay-as-you-go is supported. Valid value: POSTPAY. |
POSTPAY |
| quotaInfo |
object |
No |
The quota information. |
|
| cu |
integer |
No |
[Deprecated] The upper limit of the elastic compute resource for a single application. Unit: CU. |
6 |
| storage |
integer |
No |
The maximum index storage capacity for a single application. Unit: GB. You do not need to specify this value when creating an application. The system automatically sets this value based on the cu parameter. |
24 |
| appType |
string |
No |
The application type. Valid values:
|
STANDARD |
| minCu |
integer |
No |
The lower limit of the compute resource. Unit: CU. For retrieve-enhanced applications, valid values are 2, 4, 6, 8, and 16. |
2 |
| elastic |
boolean |
No |
Specifies whether to enable elastic scaling. Valid values:
|
true |
| privateNetwork |
array<object> |
No |
The private network information. |
|
|
array<object> |
No |
The specific structure of the private network information. |
||
| type |
string |
No |
The type of the IP address whitelist. Valid values:
|
PRIVATE_ES |
| enabled |
boolean |
No |
Specifies whether to enable private network access. |
true |
| whiteIpGroup |
array<object> |
No |
The whitelist. |
|
|
object |
No |
The specific 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 list of IP addresses in the whitelist group. |
|
|
string |
No |
The specific IP address or CIDR block. |
127.0.0.1 |
|
| vpcId |
string |
No |
The ID of the VPC where the endpoint resides. |
vpc-bp1jy348ibzulk6hn**** |
| pvlEndpointId |
string |
No |
The endpoint ID. |
ep-bp1id41dd116e52e**** |
| scenario |
string |
No |
The application scenarios. Valid values:
|
GENERAL |
| tags |
array<object> |
No |
The list of tags for the application. Each tag consists of a key and a value. |
|
|
object |
No |
|||
| key |
string |
No |
The key of the application tag. |
my-test |
| value |
string |
No |
The value of the application tag. |
verify-20261130 |
| dryRun |
boolean |
No |
Specifies whether to validate the request parameters and create the application. Default value: false. Valid values:
|
false |
| clientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. |
00000000-0000-4000-8000-000000000001 |
A complete request body example for creating an application is as follows:
{
"appName": "esserverlesstest",
"description": "test",
"network": [
{
"type": "PUBLIC_ES",
"enabled": true,
"whiteIpGroup": [
{
"groupName": "test",
"ips": [
"127.0.0.1"
]
}
]
}
],
"authentication": {
"basicAuth": [
{
"password": "Admin113"
}
]
},
"version": "8.17",
"chargeType": "POSTPAY",
"quotaInfo": {
"appType": "STANDARD",
"minCu": 2,
"elastic": true
},
"scenario": "GENERAL"
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body structure. |
||
| requestId |
string |
The request ID. |
2C5DAA30-****-5181-9B87-9D6181016197 |
| result |
object |
The returned result. |
|
| instaneId |
string |
The instance ID of the application. |
es-serverless-cn-xxx |
| appId |
string |
The application ID. |
demo-search-a1b |
Examples
Success response
JSON format
{
"requestId": "2C5DAA30-****-5181-9B87-9D6181016197",
"result": {
"instaneId": "es-serverless-cn-xxx",
"appId": "demo-search-a1b"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.