Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getComputeCapacityTopologies
Explore with Pulumi AI
This data source provides the list of Compute Capacity Topologies in Oracle Cloud Infrastructure Core service.
Lists the compute capacity topologies in the specified compartment. You can filter the list by a compute capacity topology display name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeCapacityTopologies = oci.Core.getComputeCapacityTopologies({
    compartmentId: compartmentId,
    availabilityDomain: computeCapacityTopologyAvailabilityDomain,
    displayName: computeCapacityTopologyDisplayName,
});
import pulumi
import pulumi_oci as oci
test_compute_capacity_topologies = oci.Core.get_compute_capacity_topologies(compartment_id=compartment_id,
    availability_domain=compute_capacity_topology_availability_domain,
    display_name=compute_capacity_topology_display_name)
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.GetComputeCapacityTopologies(ctx, &core.GetComputeCapacityTopologiesArgs{
			CompartmentId:      compartmentId,
			AvailabilityDomain: pulumi.StringRef(computeCapacityTopologyAvailabilityDomain),
			DisplayName:        pulumi.StringRef(computeCapacityTopologyDisplayName),
		}, 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 testComputeCapacityTopologies = Oci.Core.GetComputeCapacityTopologies.Invoke(new()
    {
        CompartmentId = compartmentId,
        AvailabilityDomain = computeCapacityTopologyAvailabilityDomain,
        DisplayName = computeCapacityTopologyDisplayName,
    });
});
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.GetComputeCapacityTopologiesArgs;
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 testComputeCapacityTopologies = CoreFunctions.getComputeCapacityTopologies(GetComputeCapacityTopologiesArgs.builder()
            .compartmentId(compartmentId)
            .availabilityDomain(computeCapacityTopologyAvailabilityDomain)
            .displayName(computeCapacityTopologyDisplayName)
            .build());
    }
}
variables:
  testComputeCapacityTopologies:
    fn::invoke:
      function: oci:Core:getComputeCapacityTopologies
      arguments:
        compartmentId: ${compartmentId}
        availabilityDomain: ${computeCapacityTopologyAvailabilityDomain}
        displayName: ${computeCapacityTopologyDisplayName}
Using getComputeCapacityTopologies
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 getComputeCapacityTopologies(args: GetComputeCapacityTopologiesArgs, opts?: InvokeOptions): Promise<GetComputeCapacityTopologiesResult>
function getComputeCapacityTopologiesOutput(args: GetComputeCapacityTopologiesOutputArgs, opts?: InvokeOptions): Output<GetComputeCapacityTopologiesResult>def get_compute_capacity_topologies(availability_domain: Optional[str] = None,
                                    compartment_id: Optional[str] = None,
                                    display_name: Optional[str] = None,
                                    filters: Optional[Sequence[GetComputeCapacityTopologiesFilter]] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetComputeCapacityTopologiesResult
def get_compute_capacity_topologies_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                    compartment_id: Optional[pulumi.Input[str]] = None,
                                    display_name: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetComputeCapacityTopologiesFilterArgs]]]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetComputeCapacityTopologiesResult]func GetComputeCapacityTopologies(ctx *Context, args *GetComputeCapacityTopologiesArgs, opts ...InvokeOption) (*GetComputeCapacityTopologiesResult, error)
