Delete Pending Run
Delete a single run that is queued for execution. Note that executing runs cannot be deleted currently.
POST https://instance.securid.com/aveksa/command.submit?cmd=deletePendingRun
Request
Parameters
deletePendingRun | |
format | properties - (Default) key=value . most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.json - Useful format for parsing into javascript or other languages. See www.json.org for details. |
The id of the run to delete. |
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
type | Executed command name |
status | Execution status of the command success, failure |
Examples
Request
- Curl
- Python
curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=deletePendingRun&run-id=1&format=json" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests, json
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "deletePendingRun",
"format": "json",
"run-id": "5902"
}
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.post(url, params=params, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code {response.status_code}")
Response
- 200
- 404 Invalid Parameter
- 412 Missing Parameter
{
"data": {
"type": "deletePendingRun",
"status": "success"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>The run-id 144444 is invalid. Query
String=cmd=deletePendingRun&format=json&run-id=144444</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>The parameter run-id is required. Query String=cmd=deletePendingRun&format=json</body>
</html>