Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getComputeHost
Explore with Pulumi AI
This data source provides details about a specific Compute Host resource in Oracle Cloud Infrastructure Core service.
Gets information about the specified compute host
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeHost = oci.Core.getComputeHost({
    computeHostId: testComputeHostOciCoreComputeHost.id,
});
import pulumi
import pulumi_oci as oci
test_compute_host = oci.Core.get_compute_host(compute_host_id=test_compute_host_oci_core_compute_host["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetComputeHost(ctx, &core.GetComputeHostArgs{
			ComputeHostId: testComputeHostOciCoreComputeHost.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testComputeHost = Oci.Core.GetComputeHost.Invoke(new()
    {
        ComputeHostId = testComputeHostOciCoreComputeHost.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetComputeHostArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testComputeHost = CoreFunctions.getComputeHost(GetComputeHostArgs.builder()
            .computeHostId(testComputeHostOciCoreComputeHost.id())
            .build());
    }
}
variables:
  testComputeHost:
    fn::invoke:
      function: oci:Core:getComputeHost
      arguments:
        computeHostId: ${testComputeHostOciCoreComputeHost.id}
Using getComputeHost
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getComputeHost(args: GetComputeHostArgs, opts?: InvokeOptions): Promise<GetComputeHostResult>
function getComputeHostOutput(args: GetComputeHostOutputArgs, opts?: InvokeOptions): Output<GetComputeHostResult>def get_compute_host(compute_host_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetComputeHostResult
def get_compute_host_output(compute_host_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetComputeHostResult]func GetComputeHost(ctx *Context, args *GetComputeHostArgs, opts ...InvokeOption) (*GetComputeHostResult, error)
func GetComputeHostOutput(ctx *Context, args *GetComputeHostOutputArgs, opts ...InvokeOption) GetComputeHostResultOutput> Note: This function is named GetComputeHost in the Go SDK.
public static class GetComputeHost 
{
    public static Task<GetComputeHostResult> InvokeAsync(GetComputeHostArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeHostResult> Invoke(GetComputeHostInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeHostResult> getComputeHost(GetComputeHostArgs args, InvokeOptions options)
public static Output<GetComputeHostResult> getComputeHost(GetComputeHostArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getComputeHost:getComputeHost
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ComputeHost stringId 
- The OCID of the compute host.
- ComputeHost stringId 
- The OCID of the compute host.
- computeHost StringId 
- The OCID of the compute host.
- computeHost stringId 
- The OCID of the compute host.
- compute_host_ strid 
- The OCID of the compute host.
- computeHost StringId 
- The OCID of the compute host.
getComputeHost Result
The following output properties are available:
- AdditionalData string
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
- AvailabilityDomain string
- The availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
- CapacityReservation stringId 
- The OCID for the Capacity Reserver that is currently on host
- CompartmentId string
- The OCID for the compartment. This should always be the root compartment.
- ComputeHost stringId 
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- FaultDomain string
- 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.
- Dictionary<string, string>
- 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"}
- GpuMemory stringFabric Id 
- The OCID for Customer-unique GPU Memory Fabric
- Health string
- The heathy state of the host
- HpcIsland stringId 
- The OCID for Customer-unique HPC Island
- Id string
- The provider-assigned unique ID for this managed resource.
- ImpactedComponent stringDetails 
- 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 tiering
- InstanceId string
- The public OCID for the Virtual Machine or Bare Metal instance
- LifecycleDetails Dictionary<string, string>
- A free-form description detailing why the host is in its current state.
- LocalBlock stringId 
- The OCID for Customer-unique Local Block
- NetworkBlock stringId 
- The OCID for Customer-unique Network Block
- Shape string
- The shape of host
- State string
- The lifecycle state of the host
- TimeCreated string
- The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
- TimeUpdated string
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- AdditionalData string
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
- AvailabilityDomain string
- The availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
- CapacityReservation stringId 
- The OCID for the Capacity Reserver that is currently on host
- CompartmentId string
- The OCID for the compartment. This should always be the root compartment.
- ComputeHost stringId 
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- FaultDomain string
- 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.
- map[string]string
- 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"}
- GpuMemory stringFabric Id 
- The OCID for Customer-unique GPU Memory Fabric
- Health string
- The heathy state of the host
- HpcIsland stringId 
- The OCID for Customer-unique HPC Island
- Id string
- The provider-assigned unique ID for this managed resource.
- ImpactedComponent stringDetails 
- 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 tiering
- InstanceId string
- The public OCID for the Virtual Machine or Bare Metal instance
- LifecycleDetails map[string]string
- A free-form description detailing why the host is in its current state.
- LocalBlock stringId 
- The OCID for Customer-unique Local Block
- NetworkBlock stringId 
- The OCID for Customer-unique Network Block
- Shape string
- The shape of host
- State string
- The lifecycle state of the host
- TimeCreated string
- The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
- TimeUpdated string
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- additionalData String
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
- availabilityDomain String
- The availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
- capacityReservation StringId 
- The OCID for the Capacity Reserver that is currently on host
- compartmentId String
- The OCID for the compartment. This should always be the root compartment.
- computeHost StringId 
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- faultDomain String
- 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.
- Map<String,String>
- 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"}
- gpuMemory StringFabric Id 
- The OCID for Customer-unique GPU Memory Fabric
- health String
- The heathy state of the host
- hpcIsland StringId 
- The OCID for Customer-unique HPC Island
- id String
- The provider-assigned unique ID for this managed resource.
- impactedComponent StringDetails 
- 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 tiering
- instanceId String
- The public OCID for the Virtual Machine or Bare Metal instance
- lifecycleDetails Map<String,String>
- A free-form description detailing why the host is in its current state.
- localBlock StringId 
- The OCID for Customer-unique Local Block
- networkBlock StringId 
- The OCID for Customer-unique Network Block
- shape String
- The shape of host
- state String
- The lifecycle state of the host
- timeCreated String
- The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
- timeUpdated String
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- additionalData string
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
- availabilityDomain string
- The availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
- capacityReservation stringId 
- The OCID for the Capacity Reserver that is currently on host
- compartmentId string
- The OCID for the compartment. This should always be the root compartment.
- computeHost stringId 
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- faultDomain string
- 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.
- {[key: string]: string}
- 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"}
- gpuMemory stringFabric Id 
- The OCID for Customer-unique GPU Memory Fabric
- health string
- The heathy state of the host
- hpcIsland stringId 
- The OCID for Customer-unique HPC Island
- id string
- The provider-assigned unique ID for this managed resource.
- impactedComponent stringDetails 
- 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 tiering
- instanceId string
- The public OCID for the Virtual Machine or Bare Metal instance
- lifecycleDetails {[key: string]: string}
- A free-form description detailing why the host is in its current state.
- localBlock stringId 
- The OCID for Customer-unique Local Block
- networkBlock stringId 
- The OCID for Customer-unique Network Block
- shape string
- The shape of host
- state string
- The lifecycle state of the host
- timeCreated string
- The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
- timeUpdated string
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- additional_data str
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
- availability_domain str
- The availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
- capacity_reservation_ strid 
- The OCID for the Capacity Reserver that is currently on host
- compartment_id str
- The OCID for the compartment. This should always be the root compartment.
- compute_host_ strid 
- Mapping[str, str]
- 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 str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fault_domain str
- 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.
- Mapping[str, str]
- 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"}
- gpu_memory_ strfabric_ id 
- The OCID for Customer-unique GPU Memory Fabric
- health str
- The heathy state of the host
- hpc_island_ strid 
- The OCID for Customer-unique HPC Island
- id str
- The provider-assigned unique ID for this managed resource.
- impacted_component_ strdetails 
- 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 tiering
- instance_id str
- The public OCID for the Virtual Machine or Bare Metal instance
- lifecycle_details Mapping[str, str]
- A free-form description detailing why the host is in its current state.
- local_block_ strid 
- The OCID for Customer-unique Local Block
- network_block_ strid 
- The OCID for Customer-unique Network Block
- shape str
- The shape of host
- state str
- The lifecycle state of the host
- time_created str
- The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
- time_updated str
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- additionalData String
- Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
- availabilityDomain String
- The availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
- capacityReservation StringId 
- The OCID for the Capacity Reserver that is currently on host
- compartmentId String
- The OCID for the compartment. This should always be the root compartment.
- computeHost StringId 
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- faultDomain String
- 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.
- Map<String>
- 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"}
- gpuMemory StringFabric Id 
- The OCID for Customer-unique GPU Memory Fabric
- health String
- The heathy state of the host
- hpcIsland StringId 
- The OCID for Customer-unique HPC Island
- id String
- The provider-assigned unique ID for this managed resource.
- impactedComponent StringDetails 
- 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 tiering
- instanceId String
- The public OCID for the Virtual Machine or Bare Metal instance
- lifecycleDetails Map<String>
- A free-form description detailing why the host is in its current state.
- localBlock StringId 
- The OCID for Customer-unique Local Block
- networkBlock StringId 
- The OCID for Customer-unique Network Block
- shape String
- The shape of host
- state String
- The lifecycle state of the host
- timeCreated String
- The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
- timeUpdated String
- The date and time that the compute host record was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.