Host V Storage Object Manager Host Register Disk
Promote a virtual disk to a First Class Disk.
Requires Datastore.FileManagement privilege on the datastore where the virtual disk resides.
Required privileges: System.View
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 HostVStorageObjectManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"path": "string"
}
{
"path": "string",
"name": "string",
"modifyControlFlags": false
}
URL or datastore path to the virtual disk.
The descriptive name of the disk object. If unset the name will be automatically determined from the path. @see vim.vslm.BaseConfigInfo#name
Optional Parameter describing if the control Flags should be changed to default values
Since: vSphere API Release 8.0.2.0
The registered virtual storage object for the disk.
{
"_typeName": "string",
"config": {
"_typeName": "string",
"id": {
"_typeName": "string",
"id": "string"
},
"name": "string",
"createTime": "string",
"keepAfterDeleteVm": false,
"relocationDisabled": false,
"nativeSnapshotSupported": false,
"changedBlockTrackingEnabled": false,
"backing": {
"_typeName": "string",
"datastore": {
"_typeName": "string",
"type": "string",
"value": "string"
}
},
"metadata": [
{
"_typeName": "string",
"key": "string",
"value": "string"
}
],
"vclock": {
"_typeName": "string",
"vClockTime": 0
},
"iofilter": [
"string"
],
"descriptorVersion": 0,
"capacityInMB": 0,
"consumptionType": [
"string"
],
"consumerId": [
{
"_typeName": "string",
"id": "string"
}
]
}
}
FileFault: If an error occurs while registering the virtual disk.
InvalidDatastore: If datastore cannot be found or the operation cannot be performed on the datastore.
AlreadyExists: If disk is already registered as a virtual storage object.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}