Modifies the quota of an OpenSearch application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:ModifyAppGroup |
update |
*AppGroup
|
None | None |
Request syntax
PUT /v4/openapi/app-groups/{appGroupIdentity}/quota HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application. |
my_app_group_name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
A client token that is used to ensure the idempotence of the request. The client generates this value to make sure that it is unique among different requests. The value can be up to 64 ASCII characters in length. |
74db41d8cd3c784209093aa76afbe89e |
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. Default value: false. Valid values:
|
false |
| body |
Quota |
No |
The request body. |
Request body
| Field | Type | Required | Example | Description |
| docSize | Integer | Yes | 1 | The storage capacity in GB. For shared general-purpose instances, the value ranges from 1 to 300. |
| computeResource | Integer | Yes | 20 | The compute resources in LCU. For shared general-purpose instances, the value ranges from 20 to 5,000. |
| spec | String | Yes | "opensearch.share.common" | The specifications. |
| orderType | String | No | "UPGRADE" | The type of the configuration change. - UPGRADE: upgrades the specifications. - DOWNGRADE: downgrades the specifications. |
For more information, see Quota.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The ID of the request. |
0A6EB64B-B4C8-CF02-810F-E660812972FF |
| result |
object |
The information about the application. |
|
| created |
integer |
The timestamp when the application was created. |
1590139542 |
| currentVersion |
string |
The current online version. |
100302903 |
| type |
string |
The type of the application.
|
enhanced |
| chargingWay |
integer |
The billing model.
|
1 |
| lockMode |
string |
The lock status.
|
Unlock |
| status |
string |
The status of the application.
|
normal |
| updated |
integer |
The timestamp when the application was last updated. |
1590978265 |
| chargeType |
string |
The billing method.
|
POSTPAY |
| id |
string |
The ID of the application. |
100302881 |
| hasPendingQuotaReviewTask |
integer |
Indicates whether a quota is pending for approval.
|
0 |
| projectId |
string |
The name of the A/B test project. |
1000 |
| commodityCode |
string |
The commodity code. |
opensearch |
| switchedTime |
integer |
The timestamp when the online version was switched. |
1590486386 |
| expireOn |
string |
The expiration time. |
1 |
| description |
string |
The description of the application. |
1 |
| produced |
integer |
Indicates whether the application is provisioned.
|
1 |
| name |
string |
The name of the application. |
lsh_test_1 |
| instanceId |
string |
The ID of the instance. |
1 |
| quota |
object |
The quota information of the application. |
|
| spec |
string |
The specifications.
|
opensearch.share.common |
| docSize |
integer |
The storage capacity in GB. |
1 |
| computeResource |
integer |
The compute resources in LCU. |
20 |
| engineType |
string |
The engine type. Valid values:
|
ha3 |
| resourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-acfmoiyerh6nzly |
Examples
Success response
JSON format
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": {
"created": 1590139542,
"currentVersion": "100302903",
"type": "enhanced",
"chargingWay": 1,
"lockMode": "Unlock",
"status": "normal",
"updated": 1590978265,
"chargeType": "POSTPAY",
"id": "100302881",
"hasPendingQuotaReviewTask": 0,
"projectId": "1000",
"commodityCode": "opensearch",
"switchedTime": 1590486386,
"expireOn": " 1",
"description": " 1",
"produced": 1,
"name": "lsh_test_1",
"instanceId": "1",
"quota": {
"spec": "opensearch.share.common",
"docSize": 1,
"computeResource": 20
},
"engineType": "ha3",
"resourceGroupId": "rg-acfmoiyerh6nzly"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.