This page describes how to create an NCC Gateway spoke resource in a specified region connected to the Network Connectivity Center hub.
gcloud
Use the gcloud beta network-connectivity spokes gateways create
command:
gcloud beta network-connectivity spokes gateways create SPOKE_NAME \ --region=REGION \ --hub=HUB \ --capacity=CAPACITY \ --ip-range-reservations=IP_RANGE \ --group=gateways
Replace the following:
SPOKE_NAME
: the name of the spokeREGION
: the region that you want the NCC Gateway to be deployed inHUB
: the name of the hub for the spokeCAPACITY
: the capacity of the gateway spoke, in GbpsSupported capacity values are 1, 10, or 100.
IP_RANGE
: a block of IP address ranges used to allocate supporting infrastructure for this gateway—for example, 10.1.2.0/23The IP address block must be a /23 range. This IP address block must not overlap with subnets in any spoke or peer network that the gateway can communicate with.
API
To create an NCC Gateway spoke, use the
projects.locations.spokes.create
method.
POST https://networkconnectivity.googleapis.com/v1beta/projects/PROJECT_ID/locations/global/spokes/SPOKE_NAME { "hub":"HUB_NAME", "location" : LOCATION, "gateway": { "ip_range_reservation": IP_RANGE, "capacity": CAPACITY "group": gateways }, }
Replace the following values:
PROJECT_ID
: the project ID of the project that contains the new spokeSPOKE_NAME
: the name of the spokeHUB_NAME
: the name of the hub that you are attaching the spoke toLOCATION
: the region that you want the NCC Gateway to be deployed inIP_RANGE
: a block of IP address ranges used to allocate supporting infrastructure for this gateway—for example, 10.1.2.0/23The IP address block must be a /23 range. This IP address block must not overlap with subnets in any spoke or peer network that the gateway can communicate with.
CAPACITY
: the capacity of the gateway spoke, in GbpsSupported capacity values are 1, 10, or 100.