Lists the sort expressions that are configured for a version of an OpenSearch application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:ListSortExpression |
none |
*FirstRank
*SecondRank
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/sort-expressions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The application name. |
my_app_group_name |
| appId |
integer |
Yes |
The version ID. |
110116134 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Query parameters
| Parameter | Type | Required | Example | Description |
| pageNumber | Integer | No | 1 | The page number. The default value is 1. |
| pageSize | Integer | No | 10 | The number of entries to return on each page. The default value is 10. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
array<object> |
The information about the rough sort or fine sort expressions. For more information, see FirstRank and SecondRank. |
|
|
object |
|||
| created |
integer |
The timestamp when the sort expression was created. |
1655793690 |
| active |
boolean |
Indicates whether the expression is the default one. |
true |
| description |
string |
The description of the sort expression. |
"" |
| updated |
integer |
The timestamp when the sort expression was updated. |
1655793690 |
| name |
string |
The name of the sort expression. |
default |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": [
{
"created": 1655793690,
"active": true,
"description": "\"\"",
"updated": 1655793690,
"name": "default"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.