POST /v2/groups
Returns an array with a list of existing groups.
{
"success":true,
"groups":[
{
"id":"$group_id",
"name":"$group_name",
"owner":{
"id":"$owner_id",
"name":"$owner_name",
},
"members":[
],
"virtual_machines":[
],
"permisions":{
"global":[
],
"vm":[
]
}
}, { ... }
]
}
POST /v2/groups/$GROUP_ID
Returns information about a single group with the specified $GROUP_ID.
{
"success":true,
"group":
{
"id":"$group_id",
"name":"$group_name",
"owner":{
"id":"$owner_id",
"name":"$owner_name",
},
"members":[
],
"virtual_machines":[
],
"permisions":{
"global":[
],
"vm":[
]
}
}
}
POST /v2/groups/$GROUP_ID/group-attach-user
Adds a user to a group with the specified $GROUP_ID
.
{
"id" : $user_id
}
{
"success":true
}
POST /v2/groups/$GROUP_ID/group-attach-vm
Add a server to a group with the specified $GROUP_ID
.
{
"id" : $vm_id
}
{
"success":true
}
POST /v2/groups/$GROUP_ID/group-detach-user
Adds a task to remove a user from a group with the specified $GROUP_ID
.
{
"id" : $user_id
}
{
"success":true
}
POST /v2/groups/$GROUP_ID/group-detach-vm
Adds a task to remove a server from a group with the specified $GROUP_ID
.
{
"id" : $vm_id
}
{
"success":true
}
DELETE /v2/groups/$GROUP_ID
Adds a task to delete a group with the specified $GROUP_ID
.
{
"success":true
}