Creates a new role resource. See also user and role management.
The role defined here can be used in the list of roles for a Cybus::User resource, which is the suggested way of specifying a set of permissions for a user.
permissions
object[]
Required
The permissions associated to this role
is required
type: object[]; all items must be of the type: object with following properties:
object
context
string
operation
resource
The context in which the role permissions for the resource should be interpreted.
type: enum; the value of this property must be equal to one of the below:
enum
mqtt when describing permissions for MQTT topics
mqtt
http when describing permissions for REST API paths
http
The allowed access operation to the resource.
read
write
readWrite
Resource path. Can be REST-ful API path or MQTT topic.
type: string
Last updated 1 year ago
Was this helpful?
myRole: type: Cybus::Role properties: permissions: - resource: edge.cybus/# operation: readWrite context: mqtt