org_policy_violations
Creates, updates, deletes, gets or lists an org_policy_violations
resource.
Overview
Name | org_policy_violations |
Type | Resource |
Id | google.policysimulator.org_policy_violations |
Fields
The following fields are returned by SELECT
queries:
- organizations_locations_org_policy_violations_previews_org_policy_violations_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The name of the OrgPolicyViolation . Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce` |
customConstraint | object | The custom constraint being violated. (id: GoogleCloudOrgpolicyV2CustomConstraint) |
error | object | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: GoogleRpcStatus) |
resource | object | The resource violating the constraint. (id: GoogleCloudPolicysimulatorV1ResourceContext) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
organizations_locations_org_policy_violations_previews_org_policy_violations_list | select | organizationsId , locationsId , orgPolicyViolationsPreviewsId | pageSize , pageToken | ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
orgPolicyViolationsPreviewsId | string | |
organizationsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- organizations_locations_org_policy_violations_previews_org_policy_violations_list
ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview.
SELECT
name,
customConstraint,
error,
resource
FROM google.policysimulator.org_policy_violations
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND orgPolicyViolationsPreviewsId = '{{ orgPolicyViolationsPreviewsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';