ExportScript
Exports a scenario.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:ExportScript |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
12f3dd08-0c55-44ce-9b64-e69d35ed3a76 |
| ScriptId |
string |
Yes |
The scenario ID. |
d004cfd2-6a81-491c-83c6-cbe186620c95 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The status code of the request. |
OK |
| Message |
string |
The message returned for the request. |
Success |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| DownloadParams |
object |
The signed URL that you can use to download the script. This parameter is returned only for legacy canvases. |
|
| SignatureUrl |
string |
The download URL. This parameter is returned only for legacy canvases. Note
For modern canvases: After the scenario is exported, call the ListDownloadTasks operation to obtain the `TaskId` (for example, `5d352db754fe430xxxxxxx`) and `FileId` (for example, `5d000f3f6eae4228b2731427xxxxxx`). Then, call the CreateDownloadUrl operation to obtain the download URL. |
http://tiangong-staging.oss-cn-shanghai.aliyuncs.com/record/281eb174-3865-41c1-9274-7b6813edadab.wav?Expires=1578624046&OSSAccessKeyId=LTAI****cqw&Signature=dL2dxWS6VcdZrvG9xOMOBMSP3Fg%3D |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Code": "OK",
"Message": "Success",
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"DownloadParams": {
"SignatureUrl": "http://tiangong-staging.oss-cn-shanghai.aliyuncs.com/record/281eb174-3865-41c1-9274-7b6813edadab.wav?Expires=1578624046&OSSAccessKeyId=LTAI****cqw&Signature=dL2dxWS6VcdZrvG9xOMOBMSP3Fg%3D"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | |
| 404 | NotExist.Instance | The specified Instance does not exist. | |
| 404 | NotExist.Script | The specified Script does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.