ComputeHostGroup

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

Bases: object

Detail information for a compute host group.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a ComputeHostGroup.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ComputeHostGroup.
availability_domain [Required] Gets the availability_domain of this ComputeHostGroup.
compartment_id [Required] Gets the compartment_id of this ComputeHostGroup.
configurations Gets the configurations of this ComputeHostGroup.
defined_tags Gets the defined_tags of this ComputeHostGroup.
display_name [Required] Gets the display_name of this ComputeHostGroup.
freeform_tags Gets the freeform_tags of this ComputeHostGroup.
id Gets the id of this ComputeHostGroup.
is_targeted_placement_required Gets the is_targeted_placement_required of this ComputeHostGroup.
lifecycle_state [Required] Gets the lifecycle_state of this ComputeHostGroup.
system_tags Gets the system_tags of this ComputeHostGroup.
time_created [Required] Gets the time_created of this ComputeHostGroup.
time_updated Gets the time_updated of this ComputeHostGroup.

Methods

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

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

__init__(**kwargs)

Initializes a new ComputeHostGroup 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 ComputeHostGroup.
  • id (str) – The value to assign to the id property of this ComputeHostGroup.
  • display_name (str) – The value to assign to the display_name property of this ComputeHostGroup.
  • compartment_id (str) – The value to assign to the compartment_id property of this ComputeHostGroup.
  • configurations (list[oci.core.models.HostGroupConfiguration]) – The value to assign to the configurations property of this ComputeHostGroup.
  • time_created (datetime) – The value to assign to the time_created property of this ComputeHostGroup.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ComputeHostGroup.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ComputeHostGroup.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this ComputeHostGroup.
  • time_updated (datetime) – The value to assign to the time_updated property of this ComputeHostGroup.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ComputeHostGroup. Allowed values for this property are: “ACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_targeted_placement_required (bool) – The value to assign to the is_targeted_placement_required property of this ComputeHostGroup.
availability_domain

[Required] Gets the availability_domain of this ComputeHostGroup. The availability domain of a host group.

Example: Uocm:PHX-AD-1

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

[Required] Gets the compartment_id of this ComputeHostGroup. The OCID of the compartment that contains host group.

Returns:The compartment_id of this ComputeHostGroup.
Return type:str
configurations

Gets the configurations of this ComputeHostGroup. A list of HostGroupConfiguration objects

Returns:The configurations of this ComputeHostGroup.
Return type:list[oci.core.models.HostGroupConfiguration]
defined_tags

Gets the defined_tags of this ComputeHostGroup. 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 ComputeHostGroup.
Return type:dict(str, dict(str, object))
display_name

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

Returns:The display_name of this ComputeHostGroup.
Return type:str
freeform_tags

Gets the freeform_tags of this ComputeHostGroup. 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 ComputeHostGroup.
Return type:dict(str, str)
id

Gets the id of this ComputeHostGroup. The OCID for the Customer-unique host group

Returns:The id of this ComputeHostGroup.
Return type:str
is_targeted_placement_required

Gets the is_targeted_placement_required of this ComputeHostGroup. A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.

Returns:The is_targeted_placement_required of this ComputeHostGroup.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this ComputeHostGroup. The lifecycle state of the host group

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

Returns:The lifecycle_state of this ComputeHostGroup.
Return type:str
system_tags

Gets the system_tags of this ComputeHostGroup. 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 system_tags of this ComputeHostGroup.
Return type:dict(str, dict(str, object))
time_created

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

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

Returns:The time_created of this ComputeHostGroup.
Return type:datetime
time_updated

Gets the time_updated of this ComputeHostGroup. The date and time the host group was updated, in the format defined by RFC3339.

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

Returns:The time_updated of this ComputeHostGroup.
Return type:datetime