Permissions endpoints keys
These keys are used with the RBAC API v1 permissions
endpoints.
Key | Definition | Example |
---|---|---|
object_type
|
A string identifying what PE object type the permission applies to, such as node groups, users, roles, and so on. | "node_groups"
|
action
|
A string indicating the permitted action, such as viewing, editing, or creating. | "modify_children"
|
actions
|
An array representing multiple actions, formatted as JSON objects. | Each JSON object contains:
|
instance
|
A string describing the scope of the permission. To
apply the permission to all instances of the specified To limit the
permission to specific instances of the specified For any
|
|
display_name
|
A string containing the object_type name as it appears in the PE console. |
"Node Groups"
|
description
|
A string describing an object_type . |
"Groups that nodes can be
assigned to."
|
token
|
In the POST /permitted endpoint, this is a string representing the UUID of a user or user group. | "cec7e830-555b-11e4-916c-0800200c9a66"
|
You'll use
object_type
, action
, and instance
to
build permissions. Use the GET /types
endpoint to get values you can use for these keys when writing permissions. For
object_type
and action
, you must use system names, not display names.Related information