[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere
Cancel Script Execution
DescriptionThis 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
Path Parameters
Path Parameters
string
id
Required
The id of the script execution
Authentication
This operation uses the following authentication methods.
Errors
Errors
ErrorDetails
401
Unauthorized
ErrorDetails
500
Server Error
Code Samples
cURL Command
curl -X POST https://{api_host}/api/script-executions/{id}/cancel
[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere