Method: organizations.locations.orgPolicyViolationsPreviews.orgPolicyViolations.list

orgPolicyViolations.list lists the [OrgPolicyViolations][] that are present in an OrgPolicyViolationsPreview.

HTTP request

GET https://policysimulator.googleapis.com/v1beta/{parent=organizations/*/locations/*/orgPolicyViolationsPreviews/*}/orgPolicyViolations

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 50 items 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 call. Provide this to retrieve the subsequent page.

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

Request body

The request body must be empty.

Response body

ListOrgPolicyViolationsResponse is the response message for OrgPolicyViolationsPreviewService.ListOrgPolicyViolations

If successful, the response body contains data with the following structure:

JSON representation
{
  "orgPolicyViolations": [
    {
      object (OrgPolicyViolation)
    }
  ],
  "nextPageToken": string
}
Fields
orgPolicyViolations[]

object (OrgPolicyViolation)

The list of OrgPolicyViolations

nextPageToken

string

A token that you can use to retrieve the next page of results. If this field is omitted, there are no subsequent pages.

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:

  • policysimulator.orgPolicyViolations.list

For more information, see the IAM documentation.