# Managed Object - FileManager

Property of
  ServiceContent
See also
  Datacenter
Since
  VI API 2.5

## Managed Object Description

Properties

Name | Type | Description
--- | --- | ---
None

Methods

Methods defined in this Managed Object
ChangeOwner, CopyDatastoreFile_Task, DeleteDatastoreFile_Task, MakeDirectory, MoveDatastoreFile_Task

# ChangeOwner

Required Privileges
  None
Since
  vSphere API 4.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the FileManager used to make the method call.
name P | xsd:string | Since vSphere API 4.0
datacenter* P | ManagedObjectReference to a Datacenter | Since vSphere API 4.0
owner P | xsd:string | Since vSphere API 4.0

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
FileFault |
InvalidDatastore |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.
UserNotFound |

Events

Type
None

# CopyDatastoreFile_Task

Required Privileges
  None

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the FileManager used to make the method call.
sourceName P | xsd:string | Since VI API 2.5
sourceDatacenter* P | ManagedObjectReference to a Datacenter | Since VI API 2.5
destinationName P | xsd:string | Since VI API 2.5
destinationDatacenter* P | ManagedObjectReference to a Datacenter | Since VI API 2.5
force* P | xsd:boolean | Since VI API 2.5

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ManagedObjectReference to a ConverterTask |

Faults

Type | Description
--- | ---
FileFault |
InvalidDatastore |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# DeleteDatastoreFile_Task

Required Privileges
  None

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the FileManager used to make the method call.
name P | xsd:string | Since VI API 2.5
datacenter* P | ManagedObjectReference to a Datacenter | Since VI API 2.5

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ManagedObjectReference to a ConverterTask |

Faults

Type | Description
--- | ---
FileFault |
InvalidDatastore |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# MakeDirectory

Required Privileges
  None

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the FileManager used to make the method call.
name P | xsd:string | Since VI API 2.5
datacenter* P | ManagedObjectReference to a Datacenter | Since VI API 2.5
createParentDirectories* P | xsd:boolean | Since VI API 2.5

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
FileFault |
InvalidDatastore |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# MoveDatastoreFile_Task

Required Privileges
  None

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the FileManager used to make the method call.
sourceName P | xsd:string | Since VI API 2.5
sourceDatacenter* P | ManagedObjectReference to a Datacenter | Since VI API 2.5
destinationName P | xsd:string | Since VI API 2.5
destinationDatacenter* P | ManagedObjectReference to a Datacenter | Since VI API 2.5
force* P | xsd:boolean | Since VI API 2.5

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ManagedObjectReference to a ConverterTask |

Faults

Type | Description
--- | ---
FileFault |
InvalidDatastore |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None