Create Org Policy Violations Preview

policy_simulator.create_org_policy_violations_preview
ActionGoogle Cloudconnection required

Calls policysimulator v1 POST /v1/organizations/{organizationsId}/locations/{locationsId}/orgPolicyViolationsPreviews.

CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.

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———
body
The GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview resource, as the API defines it.
objectYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
done
boolean—
error
object—
metadata
object—
name
string—
response
object—
{
  "done": false,
  "error": {},
  "metadata": {},
  "name": "",
  "response": {}
}

See Create 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.