Skip to content
English
  • There are no suggestions because the search field is empty.

Get role metadata

GET /api/v1/rbac/metadata/roles Select code sample Fetch cURL
const url = 'https://localhost:8080/api/v1/rbac/metadata/roles';const options = {method: 'GET', headers: {Authorization: '
  
   '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}
  
curl --request GET \  --url https://localhost:8080/api/v1/rbac/metadata/roles \  --header 'Authorization: 
  
   '
  

Return metadata for every role defined in the system, keyed by role name

Authorizations

Section titled “Authorizations ”

Responses

Section titled “ Responses ”

200

Section titled “200 ”

Role metadata keyed by role name

Media type application/json object key additional properties object description string name string personas Array scope

“organization” or “project”

string
Example generated
{  "additionalProperty": {    "description": "example",    "name": "example",    "personas": [      "example"    ],    "scope": "example"  }}

401

Section titled “401 ”

Unauthorized - Authentication required

Media type application/json object error string error_description string
Example
{  "error": "Unauthorized",  "error_description": "Invalid token"}
Previous
Get permission metadata
Next
Get user permissions for governance