...
Manages IoT core roles and permissions.
Methods |
---|
queryGrantableRoles | GET /api/v/4/webhook/execute/{adminSystemKey}/policy?method=queryGrantableRoles List all grantable roles on a specified resource.
|
getIamPolicy | POST /api/v/4/webhook/execute/{adminSystemKey}/policy?method=getIamPolicy Get the IAM policy for a specified resource.
|
setIamPolicy | POST /api/v/4/webhook/execute/{adminSystemKey}/policy?method=setIamPolicy Set the IAM policy for a specified resource.
|
testIamPermissions | DELETE /api/v/4/webhook/execute/{adminSystemKey}/policy?method=testIamPermissions Test whether a user has a list of permissions for a specified resource.
|
CbPolicy
...
Code Block |
---|
|
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. principal is the email of the principal.
principal_type indicates the kind of principal, such as a user or a service account.
|
IOTRole
Code Block |
---|
interface IOTRole {
id: string;
name: string;
permissions: string[];
is_custom: boolean;
description?: string;
project_id: string;
}
|
...