Update Policy

org_policy.update_policy
ActionGoogle Cloudconnection required

Calls orgpolicy v2 PATCH /v2/projects/{projectsId}/policies/{policiesId}.

Updates a policy.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Organization Policy
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
policy
Policy name or id.
stringYes———
body
The GoogleCloudOrgpolicyV2Policy resource, as the API defines it.
objectYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
alternate
object—
dryRunSpec
object—
etag
string—
name
string—
spec
object—
{
  "alternate": {},
  "dryRunSpec": {},
  "etag": "",
  "name": "",
  "spec": {}
}

See Update Policy run in a workflow.

In a technical demo we add the Google Organization Policy connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.