- NAME
-
- gcloud alpha services vpc-peerings connect - connect to a service via VPC peering for a project network
- SYNOPSIS
-
-
gcloud alpha services vpc-peerings connect
--network
=NETWORK
--ranges
=RANGES
[--async
] [--service
=SERVICE
; default="servicenetworking.googleapis.com"] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
This command connects a private service connection to a service via a VPC network. - EXAMPLES
-
To connect a network called
my-network
on the current project to a service calledyour-service
with IP CIDR rangesgoogle-range-1,google-range-2
for the service to use, run:gcloud alpha services vpc-peerings connect --network=my-network --service=your-service --ranges=google-range-1,google-range-2
To run the same command asynchronously (non-blocking), run:
gcloud alpha services vpc-peerings connect --network=my-network --service=your-service --ranges=google-range-1,google-range-2 --async
- REQUIRED FLAGS
-
--network
=NETWORK
- The network in the current project to be peered with the service
--ranges
=RANGES
- The names of IP CIDR ranges for service to use.
- OPTIONAL FLAGS
-
--async
- Return immediately, without waiting for the operation in progress to complete.
--service
=SERVICE
; default="servicenetworking.googleapis.com"- The service to 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 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. These variants are also available:
gcloud services vpc-peerings connect
gcloud beta services vpc-peerings connect
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 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-02-06 UTC."}