Cancel Script Execution
This operation is equivalent to pressing Ctrl+C in the PowerShell console. If the script is cancellable it will be canceled. The state of the script execution will become canceled after this operation. The operation is asynchronous. Cancel request is sent to the runtime.
Request
URLURL
https://{api_host}/api/script-executions/{id}/cancel
Parameters
Parameters
string
id
Required
The id of the script execution
cURL Command
curl -X POST https://{api_host}/api/script-executions/{id}/cancel