---
title: "POST /v1/{+parent}/datastores"
method: POST
path: "/v1/{+parent}/datastores"
tags: ["projects"]
---

# POST /v1/{+parent}/datastores

`POST /v1/{+parent}/datastores`

Creates a new `Datastore` resource in a given project and location.

## Path parameters

- `parent` string, required

## Query parameters

- `datastoreId` string
- `requestId` string

## Request body

- Datastore — Represents a datastore resource.
  - `clusters` string[] — Output only. Clusters to which the datastore is attached.
  - `createTime` string, google-datetime — Output only. Creation time of this resource.
  - `etag` string — Optional. Checksum that may be sent on update and delete requests to ensure that the user-provided value is up to date before the server processes a request. The server computes checksums based on the value of other fields in the request.
  - `uid` string — Output only. System-generated unique identifier for the resource.
  - `description` string — Optional. User-provided description for this datastore
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'UPDATING' | 'DELETING' — Output only. The state of the Datastore.
  - `updateTime` string, google-datetime — Output only. Last update time of this resource.
  - `name` string — Output only. Identifier. The resource name of this datastore. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1/datastores/datastore`
  - `nfsDatastore` NfsDatastore — The NFS datastore configuration.
    - `googleFileService` GoogleFileService — Google service file service configuration
      - `netappVolume` string — Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
      - `filestoreInstance` string — Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
    - `thirdPartyFileService` ThirdPartyFileService — Third party file service configuration
      - `servers` string[] — Required. Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
      - `fileShare` string — Required. Required Mount Folder name
      - `network` string — Required. Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
    - `googleVmwareFileService` GoogleVmwareFileService — Volume message captures user inputs for creation of file services managed by GCVE

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/vmwareengine.md) · [All operations](https://skmtc.dev/google/apis/vmwareengine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/vmwareengine/revisions/23816cc0f25a/schema)
