Delete Collector
Delete a collector.
POST https://instance.securid.com/aveksa/command.submit?cmd=deleteCollector
Request
Parameters
deleteCollector | |
format |
|
The friendly name of the collector. | |
The type of the collector. Valid values :
|
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
type | Executed command name |
Examples
Request
- Curl
- Python
curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=deleteCollector&name=myIDC&type=Identity" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests, json
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "deleteCollector",
"format": "json",
"name": "DELETE",
"type": "Entitlement"
}
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
- 500 Internal Error
- 412 Missing Parameter
{
"data": {
"type": "deleteCollector"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>com.aveksa.server.message.MessengerServiceException: Test request failed with response:
com.aveksa.server.db.PersistenceException: n/a Query
String=cmd=deleteCollector&format=json&name=DELETE&type=Entitlement</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>The parameter name is required. Query String=cmd=deleteCollector&format=json</body>
</html>