Roles
Create custom role
Create a custom role bundling a set of permissions at either account or project scope.
Get the list of valid permission strings from List Permissions.
post/api/v1/roles
Request body
Example request
{
"name": "Custom Operator",
"slug": "custom-operator",
"permissions": [
"vm.view",
"vm.create",
"volume.view"
]
}Response
Role created
Example response
{
"data": {
"name": "Operator",
"slug": "operator"
}
}