gcloud container vmware clusters enroll (CLUSTER : --location=LOCATION) (--admin-cluster-membership=ADMIN_CLUSTER_MEMBERSHIP : --admin-cluster-membership-location=ADMIN_CLUSTER_MEMBERSHIP_LOCATION --admin-cluster-membership-project=ADMIN_CLUSTER_MEMBERSHIP_PROJECT) [--async] [--local-name=LOCAL_NAME] [--validate-only] [GCLOUD_WIDE_FLAG …]
my-cluster
managed in location us-west1 with admin
cluster membership of
projects/my-project/locations/us-west1/memberships/my-admin-cluster-membership,
run:
gcloud container vmware clusters enroll my-cluster --location=us-west1 --admin-cluster-membership=projects/my-project/locations/us-west1/memberships/my-admin-cluster-membership
To set the project attribute:
cluster on the command line with a fully
specified name;
--project on the command line;
core/project.
CLUSTER
To set the cluster attribute:
cluster on the command line.
--location=LOCATIONlocation attribute:
cluster on the command line with a fully
specified name;
--location on the command line;
container_vmware/location.
Examples:
gcloud container vmware clusters enroll
--admin-cluster-membership=projects/example-project-12345/locations/us-west1/memberships/example-admin-cluster-nameor
gcloud container vmware clusters enroll
--admin-cluster-membership-project=example-project-12345
--admin-cluster-membership-location=us-west1
--admin-cluster-membership=example-admin-cluster-nameThe arguments in this group can be used to specify the attributes of this resource.
--admin-cluster-membership=ADMIN_CLUSTER_MEMBERSHIP
To set the admin_cluster_membership attribute:
--admin-cluster-membership on the command
line.
--admin-cluster-membership-location=ADMIN_CLUSTER_MEMBERSHIP_LOCATIONlocation attribute:
--admin-cluster-membership on the command line
with a fully specified name;
--admin-cluster-membership-location on the
command line.
--admin-cluster-membership-project=ADMIN_CLUSTER_MEMBERSHIP_PROJECTproject attribute:
--admin-cluster-membership on the command line
with a fully specified name;
--admin-cluster-membership-project on the
command line.
--async--local-name=LOCAL_NAME--validate-only--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.
gcloud alpha container vmware clusters enrollgcloud beta container vmware clusters enroll
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-05-27 UTC.