- NAME
-
- gcloud vmware private-clouds clusters mount-datastore - mount a datastore to a Google Cloud VMware Engine cluster
- SYNOPSIS
-
-
gcloud vmware private-clouds clusters mount-datastore(CLUSTER:--location=LOCATION--private-cloud=PRIVATE_CLOUD)--datastore=DATASTORE(--datastore-network=PATH_TO_FILE| [--subnet=SUBNET:--connection-count=CONNECTION_COUNT--mtu=MTU]) [--access-mode=ACCESS_MODE] [--async] [--ignore-colocation] [--nfs-version=NFS_VERSION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Mount a datastore to a cluster in a VMware Engine private cloud.
- EXAMPLES
-
To mount a datastore
my-datastoreto clustermy-clusterin private cloudmy-private-cloudin zoneus-west2-a, providing subnet, run:gcloud vmware private-clouds clusters mount-datastore my-cluster --location=us-west2-a --project=my-project --private-cloud=my-private-cloud --datastore=projects/my-project/locations/us-west2-a/datastores/my-datastore --subnet=my-subnetOr:
gcloud vmware private-clouds clusters mount-datastore my-cluster --private-cloud=my-private-cloud --datastore=projects/my-project/locations/us-west2-a/datastores/my-datastore --subnet=my-subnetTo mount a datastore
my-datastoreto clustermy-clusterin private cloudmy-private-cloudin zoneus-west2-a, providing a json file for datastore network, run:gcloud vmware private-clouds clusters mount-datastore my-cluster --location=us-west2-a --project=my-project --private-cloud=my-private-cloud --datastore=projects/my-project/locations/us-west2-a/datastores/my-datastore --datastore-network=network-config.jsonWhere `network-config.json` contains: { "subnet": "my-subnet", "mtu": 1500, "connection-count": 4 }
In the examples without location and project, the project and location are taken from gcloud properties core/project and compute/zone.
- POSITIONAL ARGUMENTS
-
-
Cluster resource - cluster. 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
clusteron the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
CLUSTER-
ID of the cluster or fully qualified identifier for the cluster.
To set the
clusterattribute:-
provide the argument
clusteron 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-
Location of the private cloud or cluster.
To set the
locationattribute:-
provide the argument
clusteron the command line with a fully specified name; -
provide the argument
--locationon the command line; -
set the property
compute/zone.
-
provide the argument
--private-cloud=PRIVATE_CLOUD-
VMware Engine private cloud.
To set the
private-cloudattribute:-
provide the argument
clusteron the command line with a fully specified name; -
provide the argument
--private-cloudon the command line.
-
provide the argument
-
provide the argument
-
Cluster resource - cluster. 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.
- REQUIRED FLAGS
-
--datastore=DATASTORE- The datastore resource name to mount.
-
Exactly one of these must be specified:
--datastore-network=PATH_TO_FILE- Path to a JSON file containing the datastore network configuration. Use a full or relative path to a local file containing the value of datastore_network.
-
Datastore network configuration if not providing via file.
--subnet=SUBNET-
Subnet to use for inlined datastore network configuration.
This flag argument must be specified if any of the other arguments in this group are specified.
--connection-count=CONNECTION_COUNT- Connection count for inlined datastore network configuration.
--mtu=MTU- MTU for inlined datastore network configuration.
- OPTIONAL FLAGS
-
--access-mode=ACCESS_MODE-
Access mode for the datastore.
ACCESS_MODEmust be one of:READ_WRITE,READ_ONLY. --async-
Return immediately, without waiting for the operation in progress to complete.
The default is
True. Enabled by default, use--no-asyncto disable. --ignore-colocation- If set, ignore colocation checks.
--nfs-version=NFS_VERSION-
NFS version for the datastore.
NFS_VERSIONmust be one of:NFS_V3,NFS_V4.
- 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.
gcloud vmware private-clouds clusters mount-datastore
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-01-13 UTC.