[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere

Cancel Script Execution

Description

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

Request

URL

URL


post
https://{api_host}/api/script-executions/{id}/cancel
Copy

Path Parameters

Path Parameters

string
id Required

The id of the script execution


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

200 OK

Success

Errors

Errors

401

Unauthorized


500

Server Error

Code Samples

Code Samples

cURL Command

curl -X POST https://{api_host}/api/script-executions/{id}/cancel


[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere
Feedback

Was this page helpful?