Get role metadata
GET
/api/v1/rbac/metadata/roles
const url = 'https://localhost:8080/api/v1/rbac/metadata/roles';const options = {method: 'GET', headers: {Authorization: '<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: <Authorization>'Return metadata for every role defined in the system, keyed by role name
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Role metadata keyed by role name
Media type application/json
object
key
additional properties
object
description
string
name
string
personas
Array<string>
scope
“organization” or “project”
string
Example generated
{ "additionalProperty": { "description": "example", "name": "example", "personas": [ "example" ], "scope": "example" }}Unauthorized - Authentication required
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}