Create datastore

post/virtualization/v1beta1/datastores

Create datastore

Securitybearer
Request
Request Body schema: application/json
required
datastoreType
required
string

Supported datastore types are VMFS or vVOL

Enum: "VMFS" "VVOL"
name
required
string

Name of datastore to be created

provisioningPolicyId
string <uuid>

Unique identifier of a provisioning policy.

sizeInBytes
required
integer <int64>

Size of the datastore in bytes

storageSystemId
required
string <uuid>

Storage System ID

targetHypervisorClusterId
required
string <uuid>

Target Hypervisor Cluster ID

Responses
202

Accepted

400

Bad request

401

Unauthorized request

403

Forbidden

500

Internal / unexpected error

Request samples
application/json
{
  • "datastoreType": "VMFS",
  • "name": "string",
  • "provisioningPolicyId": "c226de0b-daf0-435d-a1d4-8dbc697e0066",
  • "sizeInBytes": 0,
  • "storageSystemId": "82fa5c8f-b188-4241-b1a7-66c08561dbc1",
  • "targetHypervisorClusterId": "4019c72a-faa8-43fa-89cb-2dcaf55f0d8a"
}
Response samples
application/json
{ }