NAME

gcloud alpha network-connectivity spokes create - create a new spoke

SYNOPSIS

gcloud alpha network-connectivity spokes create (SPOKE : --region=REGION) --hub=HUB (--interconnect-attachment=[INTERCONNECT_ATTACHMENT,...] | --router-appliance=ROUTER_APPLIANCE | --vpn-tunnel=[VPN_TUNNEL,...]) [--async] [--description=DESCRIPTION] [--labels=KEY=VALUE] [GCLOUD_WIDE_FLAG ...]

DESCRIPTION

(ALPHA) Create a new spoke with the given name.

EXAMPLES

Create a spoke with name my-spoke attach to hub https://www.googleapis.com/networkconnectivity/v1/projects/my-project/locations/global/hubs/my-hub in region us-central1.

$ gcloud alpha network-connectivity spokes create my-spoke \ --hub="https://www.googleapis.com/networkconnectivity/v1/project\ s/my-project/locations/global/hubs/my-hub" --region=us-central1

POSITIONAL ARGUMENTS

Spoke resource - Name of the spoke to be created. The arguments in this group

can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute:

provide the argument spoke on the command line with a fully specified name;

set the property core/project;

provide the argument --project on the command line.

This must be specified.

SPOKE

ID of the spoke or fully qualified identifier for the spoke. To set the spoke attribute:

  • provide the argument spoke on the command line.

This positional argument must be specified if any of the other arguments in this group are specified.

--region=REGION

The location Id.

To set the region attribute:

  • provide the argument spoke on the command line with a fully specified name;

  • provide the argument --region on the command line.

REQUIRED FLAGS

--hub=HUB

Hub that spoke will attach to.

Exactly one of these must be specified:
--interconnect-attachment=[INTERCONNECT_ATTACHMENT,...]

Interconnect attachment that this spoke links to.

--router-appliance=ROUTER_APPLIANCE

Router appliance instance(s) that this spoke links to.

For example, use --router-appliance=instance=ins_1,ip=10.10.0.1 to add a single router-appliance instance, or --router-appliance=instance=ins_1,ip=10.10.0.1 --router-appliance=instance=ins_2,ip=10.10.0.1 ... to add multiple instances.

--vpn-tunnel=[VPN_TUNNEL,...]

VPN tunnel that this spoke links to.

OPTIONAL FLAGS

--async

Return immediately, without waiting for the operation in progress to complete.

--description=DESCRIPTION

Description of the spoke to be created.

--labels=KEY=VALUE

List of label KEY=VALUE pairs to add.

GCLOUD WIDE FLAGS

These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

API REFERENCE

This command uses the networkconnectivity/v1alpha1 API. The full documentation for this API can be found at: https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest

NOTES

This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.