Retrieves the names of all files in a specified script for a specific application version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:DescribeSortScript |
*SortScript
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/file-names 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. |
123456 |
| scriptName |
string |
Yes |
The name of the script. |
file_names |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The unique identifier of the request. |
ABCDEFGH |
| result |
array<object> |
The list of scripts. |
|
|
object |
|||
| createTime |
string |
The time when the script was created. |
2020-04-02 20:21:14 |
| fileName |
string |
The name of the script file. |
my_cava_script.cava |
| modifyTime |
string |
The time when the script was last modified. |
2020-04-02 21:21:14 |
| pathName |
string |
The path of the script. |
src |
Error response
{
"requestId" : "ABCDEFGH",
"code":"ResourceNotFound",
"message":"The specified script not found.",
"httpCode":404
}
Examples
Success response
JSON format
{
"requestId": "ABCDEFGH",
"result": [
{
"createTime": "2020-04-02 20:21:14",
"fileName": "my_cava_script.cava",
"modifyTime": "2020-04-02 21:21:14",
"pathName": "src"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.