# Fault - ResourceInUse(vim.fault.ResourceInUse)

Thrown by
  AddVirtualSwitch, DestroyDatastore, DestroyNetwork, DestroyVffs, DetachScsiLun, DvsReconfigureVmVnicNetworkResourcePool_Task, ExtendVffs, FormatVffs, HostConfigureVFlashResource, HostConfigVFlashCache, HostRemoveVFlashResource, MergeDvs_Task, MountVffsVolume, MountVmfsVolume, ReconfigureDVPort_Task, ReconfigureDvs_Task, RemoveDatastore, RemoveKey, RemoveNetworkResourcePool, RemovePortGroup, RemoveServiceConsoleVirtualNic, RemoveVirtualSwitch, UnmountVffsVolume, UnmountVmfsVolume, UpdateNetworkConfig, UpdateServiceConsoleVirtualNic, UpdateVirtualMachineFiles_Task, UpdateVirtualSwitch
Extended by
  FilterInUse, QuiesceDatastoreIOForHAFailed
Extends
  VimFault

## Fault Description

A ResourceInUse fault indicating that some error has occurred because a resource was in use. Information about the resource that is in use may be supplied.

Properties

Name | Type | Description
--- | --- | ---
name* | xsd:string | Name of the instance of the resource that is in use.
type* | xsd:string | Type of resource that is in use.
Properties inherited from VimFault
None
Properties inherited from MethodFault
faultCause, faultMessage

*May not be present
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="ResourceInUse"> <complexContent> <extension base="vsan:VimFault"> <sequence> <element name="type" type="xsd:string" minOccurs="0"/> <element name="name" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>