Method: organizations.locations.policyBindings.searchTargetPolicyBindings

Search policy bindings by target. Returns all policy binding objects bound directly to target.

HTTP request

GET https://iam.googleapis.com/v3beta/{parent=organizations/*/locations/*}/policyBindings:searchTargetPolicyBindings

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource where this search will be performed. This should be the nearest Resource Manager resource (project, folder, or organization) to the target.

Format:

  • projects/{projectId}/locations/{location}
  • projects/{projectNumber}/locations/{location}
  • folders/{folderId}/locations/{location}
  • organizations/{organizationId}/locations/{location}

Query parameters

Parameters
target

string

Required. The target resource, which is bound to the policy in the binding.

Format:

  • //iam.googleapis.com/locations/global/workforcePools/POOL_ID
  • //iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID
  • //iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
  • //cloudresourcemanager.googleapis.com/projects/{projectNumber}
  • //cloudresourcemanager.googleapis.com/folders/{folderId}
  • //cloudresourcemanager.googleapis.com/organizations/{organizationId}
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 SearchTargetPolicyBindingsRequest call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to SearchTargetPolicyBindingsRequest must match the call that provided the page token.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of SearchTargetPolicyBindingsResponse.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.