1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Core
  6. getComputeCluster
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi

    This data source provides details about a specific Compute Cluster resource in Oracle Cloud Infrastructure Core service.

    Gets information about a compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCluster = oci.core.getComputeCluster({
        computeClusterId: testComputeClusterOciCoreComputeCluster.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_cluster = oci.core.get_compute_cluster(compute_cluster_id=test_compute_cluster_oci_core_compute_cluster["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := core.GetComputeCluster(ctx, &core.GetComputeClusterArgs{
    			ComputeClusterId: testComputeClusterOciCoreComputeCluster.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 testComputeCluster = Oci.Core.GetComputeCluster.Invoke(new()
        {
            ComputeClusterId = testComputeClusterOciCoreComputeCluster.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.GetComputeClusterArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testComputeCluster = CoreFunctions.getComputeCluster(GetComputeClusterArgs.builder()
                .computeClusterId(testComputeClusterOciCoreComputeCluster.id())
                .build());
    
        }
    }
    
    variables:
      testComputeCluster:
        fn::invoke:
          function: oci:Core:getComputeCluster
          arguments:
            computeClusterId: ${testComputeClusterOciCoreComputeCluster.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_core_getcomputecluster" "testComputeCluster" {
      compute_cluster_id = testComputeClusterOciCoreComputeCluster.id
    }
    

    Using getComputeCluster

    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 getComputeCluster(args: GetComputeClusterArgs, opts?: InvokeOptions): Promise<GetComputeClusterResult>
    function getComputeClusterOutput(args: GetComputeClusterOutputArgs, opts?: InvokeOutputOptions): Output<GetComputeClusterResult>
    def get_compute_cluster(compute_cluster_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetComputeClusterResult
    def get_compute_cluster_output(compute_cluster_id: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetComputeClusterResult]
    func LookupComputeCluster(ctx *Context, args *LookupComputeClusterArgs, opts ...InvokeOption) (*LookupComputeClusterResult, error)
    func LookupComputeClusterOutput(ctx *Context, args *LookupComputeClusterOutputArgs, opts ...InvokeOption) LookupComputeClusterResultOutput

    > Note: This function is named LookupComputeCluster in the Go SDK.

    public static class GetComputeCluster 
    {
        public static Task<GetComputeClusterResult> InvokeAsync(GetComputeClusterArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeClusterResult> Invoke(GetComputeClusterInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeClusterResult> Invoke(GetComputeClusterInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetComputeClusterResult> getComputeCluster(GetComputeClusterArgs args, InvokeOptions options)
    public static Output<GetComputeClusterResult> getComputeCluster(GetComputeClusterArgs args, InvokeOptions options)
    public static Output<GetComputeClusterResult> getComputeCluster(GetComputeClusterArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:Core/getComputeCluster:getComputeCluster
      arguments:
        # arguments dictionary
    data "oci_core_get_compute_cluster" "name" {
        # arguments
    }

    The following arguments are supported:

    ComputeClusterId string
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
    ComputeClusterId string
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
    compute_cluster_id string
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
    computeClusterId String
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
    computeClusterId string
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
    compute_cluster_id str
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
    computeClusterId String
    The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.

    getComputeCluster Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    CompartmentId string
    The OCID of the compartment that contains the compute cluster.
    ComputeClusterId 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.
    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"}
    Id string
    The OCID of the compute cluster.
    PlacementConstraintDetails List<GetComputeClusterPlacementConstraintDetail>
    The details for providing placement constraints.
    State string
    The current state of the compute cluster.
    TimeCreated string
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    AvailabilityDomain string
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    CompartmentId string
    The OCID of the compartment that contains the compute cluster.
    ComputeClusterId 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.
    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"}
    Id string
    The OCID of the compute cluster.
    PlacementConstraintDetails []GetComputeClusterPlacementConstraintDetail
    The details for providing placement constraints.
    State string
    The current state of the compute cluster.
    TimeCreated string
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availability_domain string
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    compartment_id string
    The OCID of the compartment that contains the compute cluster.
    compute_cluster_id string
    defined_tags 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"}
    display_name string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags 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"}
    id string
    The OCID of the compute cluster.
    placement_constraint_details list(object)
    The details for providing placement constraints.
    state string
    The current state of the compute cluster.
    time_created string
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    time_updated string
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availabilityDomain String
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    compartmentId String
    The OCID of the compartment that contains the compute cluster.
    computeClusterId 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.
    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"}
    id String
    The OCID of the compute cluster.
    placementConstraintDetails List<GetComputeClusterPlacementConstraintDetail>
    The details for providing placement constraints.
    state String
    The current state of the compute cluster.
    timeCreated String
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availabilityDomain string
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    compartmentId string
    The OCID of the compartment that contains the compute cluster.
    computeClusterId 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.
    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"}
    id string
    The OCID of the compute cluster.
    placementConstraintDetails GetComputeClusterPlacementConstraintDetail[]
    The details for providing placement constraints.
    state string
    The current state of the compute cluster.
    timeCreated string
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availability_domain str
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    compartment_id str
    The OCID of the compartment that contains the compute cluster.
    compute_cluster_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.
    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"}
    id str
    The OCID of the compute cluster.
    placement_constraint_details Sequence[GetComputeClusterPlacementConstraintDetail]
    The details for providing placement constraints.
    state str
    The current state of the compute cluster.
    time_created str
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availabilityDomain String
    The availability domain the compute cluster is running in. Example: Uocm:PHX-AD-1
    compartmentId String
    The OCID of the compartment that contains the compute cluster.
    computeClusterId 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.
    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"}
    id String
    The OCID of the compute cluster.
    placementConstraintDetails List<Property Map>
    The details for providing placement constraints.
    state String
    The current state of the compute cluster.
    timeCreated String
    The date and time the compute cluster was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the compute cluster was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    GetComputeClusterPlacementConstraintDetail

    HpcIslandId string
    The OCID of the HPC island for the compute cluster.
    LogicalPlacementConstraint string
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    TargetMemoryFabricIds List<string>
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    TargetNetworkBlockIds List<string>
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    Type string
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.
    HpcIslandId string
    The OCID of the HPC island for the compute cluster.
    LogicalPlacementConstraint string
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    TargetMemoryFabricIds []string
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    TargetNetworkBlockIds []string
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    Type string
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.
    hpc_island_id string
    The OCID of the HPC island for the compute cluster.
    logical_placement_constraint string
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    target_memory_fabric_ids list(string)
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    target_network_block_ids list(string)
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    type string
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.
    hpcIslandId String
    The OCID of the HPC island for the compute cluster.
    logicalPlacementConstraint String
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    targetMemoryFabricIds List<String>
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    targetNetworkBlockIds List<String>
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    type String
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.
    hpcIslandId string
    The OCID of the HPC island for the compute cluster.
    logicalPlacementConstraint string
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    targetMemoryFabricIds string[]
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    targetNetworkBlockIds string[]
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    type string
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.
    hpc_island_id str
    The OCID of the HPC island for the compute cluster.
    logical_placement_constraint str
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    target_memory_fabric_ids Sequence[str]
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    target_network_block_ids Sequence[str]
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    type str
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.
    hpcIslandId String
    The OCID of the HPC island for the compute cluster.
    logicalPlacementConstraint String
    The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
    targetMemoryFabricIds List<String>
    The list of target GPU memory fabric OCIDs to constrain placement. Up to 15 items are allowed.
    targetNetworkBlockIds List<String>
    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.
    type String
    The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.20.0
    published on Wednesday, Jul 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial