Attach an internet gateway to a VPC
You can attach an internet gateway to a VPC (Virtual Private Cloud) in order to connect VM (Virtual Machine) in one or more subnets directly to the internet, through a route in their route table, security group rules and public IP.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- compute.internetGateway.update
- Console
- API
- Terraform
-
Log in to the Numspot console.
-
From the left-hand side menu, click Network → VPC → Internet Gateways.

-
Identify the internet gateway that you want to associate with a VPC, then from the list of actions, click Link to a VPC.
A new Link to a VPC dialog box appears.

-
Select the VPC to associate from the list offered.
-
Click Link. The internet gateway is linked to the VPC.
A confirmation message "The VPC has been successfully linked to the Internet Gateway" appears.

The PUT /compute/spaces/{spaceId}/internetGateways/{id}/vpcs/link command attaches an internet gateway to a VPC.
To enable the connection between the internet and a VPC, you must attach an internet gateway to that VPC.
Example request: Attach an internet gateway to a VPC ↗
The command that attaches an internet gateway to a VPC returns an HTTP 204 NO CONTENT code, indicating that the operation has been performed and that no content is returned in the response.
The Terraform documentation is available on the Numspot registry ↗.