Host Storage System Detach Scsi Lun
Disallow I/O issue to the specified ScsiLun.
The ScsiLun is detached, i.e. administratively configured off until a subsequent attachScsiLun is performed, if the operation is successful. See AttachScsiLun.
detachScsiLun is part of the Unmount / Detach workflow used when a device will be permanently removed. See also UnmountVmfsVolume.
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 HostStorageSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
{
"lunUuid": "string"
}
The uuid of the ScsiLun device to detach.
No Content
NotFound: if the device could not be found.
InvalidState: if
- The device is already detached(turned 'off'). See operationalState.
ResourceInUse: if
- This device is backing a Vm with a Raw Device Mapped Virtual Disk.
- 1 or more programs have I/O outstanding on this device.
- 1 or more mounted vmfs volumes have extents residing on this device.
- The device is configured for use by the host e.g. diagnostic partition is configured on this device.
HostConfigFault: for all other configuration failures.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}