gcloud beta datastream private-connections create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta datastream private-connections create - create a Datastream private connection
- SYNOPSIS
gcloud beta datastream private-connections create(PRIVATE_CONNECTION:--location=LOCATION)--display-name=DISPLAY_NAME(--subnet=SUBNET--vpc-name=VPC_NAME)[--labels=[KEY=VALUE,…]][--validate-only][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)(DEPRECATED)Datastream beta version isdeprecated. Please use`gclouddatastream private-connections createcommand instead.Create a Datastream private connection
- EXAMPLES
- To create a privateConnection with VPC Peering called 'my-privateConnection',run:
gcloudbetadatastreamprivate-connectionscreatemy-privateConnection--location=us-central1--display-name=my-privateConnection--vpc-name=vpc-example--subnet=10.0.0.0/29 - POSITIONAL ARGUMENTS
- Private connection resource - The private connection to create. The arguments inthis group 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
private_connectionon the command line with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
PRIVATE_CONNECTION- ID of the private_connection or fully qualified identifier for theprivate_connection.
To set the
private_connectionattribute:- provide the argument
private_connectionon 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 Cloud location for the private_connection.
To set the
locationattribute:- provide the argument
private_connectionon the command line with afully specified name; - provide the argument
--locationon the command line.
- provide the argument
- provide the argument
- Private connection resource - The private connection to create. The arguments inthis group 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
--display-name=DISPLAY_NAME- Friendly name for the private connection.
- This must be specified.
- Arguments for VPC Peering configuration.
--subnet=SUBNET- A free subnet for peering. (CIDR of /29).
This flag argument must be specified if any of the other arguments in this groupare specified.
- Vpc resource - Resource ID of the VPC network to peer with. This represents aCloud resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
To set the
projectattribute:- provide the argument
--vpc-nameon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
--vpc-name=VPC_NAME- ID of the vpc or fully qualified identifier for the vpc.
To set the
vpcattribute:- provide the argument
--vpc-nameon the command line.
- provide the argument
- provide the argument
- Arguments for VPC Peering configuration.
- OPTIONAL FLAGS
--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. --validate-only- If set, the request will retrieve the project id to allow in the networkattachment Datastream will connect to.
- 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. - NOTES
- This command is currently in beta and might change without notice. This variantis also available:
gclouddatastreamprivate-connectionscreate
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-05-07 UTC.