func GetComputeCapacityTopologiesOutput(ctx *Context, args *GetComputeCapacityTopologiesOutputArgs, opts ...InvokeOption) GetComputeCapacityTopologiesResultOutput> Note: This function is named GetComputeCapacityTopologies in the Go SDK.
public static class GetComputeCapacityTopologies 
{
    public static Task<GetComputeCapacityTopologiesResult> InvokeAsync(GetComputeCapacityTopologiesArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeCapacityTopologiesResult> Invoke(GetComputeCapacityTopologiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeCapacityTopologiesResult> getComputeCapacityTopologies(GetComputeCapacityTopologiesArgs args, InvokeOptions options)
public static Output<GetComputeCapacityTopologiesResult> getComputeCapacityTopologies(GetComputeCapacityTopologiesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getComputeCapacityTopologies:getComputeCapacityTopologies
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetCompute Capacity Topologies Filter> 
- CompartmentId string
- The OCID of the compartment.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetCompute Capacity Topologies Filter 
- compartmentId String
- The OCID of the compartment.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetCompute Capacity Topologies Filter> 
- compartmentId string
- The OCID of the compartment.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetCompute Capacity Topologies Filter[] 
- compartment_id str
- The OCID of the compartment.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- display_name str
- A filter to return only resources that match the given display name exactly.
- filters
Sequence[GetCompute Capacity Topologies Filter] 
- compartmentId String
- The OCID of the compartment.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
getComputeCapacityTopologies Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the compute capacity topology.
- ComputeCapacity List<GetTopology Collections Compute Capacity Topologies Compute Capacity Topology Collection> 
- The list of compute_capacity_topology_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- AvailabilityDomain string
- The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<GetCompute Capacity Topologies Filter> 
- CompartmentId string
- The OCID of the compartment that contains the compute capacity topology.
- ComputeCapacity []GetTopology Collections Compute Capacity Topologies Compute Capacity Topology Collection 
- The list of compute_capacity_topology_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- AvailabilityDomain string
- The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]GetCompute Capacity Topologies Filter 
- compartmentId String
- The OCID of the compartment that contains the compute capacity topology.
- computeCapacity List<GetTopology Collections Compute Capacity Topologies Compute Capacity Topology Collection> 
- The list of compute_capacity_topology_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- availabilityDomain String
- The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<GetCompute Capacity Topologies Filter> 
- compartmentId string
- The OCID of the compartment that contains the compute capacity topology.
- computeCapacity GetTopology Collections Compute Capacity Topologies Compute Capacity Topology Collection[] 
- The list of compute_capacity_topology_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- availabilityDomain string
- The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
GetCompute Capacity Topologies Filter[] 
- compartment_id str
- The OCID of the compartment that contains the compute capacity topology.
- compute_capacity_ Sequence[Gettopology_ collections Compute Capacity Topologies Compute Capacity Topology Collection] 
- The list of compute_capacity_topology_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- availability_domain str
- The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[GetCompute Capacity Topologies Filter] 
- compartmentId String
- The OCID of the compartment that contains the compute capacity topology.
- computeCapacity List<Property Map>Topology Collections 
- The list of compute_capacity_topology_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- availabilityDomain String
- The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
Supporting Types
GetComputeCapacityTopologiesComputeCapacityTopologyCollection       
GetComputeCapacityTopologiesComputeCapacityTopologyCollectionItem        
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CapacitySources List<GetCompute Capacity Topologies Compute Capacity Topology Collection Item Capacity Source> 
- A capacity source of bare metal hosts.
- CompartmentId string
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 capacity topology.
- State string
- The current state of the compute capacity topology.
- TimeCreated string
- The date and time that the compute capacity topology was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TimeUpdated string
- The date and time that the compute capacity topology was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CapacitySources []GetCompute Capacity Topologies Compute Capacity Topology Collection Item Capacity Source 
- A capacity source of bare metal hosts.
- CompartmentId string
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 capacity topology.
- State string
- The current state of the compute capacity topology.
- TimeCreated string
- The date and time that the compute capacity topology was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TimeUpdated string
- The date and time that the compute capacity topology was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- capacitySources List<GetCompute Capacity Topologies Compute Capacity Topology Collection Item Capacity Source> 
- A capacity source of bare metal hosts.
- compartmentId String
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 capacity topology.
- state String
- The current state of the compute capacity topology.
- timeCreated String
- The date and time that the compute capacity topology was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeUpdated String
- The date and time that the compute capacity topology was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- capacitySources GetCompute Capacity Topologies Compute Capacity Topology Collection Item Capacity Source[] 
- A capacity source of bare metal hosts.
- compartmentId string
- The OCID of the compartment.
- {[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 filter to return only resources that match the given display name exactly.
- {[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 capacity topology.
- state string
- The current state of the compute capacity topology.
- timeCreated string
- The date and time that the compute capacity topology was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeUpdated string
- The date and time that the compute capacity topology was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- capacity_sources Sequence[GetCompute Capacity Topologies Compute Capacity Topology Collection Item Capacity Source] 
- A capacity source of bare metal hosts.
- compartment_id str
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 capacity topology.
- state str
- The current state of the compute capacity topology.
- time_created str
- The date and time that the compute capacity topology was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- time_updated str
- The date and time that the compute capacity topology was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- capacitySources List<Property Map>
- A capacity source of bare metal hosts.
- compartmentId String
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 capacity topology.
- state String
- The current state of the compute capacity topology.
- timeCreated String
- The date and time that the compute capacity topology was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeUpdated String
- The date and time that the compute capacity topology was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
GetComputeCapacityTopologiesComputeCapacityTopologyCollectionItemCapacitySource          
- CapacityType string
- The capacity type of bare metal hosts.
- CompartmentId string
- The OCID of the compartment.
- CapacityType string
- The capacity type of bare metal hosts.
- CompartmentId string
- The OCID of the compartment.
- capacityType String
- The capacity type of bare metal hosts.
- compartmentId String
- The OCID of the compartment.
- capacityType string
- The capacity type of bare metal hosts.
- compartmentId string
- The OCID of the compartment.
- capacity_type str
- The capacity type of bare metal hosts.
- compartment_id str
- The OCID of the compartment.
- capacityType String
- The capacity type of bare metal hosts.
- compartmentId String
- The OCID of the compartment.
GetComputeCapacityTopologiesFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.