# Cloud Identity-Aware Proxy API

Controls access to cloud applications running on Google Cloud Platform.

- [REST Resource: v1beta1](https://docs.cloud.google.com/iap/docs/reference/rest#v1beta1)
- [REST Resource: v1](https://docs.cloud.google.com/iap/docs/reference/rest#v1)
- [REST Resource: v1.projects.brands](https://docs.cloud.google.com/iap/docs/reference/rest#v1.projects.brands)
- [REST Resource: v1.projects.brands.identityAwareProxyClients](https://docs.cloud.google.com/iap/docs/reference/rest#v1.projects.brands.identityAwareProxyClients)
- [REST Resource: v1.projects.iap_tunnel.locations.destGroups](https://docs.cloud.google.com/iap/docs/reference/rest#v1.projects.iap_tunnel.locations.destGroups)

## Service: iap.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

- <https://iap.googleapis.com/$discovery/rest?version=v1>
- <https://iap.googleapis.com/$discovery/rest?version=v1beta1>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://iap.googleapis.com`

## REST Resource: [v1beta1](https://docs.cloud.google.com/iap/docs/reference/rest/v1beta1/TopLevel)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1beta1/TopLevel/getIamPolicy` | `POST /v1beta1/{resource=**}:getIamPolicy` Gets the access control policy for an Identity-Aware Proxy protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1beta1/TopLevel/setIamPolicy` | `POST /v1beta1/{resource=**}:setIamPolicy` Sets the access control policy for an Identity-Aware Proxy protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1beta1/TopLevel/testIamPermissions` | `POST /v1beta1/{resource=**}:testIamPermissions` Returns permissions that a caller has on the Identity-Aware Proxy protected resource. |

## REST Resource: [v1](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/getIamPolicy` | `POST /v1/{resource=**}:getIamPolicy` Gets the access control policy for an Identity-Aware Proxy protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/getIapSettings` | `GET /v1/{name=**}:iapSettings` Gets the IAP settings on a particular IAP protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/setIamPolicy` | `POST /v1/{resource=**}:setIamPolicy` Sets the access control policy for an Identity-Aware Proxy protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/testIamPermissions` | `POST /v1/{resource=**}:testIamPermissions` Returns permissions that a caller has on the Identity-Aware Proxy protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/updateIapSettings` | `PATCH /v1/{iapSettings.name=**}:iapSettings` Updates the IAP settings on a particular IAP protected resource. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression` | `POST /v1/{name=**}:validateAttributeExpression` Validates that a given CEL expression conforms to IAP restrictions. |

## REST Resource: [v1.projects.brands](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands/create` | `POST /v1/{parent=projects/*}/brands` Constructs a new OAuth brand for the project if one does not exist. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands/get` | `GET /v1/{name=projects/*/brands/*}` Retrieves the OAuth brand of the project. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands/list` | `GET /v1/{parent=projects/*}/brands` Lists the existing brands for the project. |

## REST Resource: [v1.projects.brands.identityAwareProxyClients](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients/create` | `POST /v1/{parent=projects/*/brands/*}/identityAwareProxyClients` Creates an Identity Aware Proxy (IAP) OAuth client. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients/delete` | `DELETE /v1/{name=projects/*/brands/*/identityAwareProxyClients/*}` Deletes an Identity Aware Proxy (IAP) OAuth client. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients/get` | `GET /v1/{name=projects/*/brands/*/identityAwareProxyClients/*}` Retrieves an Identity Aware Proxy (IAP) OAuth client. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients/list` | `GET /v1/{parent=projects/*/brands/*}/identityAwareProxyClients` Lists the existing clients for the brand. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients/resetSecret` | `POST /v1/{name=projects/*/brands/*/identityAwareProxyClients/*}:resetSecret` Resets an Identity Aware Proxy (IAP) OAuth client secret. |

## REST Resource: [v1.projects.iap_tunnel.locations.destGroups](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/create` | `POST /v1/{parent=projects/*/iap_tunnel/locations/*}/destGroups` Creates a new TunnelDestGroup. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/delete` | `DELETE /v1/{name=projects/*/iap_tunnel/locations/*/destGroups/*}` Deletes a TunnelDestGroup. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/get` | `GET /v1/{name=projects/*/iap_tunnel/locations/*/destGroups/*}` Retrieves an existing TunnelDestGroup. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list` | `GET /v1/{parent=projects/*/iap_tunnel/locations/*}/destGroups` Lists the existing TunnelDestGroups. |
| `https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/patch` | `PATCH /v1/{tunnelDestGroup.name=projects/*/iap_tunnel/locations/*/destGroups/*}` Updates a TunnelDestGroup. |