LaunchInstanceAvailabilityConfigDetails

class oci.core.models.LaunchInstanceAvailabilityConfigDetails(**kwargs)

Bases: object

Options for VM migration during infrastructure maintenance events and for defining the availability of a VM instance after a maintenance event that impacts the underlying hardware.

Attributes

RECOVERY_ACTION_RESTORE_INSTANCE A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails.
RECOVERY_ACTION_STOP_INSTANCE A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails.
is_live_migration_preferred Gets the is_live_migration_preferred of this LaunchInstanceAvailabilityConfigDetails.
recovery_action Gets the recovery_action of this LaunchInstanceAvailabilityConfigDetails.

Methods

__init__(**kwargs) Initializes a new LaunchInstanceAvailabilityConfigDetails object with values from keyword arguments.
RECOVERY_ACTION_RESTORE_INSTANCE = 'RESTORE_INSTANCE'

A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails. This constant has a value of “RESTORE_INSTANCE”

RECOVERY_ACTION_STOP_INSTANCE = 'STOP_INSTANCE'

A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails. This constant has a value of “STOP_INSTANCE”

__init__(**kwargs)

Initializes a new LaunchInstanceAvailabilityConfigDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • is_live_migration_preferred (bool) – The value to assign to the is_live_migration_preferred property of this LaunchInstanceAvailabilityConfigDetails.
  • recovery_action (str) – The value to assign to the recovery_action property of this LaunchInstanceAvailabilityConfigDetails. Allowed values for this property are: “RESTORE_INSTANCE”, “STOP_INSTANCE”
is_live_migration_preferred

Gets the is_live_migration_preferred of this LaunchInstanceAvailabilityConfigDetails. Whether to live migrate supported VM instances to a healthy physical VM host without disrupting running instances during infrastructure maintenance events. If null, Oracle chooses the best option for migrating the VM during infrastructure maintenance events.

Returns:The is_live_migration_preferred of this LaunchInstanceAvailabilityConfigDetails.
Return type:bool
recovery_action

Gets the recovery_action of this LaunchInstanceAvailabilityConfigDetails. The lifecycle state for an instance when it is recovered after infrastructure maintenance. * RESTORE_INSTANCE - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. * STOP_INSTANCE - The instance is recovered in the stopped state.

Allowed values for this property are: “RESTORE_INSTANCE”, “STOP_INSTANCE”

Returns:The recovery_action of this LaunchInstanceAvailabilityConfigDetails.
Return type:str