# Organization Policy API API

> Organization Policy API API on Apizie: 9 endpoints (Lists constraints that could be applied on the specified resource., Retrieves all of the policies that exist on a particular resource., Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not…, Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag…, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `analytics:googleapis-orgpolicy`
- Category: Analytics
- Status: byok
- Source: https://cloud.google.com/orgpolicy/docs/reference/rest/index.html
- Page: https://zieapi.vercel.app/api/analytics/googleapis-orgpolicy
- OpenAPI: https://zieapi.vercel.app/api/analytics/googleapis-orgpolicy/openapi.json

The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.

## Endpoints

### Lists constraints that could be applied on the specified resource.
`GET https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-constraints-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | no | Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. |
| pageToken | string | no | Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. |
| parent | string | yes | Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` *… |

### Retrieves all of the policies that exist on a particular resource.
`GET https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-policies-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | no | Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. |
| pageToken | string | no | Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. |
| parent | string | yes | Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be… |

### Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-policies-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}`… |
| body | object | yes | JSON request body |

### Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag…
`GET https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-policies-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. Resource name of the policy. See Policy for naming requirements. |

### Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-policies-patch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that… |
| updateMask | string | no | Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy,… |
| body | object | yes | JSON request body |

### Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-policies-delete` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| etag | string | no | Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the… |
| name | string | yes | Required. Name of the policy to delete. See the policy entry for naming rules. |

### Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy…
`GET https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-policies-get-effective-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. The effective policy to compute. See Policy for naming requirements. |

### Retrieves all of the custom constraints that exist on a particular organization resource.
`GET https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-organizations-custom-constraints-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | no | Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. |
| pageToken | string | no | Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. |
| parent | string | yes | Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one… |

### Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-organizations-custom-constraints-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. Must be in the following form: * `organizations/{organization_id}` |
| body | object | yes | JSON request body |

## Example
```
curl "https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-constraints-list" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Organization Policy API API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/analytics:googleapis-orgpolicy/orgpolicy-projects-constraints-list with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Organization Policy API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Organization Policy API itself also needs your own key from googleapis.com.

### Can AI agents use the Organization Policy API API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key analytics:googleapis-orgpolicy.

### What is the status of the Organization Policy API API?
Needs your own provider key (bring your own key)
