UpdateInstanceAvailabilityConfigDetails

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

Bases: object

Options for defining the availability of a VM instance after a maintenance event that impacts the underlying hardware, including whether to live migrate supported VM instances when possible.

Attributes

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

Methods

__init__(**kwargs) Initializes a new UpdateInstanceAvailabilityConfigDetails 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 UpdateInstanceAvailabilityConfigDetails. 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 UpdateInstanceAvailabilityConfigDetails. This constant has a value of “STOP_INSTANCE”

__init__(**kwargs)

Initializes a new UpdateInstanceAvailabilityConfigDetails 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 UpdateInstanceAvailabilityConfigDetails.
  • recovery_action (str) – The value to assign to the recovery_action property of this UpdateInstanceAvailabilityConfigDetails. Allowed values for this property are: “RESTORE_INSTANCE”, “STOP_INSTANCE”
is_live_migration_preferred

Gets the is_live_migration_preferred of this UpdateInstanceAvailabilityConfigDetails. 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 UpdateInstanceAvailabilityConfigDetails.
Return type:bool
recovery_action

Gets the recovery_action of this UpdateInstanceAvailabilityConfigDetails. 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 UpdateInstanceAvailabilityConfigDetails.
Return type:str