# Network Services API

- [REST Resource: v1beta1.projects.locations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1beta1.projects.locations)
- [REST Resource: v1beta1.projects.locations.gateways](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1beta1.projects.locations.gateways)
- [REST Resource: v1beta1.projects.locations.operations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1beta1.projects.locations.operations)
- [REST Resource: v1alpha1.projects.locations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1alpha1.projects.locations)
- [REST Resource: v1alpha1.projects.locations.gateways](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1alpha1.projects.locations.gateways)
- [REST Resource: v1alpha1.projects.locations.operations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1alpha1.projects.locations.operations)
- [REST Resource: v1.projects.locations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1.projects.locations)
- [REST Resource: v1.projects.locations.gateways](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1.projects.locations.gateways)
- [REST Resource: v1.projects.locations.operations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest#v1.projects.locations.operations)

## Service: networkservices.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://networkservices.googleapis.com/$discovery/rest?version=v1>
- <https://networkservices.googleapis.com/$discovery/rest?version=v1beta1>
- <https://networkservices.googleapis.com/$discovery/rest?version=v1alpha1>

### 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://networkservices.googleapis.com`

## REST Resource: [v1beta1.projects.locations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations/get` | `GET /v1beta1/{name=projects/*/locations/*}` Gets information about a location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations/list` | `GET /v1beta1/{name=projects/*}/locations` Lists information about the supported locations for this service. |

## REST Resource: [v1beta1.projects.locations.gateways](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/create` | `POST /v1beta1/{parent=projects/*/locations/*}/gateways` Creates a new Gateway in a given project and location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/delete` | `DELETE /v1beta1/{name=projects/*/locations/*/gateways/*}` Deletes a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/get` | `GET /v1beta1/{name=projects/*/locations/*/gateways/*}` Gets details of a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/getIamPolicy` | `GET /v1beta1/{resource=projects/*/locations/*/gateways/*}:getIamPolicy` Gets the access control policy for a resource. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/list` | `GET /v1beta1/{parent=projects/*/locations/*}/gateways` Lists Gateways in a given project and location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/patch` | `PATCH /v1beta1/{gateway.name=projects/*/locations/*/gateways/*}` Updates the parameters of a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/setIamPolicy` | `POST /v1beta1/{resource=projects/*/locations/*/gateways/*}:setIamPolicy` Sets the access control policy on the specified resource. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.gateways/testIamPermissions` | `POST /v1beta1/{resource=projects/*/locations/*/gateways/*}:testIamPermissions` Returns permissions that a caller has on the specified resource. |

## REST Resource: [v1beta1.projects.locations.operations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.operations/cancel` | `POST /v1beta1/{name=projects/*/locations/*/operations/*}:cancel` Starts asynchronous cancellation on a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.operations/delete` | `DELETE /v1beta1/{name=projects/*/locations/*/operations/*}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.operations/get` | `GET /v1beta1/{name=projects/*/locations/*/operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1beta1/projects.locations.operations/listOperations` | `GET /v1beta1/{name=projects/*/locations/*/operations/*}` Lists operations that match the specified filter in the request. |

## REST Resource: [v1alpha1.projects.locations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations/get` | `GET /v1alpha1/{name=projects/*/locations/*}` Gets information about a location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations/list` | `GET /v1alpha1/{name=projects/*}/locations` Lists information about the supported locations for this service. |

## REST Resource: [v1alpha1.projects.locations.gateways](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/create` | `POST /v1alpha1/{parent=projects/*/locations/*}/gateways` Creates a new Gateway in a given project and location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/delete` | `DELETE /v1alpha1/{name=projects/*/locations/*/gateways/*}` Deletes a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/get` | `GET /v1alpha1/{name=projects/*/locations/*/gateways/*}` Gets details of a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/getIamPolicy` | `GET /v1alpha1/{resource=projects/*/locations/*/gateways/*}:getIamPolicy` Gets the access control policy for a resource. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/list` | `GET /v1alpha1/{parent=projects/*/locations/*}/gateways` Lists Gateways in a given project and location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/patch` | `PATCH /v1alpha1/{gateway.name=projects/*/locations/*/gateways/*}` Updates the parameters of a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/setIamPolicy` | `POST /v1alpha1/{resource=projects/*/locations/*/gateways/*}:setIamPolicy` Sets the access control policy on the specified resource. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.gateways/testIamPermissions` | `POST /v1alpha1/{resource=projects/*/locations/*/gateways/*}:testIamPermissions` Returns permissions that a caller has on the specified resource. |

## REST Resource: [v1alpha1.projects.locations.operations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.operations/cancel` | `POST /v1alpha1/{name=projects/*/locations/*/operations/*}:cancel` Starts asynchronous cancellation on a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.operations/delete` | `DELETE /v1alpha1/{name=projects/*/locations/*/operations/*}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.operations/get` | `GET /v1alpha1/{name=projects/*/locations/*/operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1alpha1/projects.locations.operations/list` | `GET /v1alpha1/{name=projects/*/locations/*}/operations` Lists operations that match the specified filter in the request. |

## REST Resource: [v1.projects.locations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations/get` | `GET /v1/{name=projects/*/locations/*}` Gets information about a location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations/list` | `GET /v1/{name=projects/*}/locations` Lists information about the supported locations for this service. |

## REST Resource: [v1.projects.locations.gateways](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/create` | `POST /v1/{parent=projects/*/locations/*}/gateways` Creates a new Gateway in a given project and location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/delete` | `DELETE /v1/{name=projects/*/locations/*/gateways/*}` Deletes a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/get` | `GET /v1/{name=projects/*/locations/*/gateways/*}` Gets details of a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/list` | `GET /v1/{parent=projects/*/locations/*}/gateways` Lists Gateways in a given project and location. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/patch` | `PATCH /v1/{gateway.name=projects/*/locations/*/gateways/*}` Updates the parameters of a single Gateway. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/setIamPolicy` | `POST /v1/{resource=projects/*/locations/*/gateways/*}:setIamPolicy` Sets the access control policy on the specified resource. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.gateways/testIamPermissions` | `POST /v1/{resource=projects/*/locations/*/gateways/*}:testIamPermissions` Returns permissions that a caller has on the specified resource. |

## REST Resource: [v1.projects.locations.operations](https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.operations/cancel` | `POST /v1/{name=projects/*/locations/*/operations/*}:cancel` Starts asynchronous cancellation on a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.operations/delete` | `DELETE /v1/{name=projects/*/locations/*/operations/*}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.operations/get` | `GET /v1/{name=projects/*/locations/*/operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/secure-web-proxy/docs/reference/network-services/rest/v1/projects.locations.operations/listOperations` | `GET /v1/{name=projects/*/locations/*/operations/*}` Lists operations that match the specified filter in the request. |