gcloud vmware datastores create

NAME
gcloud vmware datastores create - create a datastore
SYNOPSIS
gcloud vmware datastores create(DATASTORE :--location=LOCATION)(--filestore=FILESTORE    |--netapp=NETAPP    |--third-party-nfs-file-share=THIRD_PARTY_NFS_FILE_SHARE--third-party-nfs-network=THIRD_PARTY_NFS_NETWORK--third-party-nfs-servers=SERVER,[SERVER,…])[--async][--description=DESCRIPTION][GCLOUD_WIDE_FLAG]
DESCRIPTION
Create a datastore. Datastore creation is considered finished when the datastoreis in ACTIVE state. Check the progress of a datastore usinggcloud vmware datastoreslist.
EXAMPLES
To create a datastore namedmy-datastore inus-west2-aconnected to filestore instanceprojects/my-project/locations/us-west2-a/instances/my-filestore-instance,run:
gcloudvmwaredatastorescreatemy-datastore--location=us-west2-a--project=my-project--filestore=projects/my-project/locations/us-west2-a/instances/my-filestore-instance

Or:

gcloudvmwaredatastorescreatemy-datastore--filestore=projects/my-project/locations/us-west2-a/instances/my-filestore-instance

Or:

gcloudvmwaredatastorescreatemy-datastore--netapp=projects/my-project/locations/us-west2-a/volumes/my-netapp-volume

Or:

gcloudvmwaredatastorescreatemy-datastore--third-party-nfs-network=my-network--third-party-nfs-file-share=my-fileshare--third-party-nfs-servers=10.0.0.1,10.0.0.2--location=us-west2-a--project=my-project

In the second example, the project and location are taken from gcloud propertiescore/project and compute/zone.

POSITIONAL ARGUMENTS
Datastore resource - datastore. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.

To set theproject attribute:

  • provide the argumentdatastore on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

DATASTORE
ID of the datastore or fully qualified identifier for the datastore.

To set thedatastore attribute:

  • provide the argumentdatastore on the command line.

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

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

To set thelocation attribute:

  • provide the argumentdatastore on the command line with a fullyspecified name;
  • provide the argument--location on the command line;
  • set the propertycompute/zone.
REQUIRED FLAGS
Exactly one of these must be specified:
--filestore=FILESTORE
Google Filestore instance to be used as datastore.
--netapp=NETAPP
Google NetApp volume to be used as datastore.
Or at least one of these can be specified:
--third-party-nfs-file-share=THIRD_PARTY_NFS_FILE_SHARE
Mount folder name of NFS.

This flag argument must be specified if any of the other arguments in this groupare specified.

--third-party-nfs-network=THIRD_PARTY_NFS_NETWORK
Network name of NFS's VPC.

This flag argument must be specified if any of the other arguments in this groupare specified.

--third-party-nfs-servers=SERVER,[SERVER,…]
Comma-separated list of server IP addresses of the NFS file service.

This flag argument must be specified if any of the other arguments in this groupare specified.

OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.The default isTrue. Enabled by default, use--no-async to disable.
--description=DESCRIPTION
Text describing the datastore.
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.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-21 UTC.