API v2: Group-Safe Assignment πΒΆ
Endpoints in this section allow you to assign safes to groups.
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Unique identifier. Protected. |
|
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
boolean; default value |
yes |
|
|
boolean; default value |
yes |
|
|
string |
Read-only; Expensive to use. |
|
|
string |
Read-only; Expensive to use. |
|
|
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 GroupSafeModelΒΆ
Request
Method |
|
Path |
|
GET /api/v2/objspec/group_safe
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.87.227/api/v2/objspec/group_safe'
Get Group-Safe Assignment ListΒΆ
Request
Method |
|
Path |
|
GET /api/v2/group/safe
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/group/safe'
Response
{
"result": "success",
"group_safe": [
{
"group_id": "9115285645797883905",
"safe_id": "9115285645797883906",
"password_visible": false,
"use_time_policy": false,
"group_name": "admin",
"safe_name": "RDP",
"created_at": "2025-05-07 23:56:15.424739-07",
"modified_at": "2025-05-07 23:56:15.424739-07",
"builtin": false,
"hidden": false
},
{
"group_id": "9115285645797883905",
"safe_id": "9115285645797883907",
"password_visible": false,
"use_time_policy": false,
"group_name": "admin",
"safe_name": "SSH",
"created_at": "2025-05-07 23:56:15.450435-07",
"modified_at": "2025-05-07 23:56:15.450435-07",
"builtin": false,
"hidden": false
}
]
}
Get Safe Assigned to a Group by Their IDsΒΆ
Request
Method |
|
Path |
|
GET /api/v2/group/<group_id>/safe/<safe_id>
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/group/9115285645797883905/safe/9115285645797883906'
Response
{
"result": "success",
"group_safe": {
"group_id": "9115285645797883905",
"safe_id": "9115285645797883906",
"password_visible": false,
"use_time_policy": false,
"group_name": "admin",
"safe_name": "RDP",
"created_at": "2025-05-07 23:56:15.424739-07",
"modified_at": "2025-05-07 23:56:15.424739-07",
"builtin": false,
"hidden": false
}
}
Create Group-Safe AssignmentΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/group/safe
Example Request
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/group/safe' \
-d'{"group_id":"9115285645797883905","safe_id":"9115285645797883906","use_time_policy": true}'
Response
{
"result": "success"
}
Modify Group-Safe AssignmentΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
PATCH /api/v2/group/<group_id>/safe/<safe_id>
Example Request
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.31.87.227/api/v2/group/9115285645797883911/safe/9115285645797883908' \
-d'{"password_visible": true,"use_time_policy": false}'
Response
{
"result": "success"
}
Delete Group-Safe AssignmentΒΆ
Request
Method |
|
Path |
|
DELETE /api/v2/group/<group_id>/safe/<safe_id>
Example Request
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.87.227/api/v2/group/9115285645797883905/safe/9115285645797883908'
Response
{
"result": "success"
}