Skip to main content
GET
/
v1
/
regions
/
global
/
iam
/
policies
List policy bindings
const options = {method: 'GET'};

fetch('https://api.example.com/v1/regions/global/iam/policies', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "roleId": "<string>",
      "principalType": "user",
      "principalId": "<string>",
      "scope": {
        "type": "organization",
        "id": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Query Parameters

scopeType
enum<string>

Filter by scope type

Available options:
organization,
project,
resource
scopeId
string

Filter by scope ID

principalId
string

Filter by principal

Response

200 - application/json

List of policy bindings

success
enum<boolean>
Available options:
true
data
object[]