com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster package
Submodules
com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client module
The
com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client
module provides classes to manage the vCenter Server Inventory Cluster DRS
settings.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.AdditionalOptions(advanced_options=None, scalable_shares=None)
Bases:
VapiStruct
The
AdditionalOptions
class contains attributes describing the HA specific configurations of a cluster. It contains cluster-wide configurations for vSphereHA.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
advanced_options (
list
ofcom.vmware.appliance.vcenter.settings.v1.config.components.inventory.common_client.OptionValue
orNone
) – Drs configuration additional optionsscalable_shares (
ScaleSharesBehavior
orNone
) – Enable scalable shares for the resource pools on this cluster.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.AffinityRule(status=None, enabled=None, in_compliance=None, name=None, mandatory=None, user_created=None, vms=None)
Bases:
VapiStruct
The
AffinityRule
class defines a set of virtual machines that DRS will attempt to run on the same host.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
status (
Status
orNone
) – Flag to indicate whether or not the rule is currently satisfied.enabled (
bool
orNone
) – Flag to indicate whether or not the rule is enabled. Set this property when user configures the rule. The default value is false (disabled). If there is a rule conflict, the Server can override the setting to disable a rule. If None or empty, the value is skipped.in_compliance (
bool
orNone
) – Flag to indicate if the rule is in compliance. If None or empty, the value is skipped.name (
str
orNone
) – Name of the rule.mandatory (
bool
orNone
) – Flag to indicate whether compliance with this rule is mandatory or optional. The default value is false (optional). If None or empty, the value is skipped.user_created (
bool
orNone
) – Flag to indicate whether the rule is created by the user or the system. If None or empty, the value is skipped.vms (
list
ofstr
orNone
) – List of virtual machines.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.Automation(automation_level=None, migration_threshold=None, proactive_drs_enabled=None, virtual_machine_automation=None)
Bases:
VapiStruct
The
Automation
class contains attributes describing the HA specific configurations of a cluster. It contains cluster-wide configurations for vSphereHA.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
automation_level (
DrsBehaviorInfo
orNone
) – Specifies the cluster-wide default DRS behavior for virtual machines. You can override the default behavior for a virtual machine. If None or empty, the value is skipped.migration_threshold (
long
orNone
) – Threshold for generated recommendations. DRS generates only those recommendations that are above the specified vmotionRate. Ratings vary from 1 to 5. If None or empty, the value is skipped.proactive_drs_enabled (
bool
orNone
) – Flag indicating whether or not the ProactiveDRS is enabled. If None or empty, the value is skipped.virtual_machine_automation (
bool
orNone
) – Flag that dictates whether DRS Behavior overrides for individual VMs.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.DependencyRule(status=None, enabled=None, in_compliance=None, name=None, mandatory=None, user_created=None, vm_group=None, depends_on_vm_group=None)
Bases:
VapiStruct
The
DependencyRule
class defines VM-to-VM dependencies.A VM-VM Dependency rule identifies the following groups.
A virtual machine group -
DependencyRule.vm_group
A “depends on” virtual machine group -
DependencyRule.depends_on_vm_group
.
The VMs in
DependencyRule.vm_group
depends on the list of VMs specified inDependencyRule.depends_on_vm_group
.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
status (
Status
orNone
) – Flag to indicate whether or not the rule is currently satisfied.enabled (
bool
orNone
) – Flag to indicate whether or not the rule is enabled. Set this property when user configures the rule. The default value is false (disabled). If there is a rule conflict, the Server can override the setting to disable a rule. If None or empty, the value is skipped.in_compliance (
bool
orNone
) – Flag to indicate if the rule is in compliance. If None or empty, the value is skipped.name (
str
orNone
) – Name of the rule.mandatory (
bool
orNone
) – Flag to indicate whether compliance with this rule is mandatory or optional. The default value is false (optional). If None or empty, the value is skipped.user_created (
bool
orNone
) – Flag to indicate whether the rule is created by the user or the system. If None or empty, the value is skipped.vm_group (
str
orNone
) – Virtual group name. The virtual group may contain one or more virtual machines.depends_on_vm_group (
str
orNone
) – Depdendency virtual group name. The virtual group may contain one or more virtual machines.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.DpmBehaviorInfo(string)
Bases:
Enum
The
DpmBehaviorInfo
class defines the automation level for DPM service on a cluster.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theDpmBehaviorInfo
instance.
- AUTOMATED = DpmBehaviorInfo(string='AUTOMATED')
Specifies that VirtualCenter should generate recommendations for host power operations, and should execute the recommendations automatically.
- MANUAL = DpmBehaviorInfo(string='MANUAL')
Specifies that VirtualCenter should generate recommendations for host power operations, but should not execute the recommendations automatically.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.DrsBehaviorInfo(string)
Bases:
Enum
The
DrsBehaviorInfo
class defines the automation levels that can be set on a DRS cluster.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theDrsBehaviorInfo
instance.
- FULLY_AUTOMATED = DrsBehaviorInfo(string='FULLY_AUTOMATED')
Specifies that VirtualCenter should automate both the migration of virtual machines and their placement with a host at power on.
- MANUAL = DrsBehaviorInfo(string='MANUAL')
Specifies that VirtualCenter should generate recommendations for virtual machine migration and for placement with a host, but should not implement the recommendations automatically.
- PARTIALLY_AUTOMATED = DrsBehaviorInfo(string='PARTIALLY_AUTOMATED')
Specifies that VirtualCenter should generate recommendations for virtual machine migration and for placement with a host, but should automatically implement only the placement at power on.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.DrsConfig(enabled=None, automation=None, additional_options=None, power_management=None)
Bases:
VapiStruct
The
DrsConfig
class contains attributes describing the HA specific configurations of a cluster. It contains cluster-wide configurations for DAS.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
enabled (
bool
orNone
) – Flag indicating whether or not DRS service is enabled. If None or empty, the value is skipped.automation (
Automation
orNone
) – vSphere HA configuration for Automation Level, Migration Threshold Predictive DRS and VM Automation.additional_options (
AdditionalOptions
orNone
) – vSphere HA configuration for VM Distribution, CPU Over commit Scalable Shares.power_management (
PowerManagement
orNone
) – vSphere HA configuration for DPM, AutomationLevel, DPM Threshold.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.DrsVmOverrides(name=None, behavior=None)
Bases:
VapiStruct
The
DrsVmOverrides
class contains the fields describing DRS behavior override for individual virtual machines in the cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
name (
str
orNone
) – Reference to the virtual machine.behavior (
DrsBehaviorInfo
orNone
) – Specifies the particular DRS behavior for this virtual machine. If None or empty, the value is skipped.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.Group(vm_groups=None, host_groups=None)
Bases:
VapiStruct
The
Group
class describes the properties of virtual machine and host groups.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
vm_groups (
list
ofGroupDetails
orNone
) – List of VM Group details. If None or empty, the value is skipped.host_groups (
list
ofGroupDetails
orNone
) – List of HOST Group details. If None or empty, the value is skipped.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.GroupDetails(name=None, entities=None, user_created=None)
Bases:
VapiStruct
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
name (
str
orNone
) – Unique name of the group.entities (
list
ofstr
orNone
) – List of VMs or Hosts belonging to the group. If None or empty, the value is skipped.user_created (
bool
orNone
) – Flag to indicate whether the group is created by the user or the system. If None or empty, the value is skipped.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.PowerManagement(dpm_enabled=None, automation_level=None, dpm_threshold=None)
Bases:
VapiStruct
The
PowerManagement
class contains the fields describing DPM specific configurations of a cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
dpm_enabled (
bool
orNone
) – Flag indicating whether or not the service is enabled. This service can not be enabled, unless DRS is enabled as well. If None or empty, the value is skipped.automation_level (
DpmBehaviorInfo
orNone
) – Specifies the default VMware DPM behavior for hosts. This default behavior can be overridden on a per host. If None or empty, the value is skipped.dpm_threshold (
com.vmware.appliance.vcenter.settings.v1.config.components.inventory.common_client.OptionValue
orNone
) – DPM Advanced options. If None or empty, the value is skipped.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.ProactiveHAConfig(enabled=None, automation_level=None, remediation=None, providers=None)
Bases:
VapiStruct
The
ProactiveHAConfig
class defines the Configuration of the vSphere InfraUpdateHA service on a cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
enabled (
bool
orNone
) – Flag indicating whether or not the service is enabled. InfraUpdateHA will not be active, unless DRS is enabled as well. If None or empty, the value is skipped.automation_level (
ProactiveHAConfig.BehaviorType
orNone
) – Configured behavior. Values are of type InfraUpdateHaConfig.BehaviorType. If None or empty, the value is skipped.remediation (
ProactiveHAConfig.RemediationType
orNone
) – Configured remediation for moderately degraded hosts. Values are of type InfraUpdateHaConfig.RemediationType. If None or empty, the value is skipped.providers (
list
ofstr
orNone
) – The list of health update providers configured for this cluster. Providers are identified by their id. If the provider list is empty, InfraUpdateHA will not be active. If None or empty, the value is skipped.
- class BehaviorType(string)
Bases:
Enum
The
ProactiveHAConfig.BehaviorType
class defines the behavior for executing the proposed DRS recommendations.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theBehaviorType
instance.
- AUTOMATED = BehaviorType(string='AUTOMATED')
With this behavior configured, the proposed DRS recommendations are executed immediately.
- MANUAL = BehaviorType(string='MANUAL')
With this behavior configured, the proposed DRS recommendations require manual approval before they are executed.
- class RemediationType(string)
Bases:
Enum
The
ProactiveHAConfig.RemediationType
class defines the types of remediation behaviours that can be configured.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theRemediationType
instance.
- MAINTENANCE_MODE = RemediationType(string='MAINTENANCE_MODE')
With this behavior configured, a degraded host will be recommended to be placed in Maintenance Mode.
- QUARANTINE_MODE = RemediationType(string='QUARANTINE_MODE')
With this behavior configured, a degraded host will be recommended to be placed in Quarantine Mode.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.Rule(vm_affinity_rules=None, vm_anti_affinity_rules=None, dependency_rule=None, vm_host_rule=None)
Bases:
VapiStruct
The
Rule
class describes affinity and anti-affinity DRS rules that affect the placement of virtual machines in a cluster.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
vm_affinity_rules (
list
ofAffinityRule
orNone
) – Cluster-wide VM affinity rules.If this is set then AntiAffinityRule,DependencyRule
,VmHostRule
can not be set. If None or empty, the value is skipped.vm_anti_affinity_rules (
list
ofAffinityRule
orNone
) – Cluster-wide VM anti affinity rules.If this is set then AntiAffinityRule,DependencyRule
,VmHostRule
can not be set. If None or empty, the value is skipped.dependency_rule (
list
ofDependencyRule
orNone
) – Cluster-wide VM-to-VM dependency rules.If this is set thenAffinityRule
, AntiAffinityRule,VmHostRule
can not be set. If None or empty, the value is skipped.vm_host_rule (
list
ofVmHostRule
orNone
) – Cluster-wide VM-to-Host affinity rules.If this is set thenAffinityRule
, AntiAffinityRule,DependencyRule
can not be set. If None or empty, the value is skipped.
Bases:
Enum
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theScaleSharesBehavior
instance.
Do not scale shares
Scale both CPU and memory shares
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.Status(string)
Bases:
Enum
The Status enumeration defines a general “health” value for a managed entity.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theStatus
instance.
- GRAY = Status(string='GRAY')
The status is unknown.
- GREEN = Status(string='GREEN')
The entity is OK.
- RED = Status(string='RED')
The entity definitely has a problem.
- YELLOW = Status(string='YELLOW')
The entity might have a problem.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.StubFactory(stub_config)
Bases:
StubFactoryBase
Initialize StubFactoryBase
- Parameters:
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.drs_client.VmHostRule(status=None, enabled=None, in_compliance=None, name=None, mandatory=None, user_created=None, vm_group_name=None, affine_host_group_name=None, anti_affine_host_group_name=None)
Bases:
VapiStruct
The
VmHostRule
class defines virtual machines and host groups that determine virtual machine placement. The virtual machines and hosts referenced by a VM-Host rule must be in the same cluster.A VM-Host rule identifies the following groups.
A virtual machine group (vim.cluster.VmGroup).
Two host groups - an affine host group and an anti-affine host group (vim.cluster.HostGroup). At least one of the groups must contain one or more hosts.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
status (
Status
orNone
) – Flag to indicate whether or not the rule is currently satisfied.enabled (
bool
orNone
) – Flag to indicate whether or not the rule is enabled. Set this property when user configures the rule. The default value is false (disabled). If there is a rule conflict, the Server can override the setting to disable a rule. If None or empty, the value is skipped.in_compliance (
bool
orNone
) – Flag to indicate if the rule is in compliance. If None or empty, the value is skipped.name (
str
orNone
) – Name of the rule.mandatory (
bool
orNone
) – Flag to indicate whether compliance with this rule is mandatory or optional. The default value is false (optional). If None or empty, the value is skipped.user_created (
bool
orNone
) – Flag to indicate whether the rule is created by the user or the system. If None or empty, the value is skipped.vm_group_name (
str
orNone
) – Virtual group name. If None or empty, the value is skipped.affine_host_group_name (
str
orNone
) – Name of the affine host group. The affine host group identifies hosts on which VmHotRule#vmGroupName virtual machines can be powered-on. If None or empty, the value is skipped.anti_affine_host_group_name (
str
orNone
) – Name of the anti-affine host group. The anti-affine host group identifies hosts on which VmHotRule#vmGroupName virtual machines should not be powered-on. If None or empty, the value is skipped.
com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client module
The
com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client
module provides classes to manage the vCenter Server Inventory Cluster HA
settings.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.AdmissionControl(host_failures_cluster_tolerates=None, policy_type=None, host_fail_over_slot_policy=None, cluster_resource_percentage=None, dedicated_failover_hosts=None, performance_degradation_vm_tolerate=None)
Bases:
VapiStruct
The
FailuresAndResponses
class contains attributes describing the Failures and responses specific configurations of a cluster. It contains cluster-wide configurations for vsphere HA.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
host_failures_cluster_tolerates (
long
orNone
) – Number of host failures that should be tolerated, still guaranteeing sufficient resources to restart virtual machines on available hosts. If not set, we assume 1.policy_type (
str
orNone
) –host_fail_over_slot_policy (
FixedSizeSlotPolicy
orNone
) – This policy allows setting a fixed slot sizecluster_resource_percentage (
ClusterResourcePercentage
orNone
) –dedicated_failover_hosts (
list
ofstr
orNone
) – List of hosts dedicated for failover.performance_degradation_vm_tolerate (
long
orNone
) – Percentage of resource reduction that a cluster of VMs can tolerate in case of a failover.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.ClusterResourcePercentage(cpu=None, memory=None)
Bases:
VapiStruct
This class defines CPU, Memory resource percentages.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
cpu (
long
) – Reserved failover CPU capacitymemory (
long
) – Reserved failover Memory capacity
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.FailuresAndResponses(host_monitoring=None, default_vm_restart_priority=None, restart_priority_condition_timeout=None, additional_delay=None, host_isolation_response=None, datastore_with_pdl_failure_response=None, apd_failure_response=None, response_recovery=None, response_delay=None, vm_monitoring=None, vm_tools_monitoring_settings=None)
Bases:
VapiStruct
The
FailuresAndResponses
class contains attributes describing the Failures and responses specific configurations of a cluster. It contains cluster-wide configurations for vsphere HA.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
host_monitoring (
FailuresAndResponses.ServiceState
orNone
) –default_vm_restart_priority (
FailuresAndResponses.RestartPriority
orNone
) –Restart priority for a virtual machine.
If not specified at either the cluster level or the virtual machine level, this will default to
medium
. If None or empty, the value is skipped.restart_priority_condition_timeout (
long
orNone
) – This setting is used to specify a maximum time the lower priority VMs should wait for the higher priority VMs to be ready. If the higher priority Vms are not ready by this time, then the lower priority VMs are restarted irrespective of the VM ready state. This timeout can be used to prevent the failover of lower priority VMs to be stuck infinitely. Timeout specified in seconds. To use cluster setting for a VM override, set to -1 in per-VM. setting. If None or empty, the value is skipped.additional_delay (
long
orNone
) – After condition has been met, a mandatory delay before starting the next VM restart priority.host_isolation_response (
FailuresAndResponses.IsolationResponse
orNone
) –Indicates whether or not the virtual machine should be powered off if a host determines that it is isolated from the rest of the compute resource.
If not specified at either the cluster level or the virtual machine level, this will default to
powerOff
. If None or empty, the value is skipped.datastore_with_pdl_failure_response (
FailuresAndResponses.StorageVmReaction
) – VM storage protection setting for storage failures categorized as Permenant Device Loss (PDL). PDL indicates storage device failure or LUN removal. In case of PDL, the failed datastore or device is unlikely to recover. The details of PDL areapd_failure_response (
FailuresAndResponses.StorageVmReaction
) – VM storage protection setting for storage failures categorized as All Paths Down (APD). APD is a condition where a storage has become inaccessible for unknown reasons. It only indicates loss of connectivity and does not indicate storage device failure or LUN removal (Permanent Device Loss or PDL)response_recovery (
FailuresAndResponses.VmReactionOnAPDCleared
orNone
) –Action taken by VM Component Protection service for a powered on VM when APD condition clears after APD timeout.
This property is meaningful only when vSphere HA is turned on. Valid values are specified by
FailuresAndResponses.VmReactionOnAPDCleared
. The default value is VmReactionOnAPDCleared#none for cluster setting and VmReactionOnAPDCleared#useClusterDefault for per-VM setting.response_delay (
long
orNone
) – The time interval after an APD timeout has been declared and before VM Component Protection service will terminate the VM. The default value is 180 seconds if not specified. To use cluster setting for a VM override, set to -1 in per-VM setting.vm_monitoring (
FailuresAndResponses.VmMonitoringState
orNone
) –vm_tools_monitoring_settings (
VmToolsMonitoringSettings
orNone
) –
- class IsolationResponse(string)
Bases:
Enum
The enum defines values that indicate whether or not the virtual machine should be powered off if a host determines that it is isolated from the rest of the cluster.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theIsolationResponse
instance.
- CLUSTER_ISOLATION_RESPONSE = IsolationResponse(string='CLUSTER_ISOLATION_RESPONSE')
Use the default isolation response defined for the cluster that contains this virtual machine.
- NONE = IsolationResponse(string='NONE')
Do not power off the virtual machine in the event of a host network isolation.
- POWER_OFF = IsolationResponse(string='POWER_OFF')
Power off the virtual machine in the event of a host network isolation.
- SHUTDOWN = IsolationResponse(string='SHUTDOWN')
Shut down the virtual machine guest operating system in the event of a host network isolation. If the guest operating system fails to shutdown within five minutes, HA will initiate a forced power off.
When you use the shutdown isolation response, failover can take longer (compared to the response) because the virtual machine cannot fail over until it is shutdown.
- class RestartPriority(string)
Bases:
Enum
The enum defines virtual machine restart priority values to resolve resource contention. The priority determines the preference that HA gives to a virtual machine if sufficient capacity is not available to power on all failed virtual machines. For example, high priority virtual machines on a host get preference over low priority virtual machines.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theRestartPriority
instance.
- CLUSTER_RESTART_PRIORITY = RestartPriority(string='CLUSTER_RESTART_PRIORITY')
Virtual machines with this priority use the default restart priority defined for the cluster that contains this virtual machine.
- DISABLED = RestartPriority(string='DISABLED')
vSphere HA is disabled for this virtual machine.
- HIGH = RestartPriority(string='HIGH')
Virtual machines with this priority have a higher chance of powering on after a failure if there is insufficient capacity on hosts to meet all virtual machine needs.
- HIGHEST = RestartPriority(string='HIGHEST')
Virtual machines with this priority have the highest chance of powering on after a failure if there is insufficient capacity on hosts to meet all virtual machine needs.
- LOW = RestartPriority(string='LOW')
Virtual machines with this priority have a lower chance of powering on after a failure if there is insufficient capacity on hosts to meet all virtual machine needs.
- LOWEST = RestartPriority(string='LOWEST')
Virtual machines with this priority have the lowest chance of powering on after a failure if there is insufficient capacity on hosts to meet all virtual machine needs.
- MEDIUM = RestartPriority(string='MEDIUM')
Virtual machines with this priority have an intermediate chance of powering on after a failure if there is insufficient capacity on hosts to meet all virtual machine needs.
- class ServiceState(string)
Bases:
Enum
Possible states of an HA service. All services support the disabled and enabled states.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theServiceState
instance.
- DISABLED = ServiceState(string='DISABLED')
HA service is disabled.
- ENABLED = ServiceState(string='ENABLED')
HA service is enabled.
- class StorageVmReaction(string)
Bases:
Enum
The VM policy settings that determine the response to storage failures.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theStorageVmReaction
instance.
- CLUSTER_DEFAULT = StorageVmReaction(string='CLUSTER_DEFAULT')
VM will use the cluster default setting. This option is only meaningful for per-VM settings.
- DISABLED = StorageVmReaction(string='DISABLED')
VM Component Protection service will not monitor or react to the component failure. This setting does not affect other vSphere HA services such as Host Monitoring or VM Health Monitoring.
- RESTART_AGGRESSIVE = StorageVmReaction(string='RESTART_AGGRESSIVE')
VM Component Protection service protects VMs aggressively. With this setting, the service will terminate an affected VM even if it can’t determine that capacity exists to restart the VM.
- RESTART_CONSERVATIVE = StorageVmReaction(string='RESTART_CONSERVATIVE')
VM Component Protection service protects VMs conservatively. With this setting, when the service can’t determine that capacity is available to restart a VM, it will favor keeping the VM running.
- WARNING = StorageVmReaction(string='WARNING')
VM Component Protection service will monitor component failures but will not restart an affected VM. Rather it will notify users about the component failures. This setting does not affect other vSphere HA services such as Host Monitoring or VM Health Monitoring.
- class VmMonitoringState(string)
Bases:
Enum
The enum defines values that indicate the state of Virtual Machine Health Monitoring. Health Monitoring uses the vmTools (guest) and application agent heartbeat modules. You can configure HA to respond to heartbeat failures of either one or both modules. You can also disable the HA response to heartbeat failures.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theVmMonitoringState
instance.
- VM_AND_APP_MONITORING = VmMonitoringState(string='VM_AND_APP_MONITORING')
HA response to both guest and application heartbeat failure is enabled.
- VM_MONITORING_DISABLED = VmMonitoringState(string='VM_MONITORING_DISABLED')
Virtual machine health monitoring is disabled. In this state, HA response to guest and application heartbeat failures are disabled.
- VM_MONITORING_ONLY = VmMonitoringState(string='VM_MONITORING_ONLY')
HA response to guest heartbeat failure is enabled.
- class VmReactionOnAPDCleared(string)
Bases:
Enum
If an APD condition clears after an APD timeout condition has been declared and before VM Component Protection service terminated the VM, the guestOS and application may no longer be operational.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theVmReactionOnAPDCleared
instance.
- NONE = VmReactionOnAPDCleared(string='NONE')
VM Component Protection service will not react after APD condition is cleared.
- RESET = VmReactionOnAPDCleared(string='RESET')
VM Component Protection service will reset the VM after APD condition is cleared. Note this only applies if the subject VM is still powered on.
- USE_CLUSTER_DEFAULT = VmReactionOnAPDCleared(string='USE_CLUSTER_DEFAULT')
VM will use the cluster default setting. This option is only meaningful for per-VM settings.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.FixedSizeSlotPolicy(cpu=None, memory=None)
Bases:
VapiStruct
This policy allows setting a fixed slot size
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
cpu (
long
) – The cpu component of the slot size (in MHz)memory (
long
) – The memory component of the slot size (in megabytes)
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.HaVmOverrides(name=None, vm_restart_priority=None, vm_additional_delay=None, vm_restart_priority_timeout=None, vm_isolation_response=None, vm_datastore_with_pdl_failure_response=None, vm_apd_failure_response=None, vm_apd_failover_delay=None, vm_apd_response_recovery=None, vm_monitoring=None)
Bases:
VapiStruct
The VmOverrides data object contains the HA configuration settings for vm as a override from cluster. All fields are optional.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
name (
str
) – Reference to the virtual machine.vm_restart_priority (
FailuresAndResponses.RestartPriority
orNone
) – Restart priority for a virtual machine. If None or empty, the value is skipped.vm_additional_delay (
long
orNone
) – After condition has been met, a mandatory delay before starting the next VM restart priority.vm_restart_priority_timeout (
long
orNone
) – This setting is used to specify a maximum time the lower priority VMs should wait for the higher priority VMs to be ready. If the higher priority Vms are not ready by this time, then the lower priority VMs are restarted irrespective of the VM ready state. This timeout can be used to prevent the failover of lower priority VMs to be stuck infinitely. If None or empty, the value is skipped.vm_isolation_response (
FailuresAndResponses.IsolationResponse
orNone
) –Indicates whether or not the virtual machine should be powered off if a host determines that it is isolated from the rest of the compute resource.
If not specified at either the cluster level or the virtual machine level, this will default to
powerOff
. If None or empty, the value is skipped.vm_datastore_with_pdl_failure_response (
FailuresAndResponses.StorageVmReaction
) – VM storage protection setting for storage failures categorized as Permenant Device Loss (PDL). PDL indicates storage device failure or LUN removal. In case of PDL, the failed datastore or device is unlikely to recover. The details of PDL arevm_apd_failure_response (
FailuresAndResponses.StorageVmReaction
) – VM storage protection setting for storage failures categorized as All Paths Down (APD). APD is a condition where a storage has become inaccessible for unknown reasons. It only indicates loss of connectivity and does not indicate storage device failure or LUN removal (Permanent Device Loss or PDL)vm_apd_failover_delay (
long
orNone
) – The time interval after an APD timeout has been declared and before VM Component Protection service will terminate the VM. The default value is 180 seconds if not specified. To use cluster setting for a VM override, set to -1 in per-VM setting.vm_apd_response_recovery (
FailuresAndResponses.VmReactionOnAPDCleared
orNone
) – Action taken by VM Component Protection service for a powered on VM when APD condition clears after APD timeout. This property is meaningful only when vSphere HA is turned on. Valid values arevm_monitoring (
FailuresAndResponses.VmMonitoringState
orNone
) – Virtual machine health monitoring is disabled. In this state, HA response to guest and application heartbeat failures are disabled.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.HeartBeatDataStores(heartbeat_datastore_policy=None, datastores=None)
Bases:
VapiStruct
The
HeartBeatDataStores
class contains attributes describing the HeartBeatDataStores It contains cluster-wide configurations for vsphere HA.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
heartbeat_datastore_policy (
HeartBeatDataStores.HBDatastoreCandidate
) –datastores (
list
ofstr
orNone
) –
- class HBDatastoreCandidate(string)
Bases:
Enum
The policy to determine the candidates from which vCenter Server can choose heartbeat datastores.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters:
string (
str
) – String value for theHBDatastoreCandidate
instance.
- ALL_FEASIBLE_DS = HBDatastoreCandidate(string='ALL_FEASIBLE_DS')
vCenter Server chooses heartbeat datastores from all the feasible ones, i.e., the datastores that are accessible to more than one host in the cluster. The choice will be made without giving preference to those specified by the user (see #heartbeatDatastore).
- ALL_FEASIBLE_DS_WITH_USER_PREFERENCE = HBDatastoreCandidate(string='ALL_FEASIBLE_DS_WITH_USER_PREFERENCE')
vCenter Server chooses heartbeat datastores from all the feasible ones while giving preference to those specified by the user (see #heartbeatDatastore). More specifically, the datastores not included in #heartbeatDatastore will be chosen if and only if the specified ones are not sufficient.
- USER_SELECTED_DS = HBDatastoreCandidate(string='USER_SELECTED_DS')
vCenter Server chooses heartbeat datastores from the set specified by the user (see #heartbeatDatastore). More specifically, datastores not included in the set will not be chosen. Note that if #heartbeatDatastore is empty, datastore heartbeating will be disabled for HA.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.StubFactory(stub_config)
Bases:
StubFactoryBase
Initialize StubFactoryBase
- Parameters:
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.VmToolsMonitoringSettings(enabled=None, cluster_settings=None, failure_interval=None, min_up_time=None, max_failures=None, max_failure_window=None)
Bases:
VapiStruct
The vim.cluster.VmToolsMonitoringSettings data object contains virtual machine monitoring settings that are used by the Virtual Machine Health Monitoring Service. The Service checks the VMware Tools heartbeat of a virtual machine. If heartbeats have not been received within a specified time interval, the Service declares the virtual machine as failed and resets the virtual machine. All fields are optional. In case of a reconfiguration, fields left unset are not changed.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
enabled (
bool
orNone
) –Flag indicating whether or not the Virtual Machine Health Monitoring service is enabled.
The Server does not use this property.
cluster_settings (
bool
orNone
) –Flag indicating whether to use the cluster settings or the per VM settings.
The default value is true.
failure_interval (
long
orNone
) –If no heartbeat has been received for at least the specified number of seconds, the virtual machine is declared as failed.
The default value is 30.
min_up_time (
long
orNone
) –The number of seconds for the virtual machine’s heartbeats to stabilize after the virtual machine has been powered on. This time should include the guest operating system boot-up time. The virtual machine monitoring will begin only after this period.
The default value is 120.
max_failures (
long
orNone
) –Maximum number of failures and automated resets allowed during the time that
VmToolsMonitoringSettings.max_failure_window
specifies. IfVmToolsMonitoringSettings.max_failure_window
is -1 (no window), this represents the absolute number of failures after which automated response is stopped.If a virtual machine exceeds this threshold, in-depth problem analysis is usually needed.
The default value is 3.
max_failure_window (
long
orNone
) –The number of seconds for the window during which up to
VmToolsMonitoringSettings.max_failures
resets can occur before automated responses stop.If set to -1, no failure window is specified.
The default value is -1.
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.ha_client.VsphereHA(enabled=None, failures_and_responses=None, admission_control=None, heartbeat_datastores=None, advanced_options=None)
Bases:
VapiStruct
The
DasInfo
class contains attributes describing the HA specific configurations of a cluster. It contains cluster-wide configurations for DAS.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
enabled (
bool
) – HA Enabled or Disabled Flag to indicate whether or not vSphere HA feature is enabled.failures_and_responses (
FailuresAndResponses
orNone
) – Configuration settings for HA Failures and responses. If None or empty, the value is skipped.admission_control (
AdmissionControl
orNone
) – Configuration settings for HA admission control. If None or empty, the value is skipped.heartbeat_datastores (
HeartBeatDataStores
orNone
) – Configuration settings for heart beat data store policy. If None or empty, the value is skipped.advanced_options (
list
ofcom.vmware.appliance.vcenter.settings.v1.config.components.inventory.common_client.OptionValue
orNone
) – Advanced settings. If None or empty, the value is skipped.
com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.vsan_client module
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.vsan_client.HostDefaultInfo(checksum_enabled=None)
Bases:
VapiStruct
Default VSAN service configuration to be used for hosts admitted to the cluster.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
checksum_enabled (
bool
orNone
) – Whether the VSAN service is configured to enforce checksum protection. If omitted while enabling the VSAN service, this value will default tofalse
. Change this value tofalse
shall not affect any existing disk status. Changing this value totrue
shall do disk enforcement check that all VSAN disks are checksum enabled.````
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.vsan_client.StubFactory(stub_config)
Bases:
StubFactoryBase
Initialize StubFactoryBase
- Parameters:
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
- class com.vmware.appliance.vcenter.settings.v1.config.components.inventory.cluster.vsan_client.VsanConfigInfo(enabled=None, default_config=None)
Bases:
VapiStruct
The
VsanConfigInfo
data object contains configuration data for the VSAN service in a cluster. This data object is used both for specifying cluster-wide settings when updating the VSAN service, and as an output datatype when retrieving current cluster-wide VSAN service settings.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters:
enabled (
bool
orNone
) – Whether the VSAN service is enabled for the cluster.default_config (
HostDefaultInfo
orNone
) – Default VSAN settings to use for hosts admitted to the cluster when the VSAN service is enabled. If omitted, values will default as though the fields in theHostDefaultInfo
have been omitted.