gcloud beta network-connectivity transports create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta network-connectivity transports create - create a new Transport
- SYNOPSIS
gcloud beta network-connectivity transports create(TRANSPORT:--location=LOCATION)--advertised-routes=ADVERTISED_ROUTES--bandwidth=BANDWIDTH--network=NETWORK--region=REGION--remote-profile=REMOTE_PROFILE[--activation-key=ACTIVATION_KEY][--async][--description=DESCRIPTION][--[no-]enable-admin][--labels=[KEY=VALUE,…]][--remote-account-id=REMOTE_ACCOUNT_ID][--stack-type=STACK_TYPE; default="IPV4_ONLY"][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)Create a new Transport.- EXAMPLES
- To create a transport named
,run:mytransportgcloudbetanetwork-connectivitytransportscreatemy-cci-aws-1--bandwidth1G--profileaws-us-east-1--networkmy-network--advertised-routes'10.128.0.0/9' - POSITIONAL ARGUMENTS
- Transport resource - Name of the transport to create. The arguments in thisgroup can be used to specify the attributes of this resource. (NOTE) Someattributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
transporton the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
TRANSPORT- ID of the transport or fully qualified identifier for the transport.
To set the
transportattribute:- provide the argument
transporton the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- The location Id.
To set the
locationattribute:- provide the argument
transporton the command line with a fullyspecified name; - provide the argument
--locationon the command line; - provide the argument
--regionon the command line.
- provide the argument
- provide the argument
- Transport resource - Name of the transport to create. The arguments in thisgroup can be used to specify the attributes of this resource. (NOTE) Someattributes are not given arguments in this group but can be set in other ways.
- REQUIRED FLAGS
--advertised-routes=ADVERTISED_ROUTES- List of routes to advertise to the remote network.
--bandwidth=BANDWIDTH- Bandwidth of the transport to create.
--network=NETWORK- Your VPC network that contains the peering to the Producer VPC, which this spokeconnects to the Hub. The peering must already exist and be in the ACTIVE state.
--region=REGION- A Google Cloud region. To see the names of regions, seeViewinga list of available regions. Use ``-`` to specify all regions.
--remote-profile=REMOTE_PROFILE- Profile of the transport to create.
- OPTIONAL FLAGS
--activation-key=ACTIVATION_KEY- Key used for establishing a connection with the remote transport.
--async- Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION- Description of the transport to create.
--[no-]enable-admin- Administrative state of the underlying connectivity. Use
--enable-adminto enable and--no-enable-admintodisable. --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, andnumbers. Values must contain only hyphens (-), underscores(_), lowercase characters, and numbers. --remote-account-id=REMOTE_ACCOUNT_ID- The user supplied account id for the CSP associated with the remote profile.
--stack-type=STACK_TYPE; default="IPV4_ONLY"- IP version stack for the established connectivity.
- 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 forthis 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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-16 UTC.