Googleapis Orgpolicy
Google Cloud Organization Policy API is a Google Cloud API for defining and enforcing governance constraints across cloud organizations, folders, and projects.
- Base URL:
https://orgpolicy.googleapis.com - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
orgpolicy_projects_policies_get— GET /v2/{name} — Gets a policy on a resource. If no policy is set on the resource,NOT_FOUNDisorgpolicy_projects_policies_geteffectivepolicy— GET /v2/{name}:getEffectivePolicy — Gets the effective policy on a resource. This is the result of merging policiesorgpolicy_projects_constraints_list— GET /v2/{parent}/constraints — Lists constraints that could be applied on the specified resource.orgpolicy_organizations_customconstraints_list— GET /v2/{parent}/customConstraints — Retrieves all of the custom constraints that exist on a particular organizationorgpolicy_projects_policies_list— GET /v2/{parent}/policies — Retrieves all of the policies that exist on a particular resource.orgpolicy_projects_policies_delete— DELETE /v2/{name} — Deletes a policy. Returns agoogle.rpc.Statuswithgoogle.rpc.Code.NOT_FOUND
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: orgpolicy_projects_policies_get
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: orgpolicy_projects_policies_get, orgpolicy_projects_policies_geteffectivepolicy, orgpolicy_projects_constraints_list, orgpolicy_organizations_customconstraints_list, orgpolicy_projects_policies_list, orgpolicy_projects_policies_delete |
name |
string | no | — | Path parameter name (required by some operations). |
parent |
string | no | — | Path parameter parent (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |