gcloud alpha container memberships create

NAME
gcloud alpha container memberships create - create a new membership
SYNOPSIS
gcloud alpha container memberships create (MEMBERSHIP : --location=LOCATION) --description=DESCRIPTION [--async] [--gke-cluster-self-link=GKE_CLUSTER_SELF_LINK] [--labels=[KEY=VALUE,…]] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) (DEPRECATED) This command group is deprecated. Please use gcloud container hub memberships command group instead.

Create a new membership in Google Kubernetes Hub.

POSITIONAL ARGUMENTS
Membership resource - membership resource representing a cluster in Google Kubernetes Hub. 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 [membership] on the command line with a fully specified name; set the property [core/project]; provide the argument [--project] on the command line. This must be specified.
MEMBERSHIP
ID of the membership or fully qualified identifier for the membership. This positional must be specified if any of the other arguments in this group are specified.
--location=LOCATION
The location name.
REQUIRED FLAGS
--description=DESCRIPTION
Description of the membership resource.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
GKE cluster self-link of the cluster represented by this membership; for example, '//container.googleapis.com/projects/my-project/locations/us-central1-a/clusters/my-cluster.' This is only valid if the represented cluster is a GKE cluster. The provided self-link will be validated to confirm that it maps to the cluster represented by this membership.
--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.

GCLOUD WIDE FLAGS
These flags are available to all commands: --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 gkehub/v1beta1 API. The full documentation for this API can be found at: https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster
EXAMPLES
Create a membership for a cluster:
gcloud alpha container memberships create a-membership --description="Description of a-membership."
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access allowlist. This variant is also available:
gcloud beta container memberships create