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 PDatacenterConfigInfo

Since vSphere API 5.1
datastore*ManagedObjectReference[]
to a Datastore[]


datastoreFolder PManagedObjectReference
to a Folder

Since vSphere API 4.0
hostFolder PManagedObjectReference
to a Folder


network*ManagedObjectReference[]
to a Network[]


networkFolder PManagedObjectReference
to a Folder

Since vSphere API 4.0
vmFolder PManagedObjectReference
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 presentP 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

NameTypeDescription
_thisManagedObjectReference A reference to the Datacenter used to make the method call.
hostSpecs* PHostConnectSpec[]

Since vSphere API 6.7.1
*Need not be set P Required privilege: hostSpecs

Return Value

Type Description
DatacenterBasicConnectInfo[]

Faults

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

NameTypeDescription
_thisManagedObjectReference A reference to the Datacenter used to make the method call.
vm PManagedObjectReference[]
to a VirtualMachine[]

Since VI API 2.5
option* POptionValue[]

Since VI API 2.5
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a ConverterTask

Faults

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

NameTypeDescription
_thisManagedObjectReference A reference to the Datacenter used to make the method call.
hostname Pxsd:string

Since null
port Pxsd:int

Since null
username Pxsd:string

Since null
password Pxsd:string

Since null
sslThumbprint* Pxsd:string

Since null
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
HostConnectInfo

Faults

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

NameTypeDescription
_thisManagedObjectReference A reference to the Datacenter used to make the method call.
spec PHostConnectSpec

Since vSphere API 6.0
P Required privilege: spec

Return Value

Type Description
HostConnectInfo

Faults

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

NameTypeDescription
_thisManagedObjectReference A reference to the Datacenter used to make the method call.

Return Value

Type Description
VirtualMachineConfigOptionDescriptor[]

Faults

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

NameTypeDescription
_thisManagedObjectReference A reference to the Datacenter used to make the method call.
spec PDatacenterConfigSpec

Since vSphere API 5.1
modify Pxsd:boolean

Since vSphere API 5.1
PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a ConverterTask

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None