Skip to main content

kobana kadu roles

Commands of kobana kadu roles. Every global option (Global options) applies here.

CommandHTTPDescription
roles listGET /v1/rolesList roles
roles createPOST /v1/rolesCreate role

roles list​

List roles

kobana kadu roles list [OPTIONS]

GET /v1/roles

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

roles create​

Create role

kobana kadu roles create [OPTIONS]

POST /v1/roles

Permissions in the format *, agent.*, agent.<resource>.* or agent.<resource>.<action>. On a person's token, none can go beyond the role of whoever creates it.

Request body

NameTypeRequiredDescription
labelstringyes
permissionsarray<string>no

More fields and nested objects: kobana schema kadu.roles.create.

Responses

HTTPDescription
201created
400VALIDATION_ERROR
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).