Chelabase
ManagementRoles

List a branch's roles

GET
/v1/databases/{id}/branches/{branch_id}/roles

The branch's owner role first, then the others by name: roles made through the API and roles made in SQL, with their level, password state and the data API secret keys an owner-level role blocks. No passwords: read one with the connection details and role.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Database id

Formatuuid
branch_id*string

Branch id

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/roles"
[  {    "blocked_keys": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "bypass_rls": true,    "connection_limit": 0,    "created_at": "2019-08-24T14:15:22Z",    "guard_exempt": true,    "inherit": true,    "level": "plain",    "login": true,    "member_admin": [      "string"    ],    "member_no_set": [      "string"    ],    "member_of": [      "string"    ],    "name": "string",    "origin": "owner",    "password": "generated",    "pending": true,    "valid_until": "2019-08-24T14:15:22Z"  }]