Get a specified resource’s IAM policy.
Note: This is an admin API.
Required permission
To call this endpoint, you must have the following permission:
cloudiot.registries.getIamPolicy
HTTP request
GET /api/v/4/webhook/execute/{adminSysKey}/policy?method=getIamPolicy
Query parameters
Parameters | |
---|---|
|
The project’s ID for which you want to get the policy. |
| (optional) The registry’s ID for which you want the policy. |
| (optional) The registry’s region for which you want the policy. |
If registry_id and region are included, the request will return the roles assigned at that registry’s level. If they are omitted, the request will return the roles assigned at the project’s level.
Response body
If successful, the response body contains a CbPolicy.
Example
https://iot.clearblade.com/api/v/4/webhook/execute/aae9b9b30c8aa4e49081c7eeb9bb07/policy?method=getIamPolicy&project_area=myProject123®ion=us-central1®istry_id=myRegistry123