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 9.1.0.0 APIs.
Show optional properties
{
"path": "string"
}
{
"path": "string",
"name": "string",
"modifyControlFlags": false,
"id": {
"_typeName": "string",
"id": "string"
}
}
URL or datastore path to the running point of 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 ID of the newly registered virtual storage object. For each new request, the ID should be a unique ID complying to RFC4122V4 (generated randomly). For retry requests with the same ID, all the other input parameters are expected to remain same. If not specified, a system generated ID will be assigned.
Since: vSphere API Release 9.1.0.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"
}
],
"virtualDiskFormat": "string",
"linkedCloneBasePath": "string",
"linkedCloneParentId": {
"_typeName": "string",
"id": "string"
}
}
}
Virtual storage object configuration
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": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"path":"string"}' https://{api_host}/sdk/vim25/{release}/HostVStorageObjectManager/{moId}/HostRegisterDisk