# RBAC Controller Resource

### GET /rbac/contexts

Response Body
media type | data type | description
--- | --- | ---
application/json | array of EnumNameAndDescription (JSON) |

#### Example

##### Request

    GET /rbac/contexts
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ {
      "name" : "ENUM_NAME",
      "description" : "Enum description"
    } ]

### GET /rbac/privileges

Response Body
media type | data type | description
--- | --- | ---
application/json | array of EnumNameAndDescription (JSON) |

#### Example

##### Request

    GET /rbac/privileges
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ {
      "name" : "ENUM_NAME",
      "description" : "Enum description"
    } ]

### GET /rbac/context-hierarchy/{privilege-type}/children

Request Parameters
name | type | description | constraints
--- | --- | --- | ---
privilege-type | path |  |
app-cmd-exec-config | query |  |
cloud-service-provider | query |  |
cluster | query |  |
data-center | query |  |
direction | query |  |
filter | query |  |
hypervisor | query |  |
hypervisor-manager | query |  |
nameLike | query |  |
orderBy | query |  |
page | query |  |
project | query |  |
size | query |  |
storage-pool | query |  |
storage-provider | query |  |
teams-group | query |  | boolean

Response Body
media type | data type | description
--- | --- | ---
application/json | array of RbacInstancePrivilegeTypeDTO (JSON) |

#### Example

##### Request

    GET /rbac/context-hierarchy/{privilege-type}/children
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ { } ]