Retrieves the details of a sort script.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:DescribeSortScript |
*App
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name or ID of the application. |
my_app |
| scriptName |
string |
Yes |
The name of the script. |
script1 |
| appVersionId |
string |
Yes |
The ID of the application version. |
160051478 |
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 |
object |
The details of the 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. For more information, see the list of script statuses. |
released |
| modifyTime |
string |
The time when the script was last modified. |
2020-04-02 21:21:14 |
| type |
string |
The type of the script. |
cava_script |
| scriptName |
string |
The name of the script. |
rank_cava_20230606_v7 |
| description |
string |
{
"requestId" : "ABCDEFGH",
"code":"ResourceNotFound",
"message":"The specified script not found.",
"httpCode":404
}
Examples
Success response
JSON format
{
"requestId": "ABCDEFGH",
"result": {
"scope": "second_rank",
"createTime": "2020-04-02 20:21:14",
"status": "released",
"modifyTime": "2020-04-02 21:21:14",
"type": "cava_script",
"scriptName": "rank_cava_20230606_v7\n",
"description": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.