Modifies the properties of an OpenSearch application or sets its online version.
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} 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 |
| body |
object |
No |
The request body. |
|
|
description |
string |
No |
The description of the application group. |
"description" |
|
currentVersion |
string |
No |
The online version of the application. |
1223232 |
|
domain |
string |
No |
The industry. Valid values:
|
"ecommerce" |
|
resourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. |
rg-**** |
|
dryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values: true and false. |
true |
Request body
|
Parameter |
Type |
Required |
Example |
Description |
|
chargingWay |
Integer |
No |
1 |
The billing model. |
|
description |
String |
No |
"my_first_app" |
The description of the application. |
|
currentVersion |
Integer |
No |
12345678 |
The ID of the application version. |
Note: This operation prioritizes setting the online version of the application. If you include the `currentVersion` parameter in the request, other parameters are ignored.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
{} |
|
|
requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
object |
The returned data. |
{} |
|
created |
integer |
The UNIX timestamp when the application was created. |
159013954 |
|
currentVersion |
string |
The ID of the current online version. |
100302903 |
|
lockMode |
string |
The lock mode of the instance. Valid values:
|
Unlock |
|
updated |
integer |
The UNIX 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. |
10030288 |
|
chargingWay |
integer |
The billable item. Valid values:
|
1 |
|
type |
string |
The type of the application. Valid values:
|
enhanced |
|
status |
string |
The status of the application. Valid values:
|
normal |
|
projectId |
string |
The name of the A/B test project. |
1 |
|
switchedTime |
integer |
The UNIX timestamp when the current online version was published. |
1590486386 |
|
commodityCode |
string |
The commodity code. |
opensearch |
|
expireOn |
string |
The expiration time. |
1 |
|
domain |
string |
The industry. Valid values:
|
GENERAL |
|
description |
string |
The description of the application. |
1 |
|
produced |
integer |
Indicates whether the application is created. Valid values:
|
1 |
| quota |
object |
The quota information of the application. |
{} |
|
spec |
string |
The specifications. Valid values:
|
opensearch.share.common |
|
docSize |
integer |
The storage capacity in GB. |
1 |
|
computeResource |
integer |
The computing resources in logical compute units (LCUs). |
20 |
|
engineType |
string |
The engine type. |
ha3 |
|
resourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-acfmoiyerh6nzly |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"created": 159013954,
"currentVersion": "100302903",
"lockMode": "Unlock",
"updated": 1590978265,
"id": "100302881",
"chargeType": "POSTPAY",
"hasPendingQuotaReviewTask": 0,
"name": "lsh_test_1",
"instanceId": "10030288",
"chargingWay": 1,
"type": "enhanced",
"status": "normal",
"projectId": "1",
"switchedTime": 1590486386,
"commodityCode": "opensearch",
"expireOn": "1",
"domain": "GENERAL",
"description": "1",
"produced": 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.