Queries the details of a sort script.
Debugging
Request headers
This operation uses only the common request headers. For more information, see Common request parameters.
Request syntax
GET /v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName] HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
appGroupIdentity | String | Path | Yes | my_app |
The name or ID of the application. |
appVersionId | String | Path | Yes | 123456 |
The version number of the application. |
scriptName | String | Path | Yes | script1 |
The name of the script to query. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
requestId | String | ABCDEFGH |
The ID of the request. |
result | Struct |
The details of the script |
|
createTime | String | 2020-04-02 20:21:14 |
The time when the script was created. |
modifyTime | String | 2020-04-02 21:21:14 |
The time when the script was last modified. |
scope | String | second_rank |
The sort phase to which the script applies. |
status | String | released |
The status of the script. For more information, see the Script status table. |
type | String | cava_script |
The type of the script. |
Status value |
Description |
---|---|
configurable |
The script is created, but no script files are uploaded. |
not compiled |
The script is not compiled. |
compile failed |
The compilation of the script failed. |
compile successful |
The script is compiled. |
released |
The script is published. |
Examples
Sample requests
GET /v4/openapi/app-groups/my_app/apps/123456/sort-scripts/script1
Sample success responses
XML
format
<requestId>ABCDEFGH</requestId>
<result>
<type>cava_script</type>
<scope>second_rank</scope>
<status>released</status>
<createTime>2020-04-02 20:21:14</createTime>
<modifyTime>2020-04-02 21:21:14</modifyTime>
</result>
JSON
format
{
"requestId": "ABCDEFGH",
"result": {
"type": "cava_script",
"scope": "second_rank",
"status": "released",
"createTime": "2020-04-02 20:21:14",
"modifyTime": "2020-04-02 21:21:14"
}
}
Sample error response
```
Error response
{
"requestId" : "ABCDEFGH",
"code":"ResourceNotFound",
"message":"The specified script not found.",
"httpCode":404
}
```
Error codes
For a list of error codes, visit the API Error Center.