File: //snap/google-cloud-cli/396/help/man/man1/gcloud_container_fleet_memberships_bindings_create.1
.TH "GCLOUD_CONTAINER_FLEET_MEMBERSHIPS_BINDINGS_CREATE" 1
.SH "NAME"
.HP
gcloud container fleet memberships bindings create \- create a Membership Binding
.SH "SYNOPSIS"
.HP
\f5gcloud container fleet memberships bindings create\fR (\fIBINDING\fR\ :\ \fB\-\-location\fR=\fILOCATION\fR\ \fB\-\-membership\fR=\fIMEMBERSHIP\fR) \fB\-\-scope\fR=\fISCOPE\fR [\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
This command can fail for the following reasons:
.RS 2m
.IP "\(bu" 2m
The Membership Binding already exists.
.IP "\(bu" 2m
The caller does not have permission to access the given Membership.
.IP "\(bu" 2m
The Scope or the Membership does not exist.
.IP "\(bu" 2m
The caller did not specify the location (\-\-location) if referring to location
other than global.
.RE
.sp
.SH "EXAMPLES"
To create a membership binding \f5BINDING_NAME\fR in global membership
\f5MEMBERSHIP_NAME\fR for scope \f5SCOPE_NAME\fR, run:
.RS 2m
$ gcloud container fleet memberships bindings create BINDING_NAME \e
\-\-membership=MEMBERSHIP_NAME \-\-scope=SCOPE_NAME
.RE
To create a Binding \f5BINDING_NAME\fR associated with regional membership
\f5MEMBERSHIP_NAME\fR, provide the location LOCATION_NAME for the Membership
where the Binding belongs along with membership name and associated Scope
\f5SCOPE_NAME\fR.
.RS 2m
$ gcloud container fleet memberships bindings create BINDING_NAME \e
\-\-membership=MEMBERSHIP_NAME \-\-scope=SCOPE_NAME \e
\-\-location=LOCATION_NAME
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Binding resource \- The group of arguments defining a Membership 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 \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5BINDING\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fIBINDING\fR
ID of the binding or fully qualified identifier for the binding.
To set the \f5binding\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5BINDING\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Location for the binding.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5BINDING\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line;
.IP "\(bu" 2m
set the property \f5gkehub/location\fR.
.RE
.sp
.TP 2m
\fB\-\-membership\fR=\fIMEMBERSHIP\fR
Name of the binding.
To set the \f5membership\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5BINDING\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-membership\fR on the command line.
.RE
.sp
.RE
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-scope\fR=\fISCOPE\fR
ID of the scope or fully qualified identifier for the scope.
To set the \f5scope\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5\-\-scope\fR on the command line.
.RE
.sp
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (\f5\-\fR),
underscores (\f5_\fR), lowercase characters, and numbers. Values must contain
only hyphens (\f5\-\fR), underscores (\f5_\fR), lowercase characters, and
numbers.
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha container fleet memberships bindings create
.RE
.RS 2m
$ gcloud beta container fleet memberships bindings create
.RE