API
Manages IoT core roles and permissions.
Methods | |
---|---|
| |
| |
| |
|
CbPolicy
type CbPolicy = CbBinding[] type CbBinding = { role_id: string; members: { principal_type: "user" | "serviceAccount"; principal: string; }[] }
Fields | |
---|---|
role_id | The role to which the list of members are assigned. |
members[] | A list of principals that are assigned to the role in the binding.
|
IOTRole
interface IOTRole { id: string; name: string; permissions: string[]; is_custom: boolean; description?: string; project_id: string; }
Fields | |
---|---|
id | The unique identifier of the role. |
name | The user-readable label of the role. |
permissions | A list of permissions that principals receive when assigned this role. |
is_custom | Whether the role is built-in to IoT core or user-created. (User-created roles are not yet supported) |
description | An optional description of the capabilities the role allows for principals. |
project_id | The unique identifier for the project where this role is assignable. |