API v2: Access Request¶
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Unique and read-only object Identifier |
|
|
boolean |
Read-only |
|
|
number {1-24} |
if |
The amount of time the user will have access to the account, expressed in hours and counted from the moment the session is initiated. |
|
string |
if |
The time from which the access period starts. |
|
string |
if |
The time at which the access expires. |
|
string |
yes |
|
|
string |
yes |
|
|
number |
Read-only. Number of votes required to acquire access to the account. |
|
|
string {expired, granted, pending, rejected, revoked} |
Read-only; expensive to use. |
|
|
string {immediate, scheduled, preview} |
yes |
|
|
string |
Read-only; expensive to use. Requires |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. Requires |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. Requires |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. Requires |
|
|
string |
Read-only; expensive to use. |
|
|
object-array |
Read-only; expensive to use. JSON object array containing id, mode, name, hidden status, builtin status, and protocol of assigned listeners. |
|
|
number-array |
Read-only; expensive to use. |
|
|
string-array |
Read-only; expensive to use. |
|
|
string |
yes |
Immutable; read-only; expensive to use. Requires |
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
object-array |
Read-only; expensive to use. JSON object array containing reason, user_id, acceptance status, user_name, user_role, and user_domain of the voting user. |
|
|
boolean |
Read-only; expensive to use. Indicates if access is available via the web client. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the AccessRequestModel¶
Request
Method |
|
Path |
|
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Unique and read-only object Identifier |
|
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
boolean |
yes |
|
|
string |
if |
|
|
string |
yes |
Immutable; protected; read-only; expensive to use. Uniqueness is required in the combination of attribute |
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the AccessRequestVoteModel¶
Request
Method |
|
Path |
|
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
||
|
string |
yes |
Retrieve Available Attributes of the AccessRequestRevokeModel¶
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Access Requests List¶
Request
Method |
|
Path |
|
Example Request
GET /api/v2/access_request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/access_request'
Revoking Access Requests¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/access_request/<id>/revoke
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/access_request/5620492334958379010/revoke' \
-d'{"revoke_reason":"AD maintenance."}'
Response
{
"result": "success"
}
Responding to a Pending Access Request¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/access_request/<id>/vote
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/access_request/5620492334958379011/vote' \
-d'{"accepted":true}'
Response
{
"result": "success"
}