Create and manage intercept endpoint group associations

An intercept endpoint group association is a global resource that links a consumer's Virtual Private Cloud network to an intercept endpoint group for traffic inspection. For each VPC network that requires traffic inspection, you create an intercept endpoint group association. The VPC network is ready for traffic inspection after you configure the endpoint group, endpoint group association, and firewall rules to redirect the traffic.

After you configure the endpoint group and the endpoint group association, and configure the firewall rules to redirect the traffic to be inspected, the VPC network is ready for traffic inspection.

This page describes how to create and manage intercept endpoint group associations.

Before you begin

Roles

To create, view, or delete intercept endpoint group associations, ask your administrator to grant you the necessary Identity and Access Management (IAM) roles on your project. For more information about granting roles, see Manage access to projects, folders, and organizations.

To check the progress of the operations listed on this page, make sure that your user role has the following Intercept Endpoint Admin (roles/networksecurity.interceptEndpointAdmin) roles and permissions:

  • networksecurity.interceptEndpointGroupAssociations.create
  • networksecurity.interceptEndpointGroupAssociations.delete
  • networksecurity.interceptEndpointGroupAssociations.update
  • networksecurity.interceptEndpointGroupAssociations.get
  • networksecurity.interceptEndpointGroupAssociations.list
  • networksecurity.interceptEndpointGroups.use
  • compute.networks.use

Create an intercept endpoint group association

You can associate one or more VPC networks to a single intercept endpoint group.

In the create and manage intercept endpoint group section, you created an intercept endpoint group to handle the intercepted traffic. However, you must also specify which VPCs' traffic can be inspected. To do this, you create a project-level intercept endpoint group association.

You must create the intercept endpoint group association in the same project as the VPC network.

Console

  1. In the Google Cloud console, go to the Endpoint groups page.

    Go to Endpoint groups

  2. Click the name of the endpoint group.

  3. In the Associations section, click Create.

  4. In the Create associations pane, click Add endpoint group association.

  5. For Project and Network, select the project and the VPC network that hosts the intercept deployment group.

  6. Click Done.

  7. Click Create.

gcloud

To create an intercept endpoint group association, use the gcloud network-security intercept-endpoint-group-associations create command:

gcloud network-security intercept-endpoint-group-associations create ENDPOINT_GROUP_ASSOCIATION_ID \
    --location global \
    --network NETWORK \
    --no-async \
    --intercept-endpoint-group \
        projects/ENDPOINT_GROUP_PROJECT_ID/locations/global/interceptEndpointGroups/ENDPOINT_GROUP_ID

Replace the following:

  • ENDPOINT_GROUP_ASSOCIATION_ID: the ID of the intercept endpoint group association.
  • NETWORK: the name of the network.
  • ENDPOINT_GROUP_PROJECT_ID: the ID of the Google Cloud project where you created the intercept endpoint group.
  • ENDPOINT_GROUP_ID: the ID of the intercept endpoint group.

Terraform

To create an intercept endpoint group association, you can use a google_network_security_intercept_endpoint_group_association resource.

resource "google_network_security_intercept_endpoint_group_association" "default" {
  intercept_endpoint_group_association_id = "intercept-endpoint-group-association"
  location                                = "global"
  network                                 = google_compute_network.consumer_network.id
  intercept_endpoint_group                = google_network_security_intercept_endpoint_group.default.id
}

To learn how to apply or remove a Terraform configuration, see Basic Terraform commands.

View details of an intercept endpoint association

You can view the details of an intercept endpoint group association, including its name, intercept endpoint group, location, and network.

You can also see the details of intercept endpoint group association from the Endpoint groups tab of the VPC network's details page.

Console

  1. In the Google Cloud console, go to the Endpoint groups page.

    Go to Endpoint groups

  2. Click the name of the intercept endpoint group. The Associations section lists the details of the intercept endpoint associations.

gcloud

To view an intercept endpoint group association, use the gcloud network-security intercept-endpoint-group-associations describe command:

gcloud network-security intercept-endpoint-group-associations describe ENDPOINT_GROUP_ASSOCIATION_ID \
    --location global

Replace ENDPOINT_GROUP_ASSOCIATION_ID with the ID of the intercept endpoint group association.

In the output, the name of the intercept endpoint association is displayed in the projects/PROJECT_ID/locations/global/interceptEndpointGroupAssociations/ENDPOINT_GROUP_ASSOCIATION_ID format.

List intercept endpoint group associations

You can list all interceptor endpoint group associations in a project, including their IDs.

Console

  1. In the Google Cloud console, go to the Endpoint groups page.

    Go to Endpoint groups

  2. Click the name of the intercept endpoint group. The Associations section lists all intercept endpoint associations of the intercept endpoint group.

gcloud

To list all intercept endpoint group associations in a project, use the gcloud network-security intercept-endpoint-group-associations list command:

gcloud network-security intercept-endpoint-group-associations list

Delete an intercept endpoint group association

You can delete an intercept endpoint group association of the intercept deployment group.

Console

  1. In the Google Cloud console, go to the Endpoint groups page.

    Go to Endpoint groups

  2. Click the name of the intercept endpoint group.

  3. In the Associations section, select the intercept endpoint association to delete.

  4. Click Delete.

  5. Click Delete again to confirm.

gcloud

To delete an intercept endpoint group association, use the gcloud network-security intercept-endpoint-group-associations delete command:

gcloud network-security intercept-endpoint-group-associations delete ENDPOINT_GROUP_ASSOCIATION_ID \
    --no-async \
    --location global

Replace ENDPOINT_GROUP_ASSOCIATION_ID with the ID of the intercept endpoint group association.