Creates an OpenSearch application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:CreateAppGroup |
create |
*AppGroup
|
None | None |
Request syntax
POST /v4/openapi/app-groups HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| name |
string |
No |
The name of the application. |
jmbon_analyzer |
| chargeType |
string |
No |
The billing method. Valid values:
|
POSTPAY |
| type |
string |
No |
The application type. Valid values:
|
enhanced |
| resourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. |
rg-acfm2ij6pwxsvua |
| tags |
array<object> |
No |
The tags. |
|
|
object |
No |
The tag object. |
||
| key |
string |
No |
The tag key. |
a |
| value |
string |
No |
The tag value. |
1 |
| quota |
object |
No |
The quota. |
|
| docSize |
integer |
No |
The storage capacity. Unit: GB. |
1 |
| computeResource |
integer |
No |
The computing resources. Unit: logical computing unit (LCU). |
20 |
| spec |
string |
No |
The specifications. Valid values:
|
opensearch.share.common |
Request body
| Parameter | Type | Required | Example | Description |
| name | String | Yes | "my_app" | The name of the application. |
| type | String | Yes | "standard" | The application type. Valid values: |
| quota | Object | Yes | The quota information for the application. For more information, see Quota | |
| chargeType | String | No | "POSTPAY" | The billing method. Valid values: |
| order | Object | No | {"duration": 1,"pricingCycle": "Year"} | The subscription details. |
| order.duration | Integer | -- | 1 | The subscription duration. The minimum value is 0. |
| order.pricingCycle | String | -- | "Year" | The unit of the subscription duration. Valid values: |
| order.autoRenew | Boolean | No | true | Specifies whether to enable auto-renewal. This parameter is valid only when the chargeType parameter is set to PREPAY. Valid values:
|
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The request ID. |
766CF6DB-CA02-3E12-7CBA-6AC21FC978FD |
| result |
object |
This parameter is left empty. |
|
| created |
integer |
The timestamp when the application was created. |
1590139542 |
| currentVersion |
string |
The ID of the current online version. |
100302903 |
| lockMode |
string |
The lock state. Valid values:
|
Unlock |
| updated |
integer |
The timestamp when the application was last modified. |
1590978265 |
| id |
string |
The application ID. |
100302881 |
| chargeType |
string |
The billing method. Valid values:
|
POSTPAY |
| hasPendingQuotaReviewTask |
integer |
The approval status of the quota. Valid values:
|
0 |
| name |
string |
The name of the application. |
lsh_test_1 |
| instanceId |
string |
The instance ID. |
- |
| chargingWay |
integer |
The billing type. Valid values:
|
1 |
| type |
string |
The application type. Valid values:
|
enhanced |
| status |
string |
The application status. Valid values:
|
normal |
| projectId |
string |
The name of the A/B test project. |
- |
| switchedTime |
integer |
The timestamp when the current online version was published. |
1590486386 |
| commodityCode |
string |
The commodity code. |
opensearch |
| expireOn |
string |
The expiration time. |
- |
| domain |
string |
The industry type. Valid values:
|
GENERAL |
| description |
string |
The description of the application. |
- |
| produced |
integer |
Indicates whether the application is created. Valid values:
|
1 |
| quota |
object |
The quota information for the application. |
|
| spec |
string |
The specifications. Valid values:
|
opensearch.share.common |
| docSize |
integer |
The storage capacity. Unit: GB. |
1 |
| computeResource |
integer |
The computing resources. Unit: LCU. |
20 |
| engineType |
string |
The engine type. |
ha3 |
Examples
Success response
JSON format
{
"requestId": "766CF6DB-CA02-3E12-7CBA-6AC21FC978FD",
"result": {
"created": 1590139542,
"currentVersion": "100302903",
"lockMode": "Unlock",
"updated": 1590978265,
"id": "100302881",
"chargeType": "POSTPAY",
"hasPendingQuotaReviewTask": 0,
"name": "lsh_test_1",
"instanceId": "-",
"chargingWay": 1,
"type": "enhanced",
"status": "normal",
"projectId": "-",
"switchedTime": 1590486386,
"commodityCode": "opensearch",
"expireOn": "-",
"domain": "GENERAL",
"description": "-",
"produced": 1,
"quota": {
"spec": "opensearch.share.common",
"docSize": 1,
"computeResource": 20
},
"engineType": "ha3"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.