gcloud alpha network-services egress-routings create

INFORMATION
gcloud alpha network-services egress-routings create is not available in universe domain universe.
NAME
gcloud alpha network-services egress-routings create - create an Egress Routing
SYNOPSIS
gcloud alpha network-services egress-routings create (EGRESS_ROUTING : --location=LOCATION) --gateway=GATEWAY --sources=[workloadUri=WORKLOADURI] [--async] [--description=DESCRIPTION] [--etag=ETAG] [--labels=[LABELS,…]] [GCLOUD_WIDE_FLAG …]
DESCRIPTION
(ALPHA) Creates a new EgressRouting in a given project and location.
EXAMPLES
To create an egress routing my-egress-routing in location us-central1, run:
gcloud alpha network-services egress-routings create my-egress-routing --location=us-central1 --gateway=projects/my-project/locations/us-central1/gateways/my-gateway --sources="workloadUri=run.googleapis.com/projects/my-project/locations/us-central1/services/*"
POSITIONAL ARGUMENTS
EgressRouting resource - Identifier. Name of the EgressRouting resource. It matches pattern projects/*/locations/*/egressRoutings/<egress_routing>. 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 egress_routing 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.

EGRESS_ROUTING
ID of the egressRouting or fully qualified identifier for the egressRouting.

To set the egress_routing attribute:

  • provide the argument egress_routing on the command line.

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

--location=LOCATION
The location id of the egressRouting resource.

To set the location attribute:

  • provide the argument egress_routing on the command line with a fully specified name;
  • provide the argument --location on the command line.
REQUIRED FLAGS
--gateway=GATEWAY
The resource URI of the Policy Enforcement Point (PEP) where matched egress traffic must be redirected.

Supported PEPs: Secure Web Proxy (SWP), managed Agent Gateway, and SWP behind Service Attachment (PSC-SA).

Examples: "//networkservices.googleapis.com/projects/{project_id}/locations/{location}/gateways/{gateway_id}" "//networkservices.googleapis.com/projects/{project_id}/locations/{location}/agentGateways/{agent_gateway_id}" "//compute.googleapis.com/projects/{project_id}/regions/{region}/serviceAttachments/{service_attachment_id}"

--sources=[workloadUri=WORKLOADURI]
Required, Specifies the source workloads to which this EgressRouting rule applies.
workloadUri
The resource URI representing the workload, project, or location. Examples: "//cloudresourcemanager.googleapis.com/projects/{project_id}" "//run.googleapis.com/projects/{project_id}/locations/{location}/services/" "//container.googleapis.com/projects/{project_id}/locations/{location}/clusters/{cluster_name}" "//container.googleapis.com/projects/{project_id}/locations/{location}/clusters/{cluster_name}/k8s/namespaces/{namespace}".
Shorthand Example:
--sources=workloadUri=string --sources=workloadUri=string

JSON Example:

--sources='[{"workloadUri": "string"}]'

File Example:

--sources=path_to_file.(yaml|json)
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION
A free-text description of the resource. Max length 1024 characters.
--etag=ETAG
Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
--labels=[LABELS,…]
Set of label tags associated with the EgressRouting resource.
KEY
Keys must start with a lowercase character and contain only hyphens (-), underscores (_), lowercase characters, and numbers.
VALUE
Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers.
Shorthand Example:
--labels=string=string

JSON Example:

--labels='{"string": "string"}'

File Example:

--labels=path_to_file.(yaml|json)
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 networkservices/v1alpha1 API. The full documentation for this API can be found at: https://cloud.google.com/networking
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.