Host Datastore System Query Vmfs Datastore Create Options
Queries options for creating a new VMFS datastore for a disk.
See also devicePath.
Required privileges: Host.Config.Storage
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case HostDatastoreSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"devicePath": "string"
}
{
"devicePath": "string",
"vmfsMajorVersion": 0
}
The devicePath of the disk on which datastore creation options are generated.
major version of VMFS to be used for formatting the datastore. If this parameter is not specified, then the highest supported VMFS major version for the host is used.
An array of VMFS datastore provisioning options that can be applied on a disk.
[
{
"_typeName": "string",
"info": {
"_typeName": "string",
"layout": {
"_typeName": "string",
"total": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"partition": [
{
"_typeName": "string",
"partition": 0,
"type": "string",
"start": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"end": {
"_typeName": "string",
"blockSize": 0,
"block": 0
}
}
]
},
"partitionFormatChange": false
},
"spec": {
"_typeName": "string",
"diskUuid": "string"
}
}
]
NotSupported: if the host is not an ESX Server.
NotFound: if the device is not found.
HostConfigFault: if unable to get the current partition information for the device.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}