Check the execution status for a script that was run on a VM.
Request URL
GET https://use.cloudshare.com/API/v2/Env/checkExecutionStatus?envId=<env>&vmId=<vm>&executionId=<exec>&UserApiId=<id>&token=<token>×tamp=<time>&HMAC=<signature>
Parameters
| envId | The unique id for the environment. Example: I5ADJ4VCMBTB |
vmId | The unique id for the VM. Example: 40WXHYZW3UKB |
| executionId | The Id returned for the process when the script was run. Example:PDEOUEGMEZMA |
Response example
{
"data": {
"error_code": 0,
"executed_path": "c:\\myScript.py",
"standard_error": "All OK",
"standard_output": null,
"success": true
},
"remaining_api_calls": 99994,
"status_additional_data": null,
"status_code": "0x20000",
"status_text": "Success"
}
Response codes
| success | Indicates whether the script completed successfully. Will return a null value if the script has not yet completed. Values: True/False/null |
| error_code | The status code on completion. Will return a null value if the script has not yet completed. Example: 0 |
| standard_output | The standard output (stdout) from the script. Example: |
| standard_error | The standard error (stderr) from the script. Example: All OK |
| executed path | The full path from which the script was run. Example: c:\\myScript.py |