Get Security Settings
Retrieve security settings for the system.
GET https://instance.securid.com/aveksa/command.submit?cmd=getSecuritySettings
Request
Parameters
| getSecuritySettings | |
| format | properties - (Default) Returns the response as key=value pairs.json - Returns the response as JSON. |
Headers
Bearer token | |
| Accept | application/json |
| Content-Type | application/json |
Response
Parameters
allow-username-save | true if the username can be saved on the login page, false if not. |
token-inactivity-timeout | The inactivity timeout in minutes for tokens retrieved from loginUser. |
token-lifespan-timeout | The lifespan timeout in minutes for tokens retrieved from loginUser. |
Examples
Request
- Curl
- Python
- Node.js
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=getSecuritySettings&format=json" \
-H "Authorization: Bearer <token>"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "getSecuritySettings",
"format": "json"
}
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: "getSecuritySettings",
format: "json"
};
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 (JSON)
- 401 Invalid Token
{
"data": {
"type": "getSecuritySettings",
"allow-username-save": "false",
"token-lifespan-timeout": "120",
"token-inactivity-timeout": "10"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>The token is not valid for the command 'getSecuritySettings'. Token is invalid or expired</body>
</html>
Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.