GET
/
iam
/
auth
/
v1
/
policies
/
{resource_key}
curl --request GET \
  --url https://api.mottostreaming.com/iam/auth/v1/policies/{resource_key} \
  --header 'Authorization: Bearer <token>'
{
  "policy": {
    "bindings": [
      {
        "role_id": "<string>",
        "account_ids": [
          "<string>"
        ],
        "all_organization_accounts": true
      }
    ]
  },
  "etag": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_key
string
required

A resource key for which policy is being requested.

For organizations, this key consists of two components: the organization ID and string "organization", joined by a forward slash. For all other resources, this key consists of three components: the resource ID, the project ID, and the resource type (e.g. "event" or project"), joined by forward slashes (for projects specifically, this contains the same resource ID twice).

Examples: For organization "example", use example/organization For project "demo", use demo/demo/project For event "r8efdFD9sMSaa93" inside the project "demo", use r8efdFD9sMSaa93/demo/event

Response

200
application/json
OK
policy
object

Authorization policy.

etag
string

Hash of the stored policy that must be sent by the client when updating the policy.