Get Org Policy Violations Preview
policy_simulator.get_org_policy_violations_preview
ActionGoogle Cloudconnection required
Calls policysimulator v1 GET /v1/organizations/{organizationsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}.
GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Policy Simulator
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, location
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
organization Organization name or id. | string | Yes | — | — | — |
location Location or region; taken from the connection when unset. | string | No | — | — | — |
org_policy_violations_preview Org policy violations preview name or id. | string | Yes | — | — | — |
Output
One shape.
result
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
createTime | string | — |
customConstraints | array | — |
name | string | — |
overlay | object | — |
resourceCounts | object | — |
state | string | — |
violationsCount | integer | — |
{
"createTime": "",
"customConstraints": [],
"name": "",
"overlay": {},
"resourceCounts": {},
"state": "",
"violationsCount": 0
}Related Google Policy Simulator nodes
See Get Org Policy Violations Preview run in a workflow.
In a technical demo we add the Google Policy Simulator connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.