Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

API

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.

Type reference:

type CbPolicy = CbBinding[]

type CbBinding = {
  role_id: string;
  members: {
    principal_type: "user" | "serviceAccount";
    principal: string;    
  }[]
}
  • No labels