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 application name. |
jmbon_analyzer |
| chargeType |
string |
No |
The billing type. 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 list of tags. |
|
|
object |
No |
The tag key-value pair. |
||
| 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 compute resource. Unit: LCU. |
20 |
| spec |
string |
No |
The specification. Valid values:
|
opensearch.share.common |
| order |
object |
No |
||
| duration |
integer |
No |
||
| pricingCycle |
string |
No |
||
| autoRenew |
boolean |
No |
||
|
No |
Request body
| Field | Type | Required | Example | Description |
| name | String | Yes | "my_app" | The application name. |
| type | String | Yes | "standard" | The application type. - standard: Standard Edition. - enhanced: Premium Edition. |
| quota | Object | Yes | The application quota information. Reference: Quota | |
| chargeType | String | No | "POSTPAY" | The billing type. - POSTPAY: pay-as-you-go (default). - PREPAY: subscription. |
| order | Object | No | {"duration": 1,"pricingCycle": "Year"} | The subscription period information. |
| order.duration | Integer | -- | 1 | The subscription period. Minimum value: 0. |
| order.pricingCycle | String | -- | "Year" | The unit of the subscription period. - Year - Month |
| order.autoRenew | Boolean | No | true | Specifies whether to enable auto-renewal. This parameter takes effect only when chargeType is set to PREPAY. Valid values: - true: Auto-renewal is enabled. - false (default): Auto-renewal is disabled. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The request ID. |
766CF6DB-CA02-3E12-7CBA-6AC21FC978FD |
| result |
object |
The result. |
|
| instanceId |
string |
The instance ID. |
- |
Examples
Success response
JSON format
{
"requestId": "766CF6DB-CA02-3E12-7CBA-6AC21FC978FD",
"result": {
"instanceId": "-"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.