Attach a virtual gateway
You can attach a virtual gateway to a VPC (Virtual Private Cloud). You can then set up a VPN (Virtual Private Network) connection between this VPC and a client gateway.
This action changes the attachment state of the virtual gateway from detached to attached, but the state of the virtual gateway remains available.
You can attach each virtual gateway to a single VPC at a time. You can attach a virtual gateway to a VPC before or after creating the VPN connection.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- connectivity.bridge.update
Before you start:
- Create a virtual gateway.
- Make sure the virtual gateway is in the
availablestate. - Create a VPC.
- Console
- API
- Terraform
- Click in the Virtual Gateways dashboard to display the checkboxes.
- Select the checkbox of the virtual gateway you want to attach to a VPC. The virtual gateway is selected and an actions menu appears.
- Click Attach to a VPC. The "Attach to a VPC" dialog box appears.
- In the "VPC" list, select the ID of the VPC to which you want to attach the virtual gateway.
- Click Attach. The virtual gateway is attached to the specified VPC.
The POST /connectivity/spaces/{spaceId}/virtualGateways/{id}/link command attaches a virtual gateway to a VPC.
This action can only be performed if the virtual gateway is in the available state.
The Terraform documentation is available on the Numspot registry ↗.