Run Report
Run a report defined in the system and generate results.
GET https://instance.securid.com/aveksa/command.submit?cmd=runReport
Request
Parameters
| runReport | |
| format | properties - (Default) Returns the response as key=value pairs.json - Returns the response as JSON. |
| The name of the report to run. | |
| desc | An optional description for the generated results. |
Headers
Bearer token | |
| Accept | application/json |
| Content-Type | application/json |
Response
Parameters
type | Executed command name |
run-id | The id assigned to the report run. Use getRunStatus to check the status of the run after this call. |
Examples
Request
- Curl
- Python
- Node.js
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=runReport&format=json&name=All%20User%20Access&desc=My%20Report%20Run" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "runReport",
"format": "json",
"name": "All User Access",
"desc": "My Report Run"
}
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}")
const axios = require('axios');
const url = "https://instance.securid.com/aveksa/command.submit";
const params = {
cmd: "runReport",
format: "json",
name: "All User Access",
desc: "My Report Run"
};
const headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
};
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
- 401 Invalid Token
- 401 No Permission
- 404 Report Not Found
- 412 Missing Parameter
{
"data": {
"type": "runReport",
"run-id": "9980"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>The token is not valid for the command 'runReport'. Token is invalid or expired</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>User is not authorized to run reports for All User Access
Query String=cmd=runReport&format=json&name=All%20User%20Access</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>Could not find report Does Not Exist
Query String=cmd=runReport&format=json&name=Does%20Not%20Exist</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>The parameter name is required.
Query String=cmd=runReport&format=json</body>
</html>
Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.