1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Core
  6. ComputeCluster
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 resource provides the Compute Cluster resource in Oracle Cloud Infrastructure Core service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/iaas/latest/ComputeCluster

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/

    Creates an empty compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.

    After the compute cluster is created, you can use the compute cluster’s OCID with the LaunchInstance operation to create instances in the compute cluster. The instances must be created in the same compartment and availability domain as the cluster.

    Use compute clusters when you want to manage instances in the cluster individually in the RDMA network group.

    If you want predictable capacity for a specific number of identical instances that are managed as a group, create a cluster network that uses instance pools by using the CreateClusterNetwork operation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCluster = new oci.core.ComputeCluster("test_compute_cluster", {
        availabilityDomain: computeClusterAvailabilityDomain,
        compartmentId: compartmentId,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: computeClusterDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        placementConstraintDetails: {
            type: "COMPUTE_CLUSTER",
            hpcIslandId: testHpcIsland.id,
            logicalPlacementConstraint: computeClusterPlacementConstraintDetailsLogicalPlacementConstraint,
            targetMemoryFabricIds: computeClusterPlacementConstraintDetailsTargetMemoryFabricIds,
            targetNetworkBlockIds: computeClusterPlacementConstraintDetailsTargetNetworkBlockIds,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_cluster = oci.core.ComputeCluster("test_compute_cluster",
        availability_domain=compute_cluster_availability_domain,
        compartment_id=compartment_id,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=compute_cluster_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        placement_constraint_details={
            "type": "COMPUTE_CLUSTER",
            "hpc_island_id": test_hpc_island["id"],
            "logical_placement_constraint": compute_cluster_placement_constraint_details_logical_placement_constraint,
            "target_memory_fabric_ids": compute_cluster_placement_constraint_details_target_memory_fabric_ids,
            "target_network_block_ids": compute_cluster_placement_constraint_details_target_network_block_ids,
        })
    
    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.NewComputeCluster(ctx, "test_compute_cluster", &core.ComputeClusterArgs{
    			AvailabilityDomain: pulumi.Any(computeClusterAvailabilityDomain),
    			CompartmentId:      pulumi.Any(compartmentId),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			DisplayName: pulumi.Any(computeClusterDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			PlacementConstraintDetails: &core.ComputeClusterPlacementConstraintDetailsArgs{
    				Type:                       pulumi.String("COMPUTE_CLUSTER"),
    				HpcIslandId:                pulumi.Any(testHpcIsland.Id),
    				LogicalPlacementConstraint: pulumi.Any(computeClusterPlacementConstraintDetailsLogicalPlacementConstraint),
    				TargetMemoryFabricIds:      pulumi.Any(computeClusterPlacementConstraintDetailsTargetMemoryFabricIds),
    				TargetNetworkBlockIds:      pulumi.Any(computeClusterPlacementConstraintDetailsTargetNetworkBlockIds),
    			},
    		})
    		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 = new Oci.Core.ComputeCluster("test_compute_cluster", new()
        {
            AvailabilityDomain = computeClusterAvailabilityDomain,
            CompartmentId = compartmentId,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = computeClusterDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            PlacementConstraintDetails = new Oci.Core.Inputs.ComputeClusterPlacementConstraintDetailsArgs
            {
                Type = "COMPUTE_CLUSTER",
                HpcIslandId = testHpcIsland.Id,
                LogicalPlacementConstraint = computeClusterPlacementConstraintDetailsLogicalPlacementConstraint,
                TargetMemoryFabricIds = computeClusterPlacementConstraintDetailsTargetMemoryFabricIds,
                TargetNetworkBlockIds = computeClusterPlacementConstraintDetailsTargetNetworkBlockIds,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.ComputeCluster;
    import com.pulumi.oci.Core.ComputeClusterArgs;
    import com.pulumi.oci.Core.inputs.ComputeClusterPlacementConstraintDetailsArgs;
    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) {
            var testComputeCluster = new ComputeCluster("testComputeCluster", ComputeClusterArgs.builder()
                .availabilityDomain(computeClusterAvailabilityDomain)
                .compartmentId(compartmentId)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(computeClusterDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .placementConstraintDetails(ComputeClusterPlacementConstraintDetailsArgs.builder()
                    .type("COMPUTE_CLUSTER")
                    .hpcIslandId(testHpcIsland.id())
                    .logicalPlacementConstraint(computeClusterPlacementConstraintDetailsLogicalPlacementConstraint)
                    .targetMemoryFabricIds(computeClusterPlacementConstraintDetailsTargetMemoryFabricIds)
                    .targetNetworkBlockIds(computeClusterPlacementConstraintDetailsTargetNetworkBlockIds)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testComputeCluster:
        type: oci:Core:ComputeCluster
        name: test_compute_cluster
        properties:
          availabilityDomain: ${computeClusterAvailabilityDomain}
          compartmentId: ${compartmentId}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${computeClusterDisplayName}
          freeformTags:
            Department: Finance
          placementConstraintDetails:
            type: COMPUTE_CLUSTER
            hpcIslandId: ${testHpcIsland.id}
            logicalPlacementConstraint: ${computeClusterPlacementConstraintDetailsLogicalPlacementConstraint}
            targetMemoryFabricIds: ${computeClusterPlacementConstraintDetailsTargetMemoryFabricIds}
            targetNetworkBlockIds: ${computeClusterPlacementConstraintDetailsTargetNetworkBlockIds}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    resource "oci_core_computecluster" "test_compute_cluster" {
      availability_domain = computeClusterAvailabilityDomain
      compartment_id      = compartmentId
      defined_tags = {
        "Operations.CostCenter" = "42"
      }
      display_name = computeClusterDisplayName
      freeform_tags = {
        "Department" = "Finance"
      }
      placement_constraint_details = {
        type                         = "COMPUTE_CLUSTER"
        hpc_island_id                = testHpcIsland.id
        logical_placement_constraint = computeClusterPlacementConstraintDetailsLogicalPlacementConstraint
        target_memory_fabric_ids     = computeClusterPlacementConstraintDetailsTargetMemoryFabricIds
        target_network_block_ids     = computeClusterPlacementConstraintDetailsTargetNetworkBlockIds
      }
    }
    

    Create ComputeCluster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ComputeCluster(name: string, args: ComputeClusterArgs, opts?: CustomResourceOptions);
    @overload
    def ComputeCluster(resource_name: str,
                       args: ComputeClusterArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeCluster(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       availability_domain: Optional[str] = None,
                       compartment_id: Optional[str] = None,
                       defined_tags: Optional[Mapping[str, str]] = None,
                       display_name: Optional[str] = None,
                       freeform_tags: Optional[Mapping[str, str]] = None,
                       placement_constraint_details: Optional[ComputeClusterPlacementConstraintDetailsArgs] = None)
    func NewComputeCluster(ctx *Context, name string, args ComputeClusterArgs, opts ...ResourceOption) (*ComputeCluster, error)
    public ComputeCluster(string name, ComputeClusterArgs args, CustomResourceOptions? opts = null)
    public ComputeCluster(String name, ComputeClusterArgs args)
    public ComputeCluster(String name, ComputeClusterArgs args, CustomResourceOptions options)
    
    type: oci:Core:ComputeCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_core_compute_cluster" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ComputeClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ComputeClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ComputeClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var computeClusterResource = new Oci.Core.ComputeCluster("computeClusterResource", new()
    {
        AvailabilityDomain = "string",
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        PlacementConstraintDetails = new Oci.Core.Inputs.ComputeClusterPlacementConstraintDetailsArgs
        {
            Type = "string",
            HpcIslandId = "string",
            LogicalPlacementConstraint = "string",
            TargetMemoryFabricIds = new[]
            {
                "string",
            },
            TargetNetworkBlockIds = new[]
            {
                "string",
            },
        },
    });
    
    example, err := core.NewComputeCluster(ctx, "computeClusterResource", &core.ComputeClusterArgs{
    	AvailabilityDomain: pulumi.String("string"),
    	CompartmentId:      pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	PlacementConstraintDetails: &core.ComputeClusterPlacementConstraintDetailsArgs{
    		Type:                       pulumi.String("string"),
    		HpcIslandId:                pulumi.String("string"),
    		LogicalPlacementConstraint: pulumi.String("string"),
    		TargetMemoryFabricIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		TargetNetworkBlockIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    resource "oci_core_compute_cluster" "computeClusterResource" {
      lifecycle {
        create_before_destroy = true
      }
      availability_domain = "string"
      compartment_id      = "string"
      defined_tags = {
        "string" = "string"
      }
      display_name = "string"
      freeform_tags = {
        "string" = "string"
      }
      placement_constraint_details = {
        type                         = "string"
        hpc_island_id                = "string"
        logical_placement_constraint = "string"
        target_memory_fabric_ids     = ["string"]
        target_network_block_ids     = ["string"]
      }
    }
    
    var computeClusterResource = new ComputeCluster("computeClusterResource", ComputeClusterArgs.builder()
        .availabilityDomain("string")
        .compartmentId("string")
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .placementConstraintDetails(ComputeClusterPlacementConstraintDetailsArgs.builder()
            .type("string")
            .hpcIslandId("string")
            .logicalPlacementConstraint("string")
            .targetMemoryFabricIds("string")
            .targetNetworkBlockIds("string")
            .build())
        .build());
    
    compute_cluster_resource = oci.core.ComputeCluster("computeClusterResource",
        availability_domain="string",
        compartment_id="string",
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        placement_constraint_details={
            "type": "string",
            "hpc_island_id": "string",
            "logical_placement_constraint": "string",
            "target_memory_fabric_ids": ["string"],
            "target_network_block_ids": ["string"],
        })
    
    const computeClusterResource = new oci.core.ComputeCluster("computeClusterResource", {
        availabilityDomain: "string",
        compartmentId: "string",
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        placementConstraintDetails: {
            type: "string",
            hpcIslandId: "string",
            logicalPlacementConstraint: "string",
            targetMemoryFabricIds: ["string"],
            targetNetworkBlockIds: ["string"],
        },
    });
    
    type: oci:Core:ComputeCluster
    properties:
        availabilityDomain: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        placementConstraintDetails:
            hpcIslandId: string
            logicalPlacementConstraint: string
            targetMemoryFabricIds:
                - string
            targetNetworkBlockIds:
                - string
            type: string
    

    ComputeCluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ComputeCluster resource accepts the following input properties:

    AvailabilityDomain string
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    PlacementConstraintDetails ComputeClusterPlacementConstraintDetails
    (Updatable) The details for providing placement constraints.
    AvailabilityDomain string
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags map[string]string
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) 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"}
    PlacementConstraintDetails ComputeClusterPlacementConstraintDetailsArgs
    (Updatable) The details for providing placement constraints.
    availability_domain string
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartment_id string
    (Updatable) The OCID of the compartment.
    defined_tags map(string)
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags map(string)
    (Updatable) 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"}
    placement_constraint_details object
    (Updatable) The details for providing placement constraints.
    availabilityDomain String
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String,String>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) 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"}
    placementConstraintDetails ComputeClusterPlacementConstraintDetails
    (Updatable) The details for providing placement constraints.
    availabilityDomain string
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment.
    definedTags {[key: string]: string}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    placementConstraintDetails ComputeClusterPlacementConstraintDetails
    (Updatable) The details for providing placement constraints.
    availability_domain str
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartment_id str
    (Updatable) The OCID of the compartment.
    defined_tags Mapping[str, str]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    placement_constraint_details ComputeClusterPlacementConstraintDetailsArgs
    (Updatable) The details for providing placement constraints.
    availabilityDomain String
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) 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"}
    placementConstraintDetails Property Map
    (Updatable) The details for providing placement constraints.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ComputeCluster resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    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
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    id string
    The provider-assigned unique ID for this managed resource.
    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
    id String
    The provider-assigned unique ID for this managed resource.
    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
    id string
    The provider-assigned unique ID for this managed resource.
    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
    id str
    The provider-assigned unique ID for this managed resource.
    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
    id String
    The provider-assigned unique ID for this managed resource.
    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

    Look up Existing ComputeCluster Resource

    Get an existing ComputeCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ComputeClusterState, opts?: CustomResourceOptions): ComputeCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_domain: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            placement_constraint_details: Optional[ComputeClusterPlacementConstraintDetailsArgs] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> ComputeCluster
    func GetComputeCluster(ctx *Context, name string, id IDInput, state *ComputeClusterState, opts ...ResourceOption) (*ComputeCluster, error)
    public static ComputeCluster Get(string name, Input<string> id, ComputeClusterState? state, CustomResourceOptions? opts = null)
    public static ComputeCluster get(String name, Output<String> id, ComputeClusterState state, CustomResourceOptions options)
    resources:  _:    type: oci:Core:ComputeCluster    get:      id: ${id}
    import {
      to = oci_core_compute_cluster.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityDomain string
    The availability domain to place the compute cluster in. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    PlacementConstraintDetails ComputeClusterPlacementConstraintDetails
    (Updatable) 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 to place the compute cluster in. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags map[string]string
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) 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"}
    PlacementConstraintDetails ComputeClusterPlacementConstraintDetailsArgs
    (Updatable) 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 to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartment_id string
    (Updatable) The OCID of the compartment.
    defined_tags map(string)
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags map(string)
    (Updatable) 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"}
    placement_constraint_details object
    (Updatable) 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 to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String,String>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) 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"}
    placementConstraintDetails ComputeClusterPlacementConstraintDetails
    (Updatable) 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 to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment.
    definedTags {[key: string]: string}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    placementConstraintDetails ComputeClusterPlacementConstraintDetails
    (Updatable) 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 to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartment_id str
    (Updatable) The OCID of the compartment.
    defined_tags Mapping[str, str]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    placement_constraint_details ComputeClusterPlacementConstraintDetailsArgs
    (Updatable) 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 to place the compute cluster in. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) 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"}
    placementConstraintDetails Property Map
    (Updatable) 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

    ComputeClusterPlacementConstraintDetails, ComputeClusterPlacementConstraintDetailsArgs

    Type string

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    HpcIslandId string

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    TargetNetworkBlockIds List<string>

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    Type string

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    HpcIslandId string

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    TargetNetworkBlockIds []string

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    type string

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    hpc_island_id string

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    target_network_block_ids list(string)

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    type String

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    hpcIslandId String

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    targetNetworkBlockIds List<String>

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    type string

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    hpcIslandId string

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    targetNetworkBlockIds string[]

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    type str

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    hpc_island_id str

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    target_network_block_ids Sequence[str]

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    type String

    (Updatable) The type for the placement constraints. Supported value: COMPUTE_CLUSTER.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    hpcIslandId String

    The OCID of the HPC island for the compute cluster.

    This field cannot be updated after creation of 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.

    If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    targetNetworkBlockIds List<String>

    The list of target network block OCIDs to constrain placement. Up to 15 items are allowed.

    If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.

    The ordering of the array will be preserved. Ensure that all items in the array are unique.

    Import

    ComputeClusters can be imported using the id, e.g.

    $ pulumi import oci:Core/computeCluster:ComputeCluster test_compute_cluster "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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