Cancel a Command¶
-
PUT
/api/v1.2/commands/
(int: id)¶
This API is used to cancel a command.
Required Role¶
The following users can make this API call:
- Users who belong to the system-admin or system-user group.
- Users who belong to a group associated with a role that allows submitting a command. See Managing Groups and Managing Roles for more information.
Parameters¶
Note
Parameters marked in bold below are mandatory. Others are optional and have default values.
Parameter | Description |
---|---|
status | kill |
Example¶
curl -i -X PUT -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \
-d '{"status":"kill"}' \ "https://gcp.qubole.com/api/v1.2/commands/${QUERYID}"