Last updated 3 months ago
Fetch group based on group id.
Id of group
GET /api/v1/data/acl/group?group_id=1 HTTP/1.1 Host: connect.<REGION>.decube.io Accept: */*
Successful Response
{ "id": 1, "name": "text", "description": "text", "owner": true, "users": [ "text" ], "policies": [ 1 ] }
List all groups available in the account.
1
10
GET /api/v1/data/acl/group/list HTTP/1.1 Host: connect.<REGION>.decube.io Accept: */*
[ { "id": 1, "name": "text", "description": "text", "owner": true, "users": [ "text" ], "policies": [ 1 ] } ]
Remove user from group.
POST /api/v1/data/acl/group/remove_user HTTP/1.1 Host: connect.<REGION>.decube.io Content-Type: application/json Accept: */* Content-Length: 31 { "user_id": "text", "group_id": 1 }
No Content
Add user to group.
POST /api/v1/data/acl/group/add_user HTTP/1.1 Host: connect.<REGION>.decube.io Content-Type: application/json Accept: */* Content-Length: 31 { "user_id": "text", "group_id": 1 }