Method: projects.constraints.list

Lists Constraints that could be applied on the specified resource.

HTTP request

GET https://orgpolicy.googleapis.com/v2/{parent=projects/*}/constraints

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * projects/{project_number} * projects/{project_id} * folders/{folder_id} * organizations/{organization_id}

Authorization requires the following IAM permission on the specified resource parent:

  • orgpolicy.constraints.list

Query parameters

Parameters
pageSize

integer

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

pageToken

string

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

Request body

The request body must be empty.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.