Queries a list of OpenSearch applications.
Operation description
- This operation allows you to query applications by application name, instance ID, and application type.
- This operation allows you to sort the applications based on their creation time.
- This operation supports the parameters for paging.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
opensearch:ListAppGroup | list |
|
| 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 per page. Default value: 10. | 10 |
instanceId | string | No | The ID of the instance. Exact match is used. | ops-cn-xxxx |
name | string | No | The name of the application. | my_name |
type | string | No | The type of the application. Valid values:
| standard |
sortBy | integer | No | The method based on which applications are sorted. Valid values:
Default value: 0. | 0 |
resourceGroupId | string | No | The ID of the resource group. | "110123123" |
tags | array<object> | No | The tags. | |
object | No | The tag dictionary. | ||
key | string | No | The tag key. | foo |
value | string | No | The tag value. | bar |
Response parameters
Examples
Sample success responses
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
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-16 | The response structure of the API has changed | View Change Details |