- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
orgPolicyViolationsPreviews.list lists each OrgPolicyViolationsPreview
in an organization. Each OrgPolicyViolationsPreview
is available for at least 7 days.
HTTP request
GET https://policysimulator.googleapis.com/v1beta/{parent=organizations/*/locations/*}/orgPolicyViolationsPreviews
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent the violations are scoped to. Format: Example: |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be coerced to 10. |
pageToken |
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
ListOrgPolicyViolationsPreviewsResponse is the response message for OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"orgPolicyViolationsPreviews": [
{
object ( |
Fields | |
---|---|
orgPolicyViolationsPreviews[] |
The list of OrgPolicyViolationsPreview |
nextPageToken |
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.orgPolicyViolationsPreviews.list
For more information, see the IAM documentation.