Collect Entitlements
Run one or more entitlement collectors. Local entitlement collectors are not included.
GET https://instance.securid.com/aveksa/command.submit?cmd=collectEntitlements
note
Requires a user with System:Manage privilege.
Request
Parameters
| collectEntitlements | |
| format | properties - (Default) Returns the response as key=value pairs. When multiple collectors run, run-id is a CSV of all run IDs.json - Returns the response as JSON. |
| application | The friendly name of the application. Runs entitlement collectors for that application. If omitted, all applications are processed. |
| name | The friendly name of the entitlement collector to run. If omitted, all entitlement collectors are processed. |
| force | Set to true to ignore circuit breaker thresholds and force collection regardless of prior run state. |
Headers
Bearer token | |
| Accept | application/json |
| Content-Type | application/json |
Response
Parameters
run-id | The ID assigned to the collection run. When multiple collectors run, this is a CSV of all run IDs. |
run-source-xx | The name of the collector for run ID xx. One key appears per collector that ran. |
Examples
Request
- Curl
- Python
- Node.js
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=collectEntitlements&format=json&application=Sample+Application" \
-H "Authorization: Bearer <token>"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "collectEntitlements",
"format": "json",
"application": "Sample Application"
}
headers = {
'Authorization': 'Bearer <token>'
}
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}")
const axios = require('axios');
const url = "https://instance.securid.com/aveksa/command.submit";
const params = {
cmd: "collectEntitlements",
format: "json",
application: "Sample Application"
};
const headers = {
'Authorization': 'Bearer <token>'
};
axios.get(url, { params, headers })
.then(response => {
if (response.status === 200) {
console.log(response.data);
} else {
console.log(`Request failed with status code ${response.status}`);
}
})
.catch(error => {
console.error('Error:', error);
});
Response
- 200 (Properties)
- 200 (JSON)
- 200 Multiple
- 401 Invalid Token
- 404 Invalid application
- 404 Invalid name
Default format when format is omitted.
run-id=1001
run-source-1001=Sample EDC
{
"data": {
"type": "collectEntitlements",
"run-id": "1001",
"run-source-1001": "Sample EDC"
}
}
Returned when no application or name is specified and all entitlement collectors run. run-id is a CSV of all run IDs.
{
"data": {
"type": "collectEntitlements",
"run-id": "1001,1002,1003",
"run-source-1001": "Sample EDC 1",
"run-source-1002": "Sample EDC 2",
"run-source-1003": "Sample EDC 3"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>The token is not valid for the command 'collectEntitlements'. Token is invalid or expired</body>
</html>
Returned when the application value does not match any application.
<html>
<head>
<title>Error</title>
</head>
<body>No eligible collectors found for the application InvalidApplication
Query String=cmd=collectEntitlements&format=json&application=InvalidApplication</body>
</html>
Returned when the name value does not match any entitlement collector.
<html>
<head>
<title>Error</title>
</head>
<body>No eligible collector found.
Query String=cmd=collectEntitlements&format=json&name=InvalidEDC</body>
</html>
Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.