gcloud network-connectivity regional-endpoints create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud network-connectivity regional-endpoints create - create a new regional endpoint
- SYNOPSIS
gcloud network-connectivity regional-endpoints create(REGIONAL_ENDPOINT:--region=REGION)--target-google-api=TARGET_GOOGLE_API[--address=ADDRESS][--async][--description=DESCRIPTION][--enable-global-access][--labels=[KEY=VALUE,…]][--network=NETWORK][--subnetwork=SUBNETWORK][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Create a new regional endpoint with the given name.
- EXAMPLES
- To create a regional endpoint with the name 'my-regional-endpoint' inus-central1 targeting my-target-endpoint, run:
gcloudnetwork-connectivityregional-endpointscreatemy-regional-endpoint--region=us-central1[--address=my-address][--network=my-network][--subnetwork=my-subnet]--target-google-api=my-target-endpoint[--enable-global-access] - POSITIONAL ARGUMENTS
- RegionalEndpoint resource - Name of the regional endpoint to be created. Thearguments 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 inother ways.
To set the
projectattribute:- provide the argument
regional_endpointon the command line with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
REGIONAL_ENDPOINT- ID of the regionalEndpoint or fully qualified identifier for theregionalEndpoint.
To set the
regional_endpointattribute:- provide the argument
regional_endpointon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--region=REGION- The location Id.To set the
regionattribute:- provide the argument
regional_endpointon the command line with afully specified name; - provide the argument
--regionon the command line.
- provide the argument
- provide the argument
- RegionalEndpoint resource - Name of the regional endpoint to be created. Thearguments 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 inother ways.
- REQUIRED FLAGS
--target-google-api=TARGET_GOOGLE_API- The service endpoint the regional endpoint will connect to.
- OPTIONAL FLAGS
--address=ADDRESS- The IP Address of the Regional Endpoint. When no address is provided, an IP fromthe subnetwork is allocated. Use one of the following formats:
- IPv4 address as in
10.0.0.1 - Address resource URI as in
for an IPv4 or IPv6 address.projects/{project}/regions/{region}/addresses/{address_name}
- IPv4 address as in
--async- Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION- Description of the regional endpoint.
--enable-global-access- Whether the REGIONAL or GLOBAL access is enabled.
--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. --network=NETWORK- Consumer's VPC network that this regional endpoint belongs to.
--subnetwork=SUBNETWORK- The name of the subnetwork from which the IP address will be allocated.
- 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/v1API. The fulldocumentation for this API can be found at:https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest - NOTES
- This variant is also available:
gcloudbetanetwork-connectivityregional-endpointscreate
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.