- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
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 |
Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} |
Query parameters
Parameters | |
---|---|
pageSize |
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 |
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 ( |
Fields | |
---|---|
orgPolicyViolations[] |
The list of OrgPolicyViolations |
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.orgPolicyViolations.list
For more information, see the IAM documentation.