- INFORMATION
-
gcloud beta network-connectivity spokes linked-producer-vpc-network createis not available in universe domainuniverse. - NAME
-
- gcloud beta network-connectivity spokes linked-producer-vpc-network create - create a new Producer VPC spoke
- SYNOPSIS
-
-
gcloud beta network-connectivity spokes linked-producer-vpc-network createSPOKE--hub=HUB--network=NETWORK--peering=PEERING[--async] [--description=DESCRIPTION] [--exclude-export-ranges=[CIDR_RANGE,…]] [--global] [--include-export-ranges=[CIDR_RANGE,…]] [--labels=[KEY=VALUE,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)Create a new Producer VPC spoke. - EXAMPLES
-
To create a Producer VPC spoke named
, run:myspokegcloud beta network-connectivity spokes linked-producer-vpc-network create myspoke --hub="https://www.googleapis.com/networkconnectivity/v1/project\s/my-project/locations/global/hubs/my-hub" --global \ --network="https://www.googleapis.com/compute/v1/projects/my-pro\ ject/global/networks/my-vpc" --peering="my-peering-name" \ - POSITIONAL ARGUMENTS
-
-
Spoke resource - Name of the spoke to create. This represents a Cloud resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the
projectattribute:-
provide the argument
spokeon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
spokeon the command line with a fully specified name; -
provide the argument
--globalon the command line.
This must be specified.
SPOKE-
ID of the spoke or fully qualified identifier for the spoke.
To set the
spokeattribute:-
provide the argument
spokeon the command line.
-
provide the argument
-
provide the argument
-
Spoke resource - Name of the spoke to create. This represents a Cloud resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
- REQUIRED FLAGS
-
--hub=HUB- Hub that the spoke will attach to. The hub must already exist.
--network=NETWORK- Your VPC network that contains the peering to the Producer VPC, which this spoke connects to the Hub. The peering must already exist and be in the ACTIVE state.
--peering=PEERING- Peering between your network and the Producer VPC, which this spoke connects to the Hub. The peering must already exist and be in the ACTIVATE state.
- OPTIONAL FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION- Description of the spoke to create.
--exclude-export-ranges=[CIDR_RANGE,…]- Subnet IP address range(s) to hide from other VPC networks that are connected through Network Connectivity Center.
--global- Indicates that the spoke is global.
--include-export-ranges=[CIDR_RANGE,…]- Subnet IP address range(s) to export to other VPC networks that are connected through Network Connectivity Center.
--labels=[KEY=VALUE,…]-
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (
-), underscores (_), lowercase characters, and numbers. Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers.
- 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 helpfor details. - API REFERENCE
- This command uses the networkconnectivity/v1 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 beta and might change without notice. This variant
is also available:
gcloud network-connectivity spokes linked-producer-vpc-network create
gcloud beta network-connectivity spokes linked-producer-vpc-network create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]