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' in us-central1 targeting my-target-endpoint, run:
gcloud network-connectivity regional-endpoints create my-regional-endpoint --region=us-central1 [--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. 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 regional_endpoint 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.

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

To set the regional_endpoint attribute:

  • provide the argument regional_endpoint on the command line.

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

--region=REGION
The location Id. To set the region attribute:
  • provide the argument regional_endpoint on the command line with a fully 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 from the subnetwork is allocated. Use one of the following formats:
  • IPv4 address as in 10.0.0.1
  • Address resource URI as in projects/{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, and numbers. 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 the networkconnectivity/v1 API. The full documentation for this API can be found at: https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest
NOTES
This variant is also available:
gcloud beta network-connectivity regional-endpoints create