Queries a list of OpenSearch applications.
Operation description
Filters applications by name, instance ID, and type.
Sorts applications by their creation time.
Supports paging.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:ListAppGroup |
list |
*AppGroup
|
None | None |
Request syntax
GET /v4/openapi/app-groups HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| pageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| pageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. |
10 |
| instanceId |
string |
No |
The ID of the instance. An exact match is performed. |
ops-cn-xxxx |
| name |
string |
No |
The application name. |
my_name |
| type |
string |
No |
The type of the application. Valid values:
|
standard |
| sortBy |
integer |
No |
The sort order. Valid values:
Default value: 0. |
0 |
| resourceGroupId |
string |
No |
The ID of the resource group. |
"110123123" |
| tags |
array<object> |
No |
A list of tags. |
|
|
object |
No |
|||
| key |
string |
No |
The tag key. |
foo |
| value |
string |
No |
The tag value. |
bar |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
{} |
|
| totalCount |
integer |
The total number of entries returned. |
1 |
| requestId |
string |
The request ID. |
0A6EB64B-B4C8-CF02-810F-E660812972FF |
| result |
array<object> |
The applications. For more information, see AppGroup. |
[] |
|
array<object> |
The results. |
{} |
|
| created |
integer |
The timestamp that indicates when the application was created. |
1575442875 |
| currentVersion |
string |
The ID of the current online version. |
110116134 |
| lockMode |
string |
The lock status. Valid values:
|
Unlock |
| updated |
integer |
The timestamp that indicates when the application was last updated. |
1578916076 |
| id |
string |
The application ID. |
110116134 |
| chargeType |
string |
The billing method. Valid values:
|
POSTPAY |
| hasPendingQuotaReviewTask |
integer |
The quota approval status. Valid values:
|
0 |
| name |
string |
The application name. |
os_function_test_v1 |
| instanceId |
string |
The instance ID. |
"xxx" |
| chargingWay |
integer |
The billing method. 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. |
"xxx" |
| switchedTime |
integer |
The timestamp that indicates when the current online version was published. |
0 |
| commodityCode |
string |
The commodity code. |
opensearch |
| expireOn |
string |
The time when the application expires. |
"xxx" |
| domain |
string |
The domain of the application group. |
"" |
| description |
string |
The description of the application. |
"xxx" |
| produced |
integer |
Indicates whether the application is created. Valid values:
|
1 |
| lockedByExpiration |
integer |
Indicates whether the instance is automatically locked after it expires. |
0 |
| quota |
object |
The quota information of the application. For more information, see Quota. |
{} |
| 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 |
| tags |
array<object> |
The tags of the application. |
|
|
object |
The tag. |
||
| key |
string |
The tag key. |
foo |
| value |
string |
The tag value. |
bar |
| engineType |
string |
The engine type. |
ha3 |
Examples
Success response
JSON format
{
"totalCount": 1,
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": [
{
"created": 1575442875,
"currentVersion": "110116134",
"lockMode": "Unlock",
"updated": 1578916076,
"id": "110116134",
"chargeType": "POSTPAY",
"hasPendingQuotaReviewTask": 0,
"name": "os_function_test_v1",
"instanceId": "\"xxx\"",
"chargingWay": 1,
"type": "enhanced",
"status": "normal",
"projectId": "\"xxx\"",
"switchedTime": 0,
"commodityCode": "opensearch",
"expireOn": "\"xxx\"",
"domain": "\"\"",
"description": "\"xxx\"",
"produced": 1,
"lockedByExpiration": 0,
"quota": {
"spec": "opensearch.share.common",
"docSize": 1,
"computeResource": 20
},
"tags": [
{
"key": "foo",
"value": "bar"
}
],
"engineType": "ha3"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.