gcloud vmware datastores create Stay organized with collections Save and categorize content based on your preferences.
- 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 using
gcloud vmware datastoreslist. - EXAMPLES
- To create a datastore named
my-datastoreinus-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-instanceOr:
gcloudvmwaredatastorescreatemy-datastore--filestore=projects/my-project/locations/us-west2-a/instances/my-filestore-instanceOr:
gcloudvmwaredatastorescreatemy-datastore--netapp=projects/my-project/locations/us-west2-a/volumes/my-netapp-volumeOr:
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-projectIn 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 the
projectattribute:- provide the argument
datastoreon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
DATASTORE- ID of the datastore or fully qualified identifier for the datastore.
To set the
datastoreattribute:- provide the argument
datastoreon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- Location of the private cloud or cluster.
To set the
locationattribute:- provide the argument
datastoreon the command line with a fullyspecified name; - provide the argument
--locationon the command line; - set the property
compute/zone.
- provide the argument
- provide the argument
- 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.
- 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.
- Exactly one of these must be specified:
- OPTIONAL FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.The default is
True. Enabled by default, use--no-asyncto 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 helpfor 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.