API v2: Accountsยถ
defines the privileged account existing on the monitored server. It specifies the actual login credentials, user authentication mode: anonymous (without user authentication), regular (with login credentials substitution) or forward (with login and password forwarding); password changing policy as well as the password changer itself.
Data Structures: AccountModelยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Read-only object Identifier. Requires rights to perform operations on the |
|
string |
yes |
Unique accountโs name |
|
string |
no |
Object description |
|
string |
Read-only; expensive to use |
|
|
boolean; default value |
yes |
|
|
string |
if |
|
|
string {regular, forward, anonymous} |
yes |
Immutable |
|
string {nonprivileged, privileged} |
||
|
string |
Protocol of the pool orย server which the account isย assigned to. Read-only; expensive to use. |
|
|
string |
yes |
|
|
string |
Read-only; expensive to use |
|
|
string |
Read-only; expensive to use |
|
|
number |
Read-only; expensive to use |
|
|
number |
Read-only; expensive to use |
|
|
number |
Read-only; expensive to use |
|
|
number |
Read-only; expensive to use |
|
|
string |
yes |
|
|
string |
Read-only; expensive to use |
|
|
boolean; default value |
if |
Enable to be informed about existing connections via the Access Gateway. Available for the server with |
|
string {account, passvn, password, sshkey} |
if |
Authentication method |
|
string |
if |
|
|
string; may be empty |
if |
|
|
string; may be empty |
if |
|
|
string |
with |
Passphrase to use to decrypt SSH private key. |
|
string |
SSH public key. Read-only; expensive to use. |
|
|
string |
SSH key SHA256 fingerprint. Read-only; expensive to use. |
|
|
boolean; default value |
if |
|
|
boolean; default value |
if |
Authentication against server |
|
string |
if |
|
|
string |
if |
|
|
string |
Read-only; expensive to use |
|
|
string {all, none, raw, noraw}; default value |
yes |
Session recording options |
|
boolean; default value |
yes |
|
|
number |
Value range from |
|
|
number |
Value range from |
|
|
boolean; default value |
yes |
|
|
boolean; default value |
yes |
|
|
string {eng, pol, deu, hun, nor, rus, ukr}; if more than 1, separated by the |
if |
|
|
boolean; default value |
yes |
|
|
boolean; default value |
yes |
Restrict access to the account exclusively through remote applications. |
|
datetime |
Read-only |
|
|
datetime |
Read-only |
|
|
string |
if |
Password change policy identifier. |
|
string |
Password change policy name. Read-only; expensive to use. |
|
|
datetime (h:m:s) |
if |
|
|
boolean |
If set, password will be changed after last password checkin. |
|
|
boolean |
If set, password will be changed after session finishes. |
|
|
boolean |
Waiting for password change after triggered. Read-only; expensive to use. |
|
|
boolean |
Can manually trigger password change request? Read-only; expensive to use. |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
boolean |
If set and password verification detects unknown password, password changer will try to recover the password to a known value. |
|
|
datetime |
Read-only; expensive to use |
|
|
object-array |
JSON object array containing |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
object-array |
Read-only; expensive to use; JSON object array containing |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
string {created, discovered, onboarded, quarantined} |
Accountโs discovery state: discovered, onboarded, quarantined, or created (for manually created accounts). Read-only. Expensive to use. |
|
|
datetime |
Account discovered at timestamp. Read-only; expensive to use |
|
|
datetime |
Account onboarded at timestamp. Read-only; expensive to use. |
|
|
string |
User identifier who onboarded this account. ARead-only; expensive to use. |
|
|
string |
User name who onboarded this account. Read-only; expensive to use. |
|
|
datetime |
Account quarantined at timestamp. Read-only; expensive to use. |
|
|
string |
User identifier who quarantined this account. Read-only; expensive to use. |
|
|
string |
User name who quarantined this account. Read-only; expensive to use. |
|
|
string |
Quarantine reason. Read-only; expensive to use. |
|
|
string |
Scanner identifier. Read-only; expensive to use. |
|
|
string |
Scanner name. Read-only; expensive to use. |
|
|
boolean |
Determines if there is aย user who checked out the current password and now has lost access to the account, e.g. the user is now blocked, deleted, or there is no longer a safe containing both the user and the account, and gives the user secret check out rights. Read-only; expensive to use. |
|
|
string-array |
Read-only; list of rights the subject has to this object. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
|
|
boolean |
Read-only; expensive to use; if |
|
|
boolean |
Read-only; expensive to use; if |
Retrieve Available Attributes of the AccountModelยถ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Refer to the Batch operations topic to create nested requests for operating on the Account objects.
Create an Accountยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/account
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/account' \
-d '{
"name": "test-account",
"type": "regular",
"server_id": "1234567890",
"method": "password",
"login": "test-account-login",
"domain": "my-domain"
}'
Response
{
"result": "success",
"account": {
"id": "1234567890123456"
}
}
Get Accounts Listยถ
Request
Method |
|
Path |
|
Get an Accountยถ
Request
Method |
|
Path |
|
Modify an Accountยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request: Enable OCR With German, English and Polish Languages for an Account
PATCH /api/v2/account/<id>
{ "ocr_enabled": true,
"ocr_lang": "deu+eng+pol"}
Response
{
"result": "success"
}
Adding a Password Changer Policy to Accountยถ
Password changer policy canโt be created via API, but can be assigned to a particular Account. It requires a password changer or/and password verifier assigned according to itโs enabled options.
By default there is an existing password policy named Static, without restrictions with id = 1, which has no password change or verification functions assigned.
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/account/<id>
{
"domain":null,
"password_change_policy_id":"2345678901234567"
}
Response
{
"result": "success"
}
Modify Password Change Parameters for Accountยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/account/<id>
{
"domain":null,
"password_change_policy_id":"2345678901234567989",
"password_checkout_time_limit":"06:59:00",
"password_change_on_session_end":true,
"password_change_on_checkin":true,
"password_recovery":true
}
Response
{
"result": "success"
}
Delete an Accountยถ
Request
Method |
|
Path |
|
Managing Security Alertsยถ
Request
Method |
|
Path |
|