1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeHost
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Core.getComputeHost

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testComputeHost:
    fn::invoke:
      function: oci:Core:getComputeHost
      arguments:
        computeHostId: ${testComputeHostOciCoreComputeHost.id}
Copy

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>
Copy
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]
Copy
func GetComputeHost(ctx *Context, args *GetComputeHostArgs, opts ...InvokeOption) (*GetComputeHostResult, error)
func GetComputeHostOutput(ctx *Context, args *GetComputeHostOutputArgs, opts ...InvokeOption) GetComputeHostResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetComputeHostResult> getComputeHost(GetComputeHostArgs args, InvokeOptions options)
public static Output<GetComputeHostResult> getComputeHost(GetComputeHostArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getComputeHost:getComputeHost
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ComputeHostId This property is required. string
The OCID of the compute host.
ComputeHostId This property is required. string
The OCID of the compute host.
computeHostId This property is required. String
The OCID of the compute host.
computeHostId This property is required. string
The OCID of the compute host.
compute_host_id This property is required. str
The OCID of the compute host.
computeHostId This property is required. String
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
CapacityReservationId string
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.
ComputeHostId string
DefinedTags 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.
FreeformTags 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"}
GpuMemoryFabricId string
The OCID for Customer-unique GPU Memory Fabric
Health string
The heathy state of the host
HpcIslandId string
The OCID for Customer-unique HPC Island
Id string
The provider-assigned unique ID for this managed resource.
ImpactedComponentDetails string
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.
LocalBlockId string
The OCID for Customer-unique Local Block
NetworkBlockId string
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
CapacityReservationId string
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.
ComputeHostId string
DefinedTags 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.
FreeformTags 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"}
GpuMemoryFabricId string
The OCID for Customer-unique GPU Memory Fabric
Health string
The heathy state of the host
HpcIslandId string
The OCID for Customer-unique HPC Island
Id string
The provider-assigned unique ID for this managed resource.
ImpactedComponentDetails string
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.
LocalBlockId string
The OCID for Customer-unique Local Block
NetworkBlockId string
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
capacityReservationId String
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.
computeHostId String
definedTags 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.
freeformTags 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"}
gpuMemoryFabricId String
The OCID for Customer-unique GPU Memory Fabric
health String
The heathy state of the host
hpcIslandId String
The OCID for Customer-unique HPC Island
id String
The provider-assigned unique ID for this managed resource.
impactedComponentDetails String
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.
localBlockId String
The OCID for Customer-unique Local Block
networkBlockId String
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
capacityReservationId string
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.
computeHostId string
definedTags {[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.
freeformTags {[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"}
gpuMemoryFabricId string
The OCID for Customer-unique GPU Memory Fabric
health string
The heathy state of the host
hpcIslandId string
The OCID for Customer-unique HPC Island
id string
The provider-assigned unique ID for this managed resource.
impactedComponentDetails string
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.
localBlockId string
The OCID for Customer-unique Local Block
networkBlockId string
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_id str
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_id str
defined_tags 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.
freeform_tags 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_fabric_id str
The OCID for Customer-unique GPU Memory Fabric
health str
The heathy state of the host
hpc_island_id str
The OCID for Customer-unique HPC Island
id str
The provider-assigned unique ID for this managed resource.
impacted_component_details str
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_id str
The OCID for Customer-unique Local Block
network_block_id str
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
capacityReservationId String
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.
computeHostId String
definedTags 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.
freeformTags 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"}
gpuMemoryFabricId String
The OCID for Customer-unique GPU Memory Fabric
health String
The heathy state of the host
hpcIslandId String
The OCID for Customer-unique HPC Island
id String
The provider-assigned unique ID for this managed resource.
impactedComponentDetails String
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.
localBlockId String
The OCID for Customer-unique Local Block
networkBlockId String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi