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.

FieldTypeRequiredDefaultConstraintsExample
organization
Organization name or id.
stringYes———
location
Location or region; taken from the connection when unset.
stringNo———
org_policy_violations_preview
Org policy violations preview name or id.
stringYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
createTime
string—
customConstraints
array—
name
string—
overlay
object—
resourceCounts
object—
state
string—
violationsCount
integer—
{
  "createTime": "",
  "customConstraints": [],
  "name": "",
  "overlay": {},
  "resourceCounts": {},
  "state": "",
  "violationsCount": 0
}

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.