gcloud vmware private-clouds clusters mount-datastore

INFORMATION
gcloud vmware private-clouds clusters mount-datastore is not available in universe domain universe.
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-datastore to cluster my-cluster in private cloud my-private-cloud in zone us-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-subnet
Or:
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-subnet

To mount a datastore my-datastore to cluster my-cluster in private cloud my-private-cloud in zone us-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.json
Where `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 project attribute:

  • provide the argument cluster on the command line with a fully specified name;
  • provide the argument --project on 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 cluster attribute:

  • provide the argument cluster on the command line.

This positional argument must be specified if any of the other arguments in this group are specified.

--location=LOCATION
Location of the private cloud or cluster.

To set the location attribute:

  • provide the argument cluster on the command line with a fully specified name;
  • provide the argument --location on the command line;
  • set the property compute/zone.
--private-cloud=PRIVATE_CLOUD
VMware Engine private cloud.

To set the private-cloud attribute:

  • provide the argument cluster on the command line with a fully specified name;
  • provide the argument --private-cloud on the command line.
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_MODE must 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-async to disable.
--ignore-colocation
If set, ignore colocation checks.
--nfs-version=NFS_VERSION
NFS version for the datastore. NFS_VERSION must 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 help for details.