Skip to main content

Roles

Roles and the agent.* permissions they grant.

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

Examples​

--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits the fields that come back — worth using on every list/get to save context. See Global flags for the full reference.

# List roles
kobana kadu roles list --fields "id"

# Create role
kobana kadu roles create --json '{"label": "LABEL"}'

Next steps​