- NAME
-
- gcloud alpha agent-registry bindings create - create bindings
- SYNOPSIS
-
-
gcloud alpha agent-registry bindings create(BINDING:--location=LOCATION)--source-identifier=SOURCE_IDENTIFIER--target-identifier=TARGET_IDENTIFIER[--async] [--description=DESCRIPTION] [--display-name=DISPLAY_NAME] [--request-id=REQUEST_ID] [--auth-provider-binding=AUTH_PROVIDER_BINDING:--auth-provider-binding-continue-uri=AUTH_PROVIDER_BINDING_CONTINUE_URI--auth-provider-binding-scopes=[AUTH_PROVIDER_BINDING_SCOPES,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Create a binding - EXAMPLES
-
To create the binding, run:
gcloud alpha agent-registry bindings create - POSITIONAL ARGUMENTS
-
-
Binding resource - Identifier. The resource name of the Binding. Format:
projects/{project}/locations/{location}/bindings/{binding}. 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
projectattribute:-
provide the argument
bindingon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
BINDING-
ID of the binding or fully qualified identifier for the binding.
To set the
bindingattribute:-
provide the argument
bindingon the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location=LOCATION-
The location id of the binding resource.
To set the
locationattribute:-
provide the argument
bindingon the command line with a fully specified name; -
provide the argument
--locationon the command line.
-
provide the argument
-
provide the argument
-
Binding resource - Identifier. The resource name of the Binding. Format:
- REQUIRED FLAGS
-
-
The source of the Binding.
This must be specified.
- Arguments for the source type.
--source-identifier=SOURCE_IDENTIFIER-
The identifier of the source Agent. Format:
-
urn:agent:{publisher}:{namespace}:{name}
-
-
The target of the Binding.
This must be specified.
- Arguments for the target type.
--target-identifier=TARGET_IDENTIFIER-
The identifier of the target Agent, MCP Server, or Endpoint. Format:
-
urn:agent:{publisher}:{namespace}:{name} -
urn:mcp:{publisher}:{namespace}:{name} -
urn:endpoint:{publisher}:{namespace}:{name}
-
-
The source of the Binding.
- OPTIONAL FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION-
User-defined description of a Binding. Can have a maximum length of
2048characters. --display-name=DISPLAY_NAME-
User-defined display name for the Binding. Can have a maximum length of
63characters. --request-id=REQUEST_ID-
An optional request ID to identify requests. Specify a unique request ID so that
if you must retry your request, the server will know to ignore the request if it
has already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- Arguments for the binding.
- The AuthProvider of the Binding.
--auth-provider-binding=AUTH_PROVIDER_BINDING-
The resource name of the target AuthProvider. Format:
-
projects/{project}/locations/{location}/authProviders/{auth_provider}
This flag argument must be specified if any of the other arguments in this group are specified.
-
--auth-provider-binding-continue-uri=AUTH_PROVIDER_BINDING_CONTINUE_URI- The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.
--auth-provider-binding-scopes=[AUTH_PROVIDER_BINDING_SCOPES,…]- The list of OAuth2 scopes of the AuthProvider.
- 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
agentregistry/v1alphaAPI. The full documentation for this API can be found at: https://docs.cloud.google.com/agent-registry/overview - 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.
gcloud alpha agent-registry bindings create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-14 UTC.