Lists all roles
GET/iam/roles
Lists all compiuta-managed and custom roles.
Authorization Action:
iam:roles:list
Request
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
roles object[]
name string
Name for the role.
id string
Unique ID. Cannot be changed.
type compiuta.api.iam.v2.Type
Possible values: [COMPIUTA_MANAGED
, CUSTOM
]
Default value: COMPIUTA_MANAGED
actions string[]
List of actions this role scopes to. Will contain one or more.
tenants string[]
List of tenants this role belongs to. May be empty.
{
"roles": [
{
"id": "custom-role",
"name": "My Custom Application Manager Role",
"actions": [
"applications:*",
"iam:tenants:list"
]
},
{
"id": "custom-role-2",
"name": "My Custom Application Role 2",
"actions": [
"infra:*"
]
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...