gcloud alpha network-services service-bindings create

NAME
gcloud alpha network-services service-bindings create - create a service binding
SYNOPSIS
gcloud alpha network-services service-bindings create (SERVICE_BINDING : --location=LOCATION) --service-directory-namespace=SERVICE_DIRECTORY_NAMESPACE --service-directory-region=SERVICE_DIRECTORY_REGION --service-directory-service=SERVICE_DIRECTORY_SERVICE [--async] [--description=DESCRIPTION] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Create a new service binding with the given name.
EXAMPLES
Create a service binding with the name 'my-service-binding', service-directory-region 'my-region', service-directory-namespace 'my-namespace', service-directory-service 'my-service' and location 'global'.
gcloud alpha network-services service-bindings create my-service-binding --service-directory-region="my-region" --service-directory-namespace="my-namespace" --service-directory-service="my-service" --location="global"
POSITIONAL ARGUMENTS
Service binding resource - Name of the service binding 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 service_binding 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.

SERVICE_BINDING
ID of the service binding or fully qualified identifier for the service binding.

To set the service_binding attribute:

  • provide the argument service_binding 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. To set the location attribute:
  • provide the argument service_binding on the command line with a fully specified name;
  • provide the argument --location on the command line.
REQUIRED FLAGS
--service-directory-namespace=SERVICE_DIRECTORY_NAMESPACE
Namespace of the Service Directory service.
--service-directory-region=SERVICE_DIRECTORY_REGION
Region of the Service Directory service.
--service-directory-service=SERVICE_DIRECTORY_SERVICE
Service name of the Service Directory service.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION
The description for the service binding.
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. These variants are also available:
gcloud network-services service-bindings create
gcloud beta network-services service-bindings create