Data Source: oci_core_compute_hosts
This data source provides the list of Compute Hosts in Oracle Cloud Infrastructure Core service.
Generates a list of summary host details
Example Usage
data "oci_core_compute_hosts" "test_compute_hosts" {
#Required
compartment_id = var.compartment_id
#Optional
availability_domain = var.compute_host_availability_domain
compute_host_group_id = oci_core_compute_host_group.test_compute_host_group.id
compute_host_health = var.compute_host_compute_host_health
compute_host_lifecycle_state = var.compute_host_compute_host_lifecycle_state
display_name = var.compute_host_display_name
network_resource_id = oci_cloud_guard_resource.test_resource.id
}
Argument Reference
The following arguments are supported:
availability_domain
- (Optional) The name of the availability domain. Example:Uocm:PHX-AD-1
compartment_id
- (Required) The OCID of the compartment.compute_host_group_id
- (Optional) The OCID of the compute host group.compute_host_health
- (Optional) A filter to return only ComputeHostSummary resources that match the given Compute Host health State OCID exactly.compute_host_lifecycle_state
- (Optional) A filter to return only ComputeHostSummary resources that match the given Compute Host lifecycle State OCID exactly.display_name
- (Optional) A filter to return only resources that match the given display name exactly.network_resource_id
- (Optional) The OCID of the compute host network resoruce.- Customer-unique HPC island ID
- Customer-unique network block ID
- Customer-unique local block ID
Attributes Reference
The following attributes are exported:
compute_host_collection
- The list of compute_host_collection.
ComputeHost Reference
The following attributes are exported:
additional_data
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customersavailability_domain
- The availability domain of the compute host. Example:Uocm:US-CHICAGO-1-AD-2
capacity_reservation_id
- The OCID for the Capacity Reserver that is currently on hostcompartment_id
- The OCID for the compartment. This should always be the root compartment.compute_host_group_id
- The OCID for the Customer-unique host group associated with the Compute Bare Metal Host.configuration_data
- Compute Host Configuration Datacheck_details
- Compute Host Group Configuration Details Checkconfiguration_state
- The current state of the host configuration. The Host is either | CONFORMANT - current state matches the desired configuration NON_CONFORMANT - current state does not match the desired configuration PRE_APPLYING, APPLYING, CHECKING- transitional states UNKNOWN - current state is unknownfirmware_bundle_id
- The OCID for the Customer-unique firmware bundle associated with the Host Configuration.recycle_level
- Preferred recycle level for hosts associated with the reservation config.SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
type
- The type of configuration
time_last_apply
- The time that was last applied.
configuration_state
- Configuration state of the Compute Bare Metal Host.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.fault_domain
- A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains.This field is the Fault domain of the host
freeform_tags
- 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"}
health
- The heathy state of the hosthpc_island_id
- The OCID for Customer-unique HPC Islandid
- The OCID for the Customer-unique hostimpacted_component_details
- A list that contains impacted components related to an unhealthy host. An impacted component will be a free-form structure of key values pairs that will provide more or less details based on data tieringinstance_id
- The public OCID for the Virtual Machine or Bare Metal instancelifecycle_details
- A free-form description detailing why the host is in its current state.local_block_id
- The OCID for Customer-unique Local Blockgpu_memory_fabric_id
- The OCID for Customer-unique GPU Memory Fabricnetwork_block_id
- The OCID for Customer-unique Network Blockrecycle_details
- Shows details about the last recycle performed on this host.compute_host_group_id
- The OCID of the compute host group this host was attached to at the time of recycle.
recycle_level
- Preferred recycle level for hosts associated with the reservation config.SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
shape
- The shape of hoststate
- The lifecycle state of the hosttime_configuration_check
- The date and time that the compute bare metal host configuration check was updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
time_created
- The date and time that the compute host record was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
time_updated
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z