DedicatedVmHost

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

Bases: object

A dedicated virtual machine host lets you host multiple VM instances on a dedicated server that is not shared with other tenancies.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a DedicatedVmHost.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a DedicatedVmHost.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a DedicatedVmHost.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a DedicatedVmHost.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a DedicatedVmHost.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a DedicatedVmHost.
availability_domain [Required] Gets the availability_domain of this DedicatedVmHost.
compartment_id [Required] Gets the compartment_id of this DedicatedVmHost.
dedicated_vm_host_shape [Required] Gets the dedicated_vm_host_shape of this DedicatedVmHost.
defined_tags Gets the defined_tags of this DedicatedVmHost.
display_name [Required] Gets the display_name of this DedicatedVmHost.
fault_domain Gets the fault_domain of this DedicatedVmHost.
freeform_tags Gets the freeform_tags of this DedicatedVmHost.
id [Required] Gets the id of this DedicatedVmHost.
lifecycle_state [Required] Gets the lifecycle_state of this DedicatedVmHost.
remaining_memory_in_gbs Gets the remaining_memory_in_gbs of this DedicatedVmHost.
remaining_ocpus [Required] Gets the remaining_ocpus of this DedicatedVmHost.
time_created [Required] Gets the time_created of this DedicatedVmHost.
total_memory_in_gbs Gets the total_memory_in_gbs of this DedicatedVmHost.
total_ocpus [Required] Gets the total_ocpus of this DedicatedVmHost.

Methods

__init__(**kwargs) Initializes a new DedicatedVmHost object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a DedicatedVmHost. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a DedicatedVmHost. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a DedicatedVmHost. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a DedicatedVmHost. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a DedicatedVmHost. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a DedicatedVmHost. This constant has a value of “UPDATING”

__init__(**kwargs)

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

Parameters:
  • availability_domain (str) – The value to assign to the availability_domain property of this DedicatedVmHost.
  • compartment_id (str) – The value to assign to the compartment_id property of this DedicatedVmHost.
  • dedicated_vm_host_shape (str) – The value to assign to the dedicated_vm_host_shape property of this DedicatedVmHost.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this DedicatedVmHost.
  • display_name (str) – The value to assign to the display_name property of this DedicatedVmHost.
  • fault_domain (str) – The value to assign to the fault_domain property of this DedicatedVmHost.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this DedicatedVmHost.
  • id (str) – The value to assign to the id property of this DedicatedVmHost.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this DedicatedVmHost. Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this DedicatedVmHost.
  • total_ocpus (float) – The value to assign to the total_ocpus property of this DedicatedVmHost.
  • remaining_ocpus (float) – The value to assign to the remaining_ocpus property of this DedicatedVmHost.
  • total_memory_in_gbs (float) – The value to assign to the total_memory_in_gbs property of this DedicatedVmHost.
  • remaining_memory_in_gbs (float) – The value to assign to the remaining_memory_in_gbs property of this DedicatedVmHost.
availability_domain

[Required] Gets the availability_domain of this DedicatedVmHost. The availability domain the dedicated virtual machine host is running in.

Example: Uocm:PHX-AD-1

Returns:The availability_domain of this DedicatedVmHost.
Return type:str
compartment_id

[Required] Gets the compartment_id of this DedicatedVmHost. The OCID of the compartment that contains the dedicated virtual machine host.

Returns:The compartment_id of this DedicatedVmHost.
Return type:str
dedicated_vm_host_shape

[Required] Gets the dedicated_vm_host_shape of this DedicatedVmHost. The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.

Returns:The dedicated_vm_host_shape of this DedicatedVmHost.
Return type:str
defined_tags

Gets the defined_tags of this DedicatedVmHost. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this DedicatedVmHost.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this DedicatedVmHost. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this DedicatedVmHost.
Return type:str
fault_domain

Gets the fault_domain of this DedicatedVmHost. The fault domain for the dedicated virtual machine host’s assigned instances. For more information, see Fault Domains.

If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, delete it, and then create a new dedicated virtual machine host in the preferred fault domain.

To get a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

Example: FAULT-DOMAIN-1

Returns:The fault_domain of this DedicatedVmHost.
Return type:str
freeform_tags

Gets the freeform_tags of this DedicatedVmHost. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this DedicatedVmHost.
Return type:dict(str, str)
id

[Required] Gets the id of this DedicatedVmHost. The OCID of the dedicated VM host.

Returns:The id of this DedicatedVmHost.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this DedicatedVmHost. The current state of the dedicated VM host.

Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this DedicatedVmHost.
Return type:str
remaining_memory_in_gbs

Gets the remaining_memory_in_gbs of this DedicatedVmHost. The remaining memory of the dedicated VM host, in GBs.

Returns:The remaining_memory_in_gbs of this DedicatedVmHost.
Return type:float
remaining_ocpus

[Required] Gets the remaining_ocpus of this DedicatedVmHost. The available OCPUs of the dedicated VM host.

Returns:The remaining_ocpus of this DedicatedVmHost.
Return type:float
time_created

[Required] Gets the time_created of this DedicatedVmHost. The date and time the dedicated VM host was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this DedicatedVmHost.
Return type:datetime
total_memory_in_gbs

Gets the total_memory_in_gbs of this DedicatedVmHost. The total memory of the dedicated VM host, in GBs.

Returns:The total_memory_in_gbs of this DedicatedVmHost.
Return type:float
total_ocpus

[Required] Gets the total_ocpus of this DedicatedVmHost. The total OCPUs of the dedicated VM host.

Returns:The total_ocpus of this DedicatedVmHost.
Return type:float