queryGrantableRoles

List all grantable roles on a specified resource.

Note: This is an admin API.

HTTP request

GET /api/v/4/webhook/execute/{adminSysKey}/policy?method=queryGrantableRoles

Query parameters

Parameters

Parameters

resource_level

"registry" | "project"

Certain roles are grantable only at the registry or project level. Specify which level you want to list.

project_area

string

The project ID for which you want to list grantable roles.

Response body

If successful, the response body contains a list of IoTRoles.

Example

https://iot.clearblade.com/api/v/4/webhook/execute/aae9b9b30c8aa4e49081c7eeb9bb07/policy?method=queryGrantableRolesmethod=queryGrantableRoles&resource_level=project&project_area=myProject123