mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-14 00:46:53 +00:00
127 lines
4.6 KiB
Text
127 lines
4.6 KiB
Text
NAME
|
|
gcloud datastream private-connections create - create a Datastream private
|
|
connection
|
|
|
|
SYNOPSIS
|
|
gcloud datastream private-connections create
|
|
(PRIVATE_CONNECTION : --location=LOCATION) --display-name=DISPLAY_NAME
|
|
(--network-attachment=NETWORK_ATTACHMENT | --subnet=SUBNET --vpc=VPC)
|
|
[--labels=[KEY=VALUE,...]] [--validate-only] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Create a Datastream private connection
|
|
|
|
EXAMPLES
|
|
To create a privateConnection with VPC Peering called
|
|
'my-privateConnection', run:
|
|
|
|
$ gcloud datastream private-connections create \
|
|
my-privateConnection --location=us-central1 \
|
|
--display-name=my-privateConnection --vpc=vpc-example \
|
|
--subnet=10.0.0.0/29
|
|
|
|
To create a privateConnection with PSC Interface called
|
|
'my-privateConnection', run:
|
|
|
|
$ gcloud datastream private-connections create \
|
|
my-privateConnection --location=us-central1 \
|
|
--display-name=my-privateConnection \
|
|
--network-attachment=network-attachment-example
|
|
|
|
POSITIONAL ARGUMENTS
|
|
Private connection resource - The private connection to create. 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 private_connection on the command line with a
|
|
fully specified name;
|
|
◆ provide the argument --project on the command line;
|
|
◆ set the property core/project.
|
|
|
|
This must be specified.
|
|
|
|
PRIVATE_CONNECTION
|
|
ID of the private_connection or fully qualified identifier for the
|
|
private_connection.
|
|
|
|
To set the private_connection attribute:
|
|
▸ provide the argument private_connection on the command line.
|
|
|
|
This positional argument must be specified if any of the other
|
|
arguments in this group are specified.
|
|
|
|
--location=LOCATION
|
|
The Cloud location for the private_connection.
|
|
|
|
To set the location attribute:
|
|
▸ provide the argument private_connection on the command line with
|
|
a fully specified name;
|
|
▸ provide the argument --location on the command line.
|
|
|
|
REQUIRED FLAGS
|
|
--display-name=DISPLAY_NAME
|
|
Friendly name for the private connection.
|
|
|
|
Exactly one of these must be specified:
|
|
|
|
Arguments for Private Service Connect Interface configuration.
|
|
|
|
--network-attachment=NETWORK_ATTACHMENT
|
|
Full URI of the network attachment that datastream will connect
|
|
to.For example, this would be of the
|
|
form:network-attachment=projects/test-project/regions/us-central1/networkAttachments/my-na
|
|
|
|
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 group are specified.
|
|
|
|
Vpc resource - Resource ID of the VPC network to peer with. 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 project attribute:
|
|
▫ provide the argument --vpc on the command line with a fully
|
|
specified name;
|
|
▫ provide the argument --project on the command line;
|
|
▫ set the property core/project.
|
|
|
|
This must be specified.
|
|
|
|
--vpc=VPC
|
|
ID of the vpc or fully qualified identifier for the vpc.
|
|
|
|
To set the vpc attribute:
|
|
◇ provide the argument --vpc on the command line.
|
|
|
|
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, and numbers. 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
|
|
network attachment 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 help for details.
|
|
|
|
NOTES
|
|
This variant is also available:
|
|
|
|
$ gcloud beta datastream private-connections create
|
|
|