- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Examples
- Try it!
Lists policy bindings.
HTTP request
GET https://iam.googleapis.com/v3beta/{parent=projects/*/locations/*}/policyBindings
The URL uses gRPC Transcoding syntax.
Path parameters
parent
string
Required. The parent resource, which owns the collection of policy bindings.
Format:
-
projects/{projectId}/locations/{location}
-
projects/{projectNumber}/locations/{location}
-
folders/{folderId}/locations/{location}
-
organizations/{organizationId}/locations/{location}
Query parameters
pageSize
integer
Optional. The maximum number of policy bindings to return. The service may return fewer than this value.
If unspecified, at most 50 policy bindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
pageToken
string
Optional. A page token, received from a previous policyBindings.list
call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to policyBindings.list
must match the call that provided the page token.
filter
string
Optional. An expression for filtering the results of the request. Filter rules are case insensitive. Some eligible fields for filtering are:
-
target
-
policy
Some examples of filter queries:
-
target:ex*
: The binding target's name starts with "ex". -
target:example
: The binding target's name isexample
. -
policy:example
: The binding policy's name isexample
.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListPolicyBindingsResponse
.
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
IAM Permissions
Requires the following IAM
permission on the parent
resource:
-
iam.policybindings.list
For more information, see the IAM documentation .