Lists all sort scripts for a specified application version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:DescribeSortScript |
list |
*App
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name or ID of the application. |
my_app |
| appVersionId |
string |
Yes |
The ID of the application version. |
110142366 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The unique ID of the request. |
ABCDEFGH |
| result |
array<object> |
The list of scripts. |
|
|
object |
|||
| type |
string |
The type of the script. |
cava_script |
| scope |
string |
The applicable scope of the script. |
second_rank |
| createTime |
string |
The time when the script was created. |
2020-04-02 20:21:14 |
| status |
string |
The status of the script:
|
released |
| modifyTime |
string |
The time when the script was last modified. |
2020-04-02 21:21:14 |
| scriptName |
string |
The name of the script. |
test |
Error response
{
"requestId" : "ABCDEFGH",
"code":"InvalidAppSpec",
"message":"The cava scripts only support the private spec app.",
"httpCode":400
}
Examples
Success response
JSON format
{
"requestId": "ABCDEFGH",
"result": [
{
"type": "cava_script",
"scope": "second_rank",
"createTime": "2020-04-02 20:21:14",
"status": "released",
"modifyTime": "2020-04-02 21:21:14",
"scriptName": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.