*This page
applies to **Apigee** and **Apigee hybrid**.*

This page provides an overview of using VPC Service Controls for API hub, covering service perimeter configuration, perimeter verification, and known limitations.

## VPC Service Controls for API hub


API hub integrates with VPC Service Controls to provide enhanced network security for your API hub instance provisioned in Google Cloud.
VPC Service Controls enables you to establish a service perimeter around your API hub resources, constraining ingress and egress traffic. This perimeter helps to:

- **Limit unauthorised access:** Control which Google Cloud services and VPC networks can access your API hub resources.
- **Prevent data exfiltration:** Mitigate the risk of unauthorized download or export of API definitions, metadata, and other sensitive data stored within API hub.
- **Meet compliance requirements:** Support your organization's compliance and regulatory obligations by enforcing strict access controls.

<br />

For more information about VPC Service Controls, see the [Overview of VPC Service Controls](https://docs.cloud.google.com/vpc-service-controls/docs/overview.md.txt).

## Before you begin

- Read about [configuring service perimeters](https://docs.cloud.google.com/vpc-service-controls/docs/service-perimeters.md.txt).
- Read about [management of VPC networks in service perimeters](https://docs.cloud.google.com/vpc-service-controls/docs/vpc-perimeters-management.md.txt).
- Ensure that you have the required IAM role permissions to configure service perimeters. See [VPC Service Controls access control with IAM](https://docs.cloud.google.com/vpc-service-controls/docs/access-control.md.txt).

## Configure VPC Service Controls for API hub


To configure VPC Service Controls, you can use the Google Cloud console, the `gcloud` tool, or the [Access Context Manager APIs](https://docs.cloud.google.com/access-context-manager/docs/apis.md.txt). Perform the following steps:

1. Create an access policy for API hub. For more information, see [Create an access policy](https://docs.cloud.google.com/vpc-service-controls/docs/service-perimeters.md.txt#create-access-policy).
2. Create a service perimeter that includes the API hub (`apihub.googleapis.com`) service. For more information, see [Create a service perimeter](https://docs.cloud.google.com/vpc-service-controls/docs/create-service-perimeters.md.txt).

For information about the other optional VPC Service Controls configurations, see [Service perimeter configuration stages](https://docs.cloud.google.com/vpc-service-controls/docs/service-perimeters.md.txt#stages).

<br />

## Verify service perimeters

Verify and list the service perimeters created for API hub using the following `gcloud` command:

```
gcloud access-context-manager perimeters describe PERIMETER_NAME. 
```

For more information about managing service perimeters, see [Managing service perimeters](https://docs.cloud.google.com/vpc-service-controls/docs/manage-service-perimeters.md.txt).

## Limitations

All Apigee runtime projects associated with an API hub instance must reside within the same VPC Service Controls service perimeter as the API hub host project.