Collect Data Access
Run one or more data access collectors.
GET https://instance.securid.com/aveksa/command.submit?cmd=collectDataAccess
Request
Parameters
collectDataAccess | |
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. |
name | The friendly name of the collector. If no name is provided all collectors are processed. |
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
type | Executed command name |
run-id | The id assigned to the collection. |
run-source-xx | The names of the collectors that we processed as part of this run where xx is the run id. |
Examples
Request
- Curl
- Python
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=collectDataAccess&format=json&name=DAG" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests, json
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "collectDataAccess",
"format": "json",
"name": "DAG1"
}
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.get(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
{
"data": {
"type": "collectDataAccess",
"run-source-5514": "DAG",
"run-id": "5682"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>Error running a collection for the data access collector aaa
Query String=cmd=collectDataAccess&format=json&name=aaa</body>
</html>