# Managed Object - Datacenter

Property of
  DatacenterEventArgument, DatacenterMismatch, DatacenterMismatchArgument
Parameter to
  AllocateIpv4Address, AllocateIpv6Address, ChangeOwner, ConvertNamespacePathToUuidPath, CopyDatastoreFile_Task, CopyDatastoreFile_Task, CopyVirtualDisk_Task, CopyVirtualDisk_Task, CreateIpPool, CreateVirtualDisk_Task, DefragmentVirtualDisk_Task, DeleteDatastoreFile_Task, DeleteDirectory, DeleteVirtualDisk_Task, DestroyIpPool, EagerZeroVirtualDisk_Task, ExtendVirtualDisk_Task, FindAllByDnsName, FindAllByIp, FindAllByUuid, FindByDatastorePath, FindByDnsName, FindByIp, FindByUuid, ImportUnmanagedSnapshot, InflateVirtualDisk_Task, MakeDirectory, MoveDatastoreFile_Task, MoveDatastoreFile_Task, MoveVirtualDisk_Task, MoveVirtualDisk_Task, QueryIPAllocations, QueryIpPools, QueryVirtualDiskFragmentation, QueryVirtualDiskGeometry, QueryVirtualDiskUuid, ReleaseIpAllocation, ReleaseManagedSnapshot, SetVirtualDiskUuid, ShrinkVirtualDisk_Task, UpdateIpPool, ZeroFillVirtualDisk_Task
Returned by
  CreateDatacenter
Extends
  ManagedEntity
See also
  ClusterPowerOnVmResult, DatacenterBasicConnectInfo, DatacenterConfigInfo, DatacenterConfigSpec, Datastore, Folder, HostConnectInfo, HostConnectSpec, Network, OptionValue, VirtualMachine, VirtualMachineConfigOptionDescriptor
Since
  null

## Managed Object Description

Properties

Name | Type | Description
--- | --- | ---
configuration P | DatacenterConfigInfo | Since vSphere API 5.1
datastore* | ManagedObjectReference[] to a Datastore[] |
datastoreFolder P | ManagedObjectReference to a Folder | Since vSphere API 4.0
hostFolder P | ManagedObjectReference to a Folder |
network* | ManagedObjectReference[] to a Network[] |
networkFolder P | ManagedObjectReference to a Folder | Since vSphere API 4.0
vmFolder P | ManagedObjectReference to a Folder |
Properties inherited from ManagedEntity
alarmActionsEnabled, configIssue, configStatus, customValue, declaredAlarmState, disabledMethod, effectiveRole, name, overallStatus, parent, permission, recentTask, tag, triggeredAlarmState
Properties inherited from ExtensibleManagedObject
availableField, value

*May not be present P Required privilege: System.View

Methods

Methods defined in this Managed Object
BatchQueryConnectInfo, PowerOnMultiVM_Task, QueryConnectionInfo, QueryConnectionInfoViaSpec, queryDatacenterConfigOptionDescriptor, ReconfigureDatacenter_Task
Methods inherited from ManagedEntity
Destroy_Task, Reload, Rename_Task
Methods inherited from ExtensibleManagedObject
setCustomValue

# BatchQueryConnectInfo

Required Privileges
  System.View
Since
  vSphere API 6.7.1

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the Datacenter used to make the method call.
hostSpecs* P | HostConnectSpec[] | Since vSphere API 6.7.1

*Need not be set P Required privilege: hostSpecs

Return Value

Type | Description
--- | ---
DatacenterBasicConnectInfo[] |

Faults

Type | Description
--- | ---
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

# PowerOnMultiVM_Task

Required Privileges
  System.View
Since
  VI API 2.5

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the Datacenter used to make the method call.
vm P | ManagedObjectReference[] to a VirtualMachine[] | Since VI API 2.5
option* P | OptionValue[] | 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
--- | ---
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

# QueryConnectionInfo

Required Privileges
  System.View

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the Datacenter used to make the method call.
hostname P | xsd:string | Since null
port P | xsd:int | Since null
username P | xsd:string | Since null
password P | xsd:string | Since null
sslThumbprint* P | xsd:string | Since null

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

Return Value

Type | Description
--- | ---
HostConnectInfo |

Faults

Type | Description
--- | ---
HostConnectFault |
InvalidLogin |
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

# QueryConnectionInfoViaSpec

Required Privileges
  System.View
Since
  vSphere API 6.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the Datacenter used to make the method call.
spec P | HostConnectSpec | Since vSphere API 6.0

P Required privilege: spec

Return Value

Type | Description
--- | ---
HostConnectInfo |

Faults

Type | Description
--- | ---
HostConnectFault |
InvalidLogin |
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

# queryDatacenterConfigOptionDescriptor

Required Privileges
  System.View
Since
  vSphere API 5.1

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the Datacenter used to make the method call.

Return Value

Type | Description
--- | ---
VirtualMachineConfigOptionDescriptor[] |

Faults

Type | Description
--- | ---
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

# ReconfigureDatacenter_Task

Required Privileges
  Datacenter.Reconfigure
Since
  vSphere API 5.1

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the Datacenter used to make the method call.
spec P | DatacenterConfigSpec | Since vSphere API 5.1
modify P | xsd:boolean | Since vSphere API 5.1

P Required privilege - see tooltip for details

Return Value

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

Faults

Type | Description
--- | ---
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