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. Read-only, expensive to use. |
|
string |
if |
The time from which the access period starts. |
|
string |
if |
The time at which the access expires. |
|
string |
yes |
Read-only. |
|
string |
Read-only. |
|
|
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 {account_access, account_share, secret_view, secret_share} |
yes |
Immutable. |
|
string {immediate, scheduled, preview} |
yes |
|
|
string |
Read-only. Requires |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only. 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. |
|
|
string |
Read-only. |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
object-array |
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. Requires |
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only; expensive to use. |
|
|
string |
Read-only. |
|
|
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. |
|
|
boolean |
Read-only. Hidden; expensive to use. Has the request been handled (accepted by the current user or granted)? |
|
|
string |
Read-only. |
|
|
string |
Read-only. The identifier of the user who revoked the access obtained through this request. |
|
|
string |
Read-only; expensive to use. The name of the user who revoked the access obtained through this request. |
|
|
boolean |
yes |
Read-only; expensive to use. Is the request archival (i.e. expired, rejected or revoked)? |
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
|
|
boolean |
Read-only; expensive to use. Is object built-in? Built-in objects shouldn’t be editable. |
|
|
boolean |
Read-only; expensive to use. Shall the object be hidden in UI? |
Retrieve Available Attributes of the AccessRequestModel¶
Request
Method |
|
Path |
|
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Unique and read-only object Identifier. Protected. |
|
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
boolean |
yes |
|
|
string |
if |
|
|
string |
Protected; read-only. 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 |
yes |
|
|
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"
}