gcloud network-connectivity regional-endpoints create

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 theproject attribute:

  • provide the argumentregional_endpoint on the command line with afully specified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

REGIONAL_ENDPOINT
ID of the regionalEndpoint or fully qualified identifier for theregionalEndpoint.

To set theregional_endpoint attribute:

  • provide the argumentregional_endpoint on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--region=REGION
The location Id.To set theregion attribute:
  • provide the argumentregional_endpoint on the command line with afully specified name;
  • provide the argument--region on the command line.
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 in10.0.0.1
  • Address resource URI as inprojects/{project}/regions/{region}/addresses/{address_name}for an IPv4 or IPv6 address.
--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 help for details.

API REFERENCE
This command uses thenetworkconnectivity/v1 API. 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.