Skip to Content
kosemdocs
ReferenceAPIService accounts

Get IAM policy in project

Gets the IAM policy of a service account: who may manage or use it.

GET
/v1/projects/{project}/serviceAccounts/{serviceAccount}/iam-policy

Gets the IAM policy of a service account: who may manage or use it.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

project*string

The project's ID.

Match^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$
serviceAccount*string

The service account's ID.

Match^sa_[0-7][0-9a-hjkmnp-tv-z]{25}$

Response Body

OK

application/json
  1. response
bindings*array<>

Role bindings. Each role appears at most once.

etag*string

Opaque version of the policy. Send it back when setting the policy; the update fails with aborted if the policy changed in between.

Example Request
curl -X GET 'https://api.kosem.ai/v1/projects/string/serviceAccounts/string/iam-policy'
Example Response
{
  "bindings": [
    {
      "members": [
        "string"
      ],
      "role": "string"
    }
  ],
  "etag": "string"
}