1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityTopology
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.Core.getComputeCapacityTopology

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

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

    Gets information about the specified compute capacity topology.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCapacityTopology = oci.Core.getComputeCapacityTopology({
        computeCapacityTopologyId: testComputeCapacityTopologyOciCoreComputeCapacityTopology.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_capacity_topology = oci.Core.get_compute_capacity_topology(compute_capacity_topology_id=test_compute_capacity_topology_oci_core_compute_capacity_topology["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetComputeCapacityTopology(ctx, &core.GetComputeCapacityTopologyArgs{
    			ComputeCapacityTopologyId: testComputeCapacityTopologyOciCoreComputeCapacityTopology.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 testComputeCapacityTopology = Oci.Core.GetComputeCapacityTopology.Invoke(new()
        {
            ComputeCapacityTopologyId = testComputeCapacityTopologyOciCoreComputeCapacityTopology.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.GetComputeCapacityTopologyArgs;
    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 testComputeCapacityTopology = CoreFunctions.getComputeCapacityTopology(GetComputeCapacityTopologyArgs.builder()
                .computeCapacityTopologyId(testComputeCapacityTopologyOciCoreComputeCapacityTopology.id())
                .build());
    
        }
    }
    
    variables:
      testComputeCapacityTopology:
        fn::invoke:
          Function: oci:Core:getComputeCapacityTopology
          Arguments:
            computeCapacityTopologyId: ${testComputeCapacityTopologyOciCoreComputeCapacityTopology.id}
    

    Using getComputeCapacityTopology

    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 getComputeCapacityTopology(args: GetComputeCapacityTopologyArgs, opts?: InvokeOptions): Promise<GetComputeCapacityTopologyResult>
    function getComputeCapacityTopologyOutput(args: GetComputeCapacityTopologyOutputArgs, opts?: InvokeOptions): Output<GetComputeCapacityTopologyResult>
    def get_compute_capacity_topology(compute_capacity_topology_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetComputeCapacityTopologyResult
    def get_compute_capacity_topology_output(compute_capacity_topology_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetComputeCapacityTopologyResult]
    func GetComputeCapacityTopology(ctx *Context, args *GetComputeCapacityTopologyArgs, opts ...InvokeOption) (*GetComputeCapacityTopologyResult, error)
    func GetComputeCapacityTopologyOutput(ctx *Context, args *GetComputeCapacityTopologyOutputArgs, opts ...InvokeOption) GetComputeCapacityTopologyResultOutput

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

    public static class GetComputeCapacityTopology 
    {
        public static Task<GetComputeCapacityTopologyResult> InvokeAsync(GetComputeCapacityTopologyArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeCapacityTopologyResult> Invoke(GetComputeCapacityTopologyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeCapacityTopologyResult> getComputeCapacityTopology(GetComputeCapacityTopologyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getComputeCapacityTopology:getComputeCapacityTopology
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeCapacityTopologyId string
    The OCID of the compute capacity topology.
    compute_capacity_topology_id str
    The OCID of the compute capacity topology.
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.

    getComputeCapacityTopology Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
    CapacitySources List<GetComputeCapacityTopologyCapacitySource>
    A capacity source of bare metal hosts.
    CompartmentId string
    The OCID of the compartment that contains the compute capacity topology.
    ComputeCapacityTopologyId string
    DefinedTags Dictionary<string, object>
    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, object>
    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 availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
    CapacitySources []GetComputeCapacityTopologyCapacitySource
    A capacity source of bare metal hosts.
    CompartmentId string
    The OCID of the compartment that contains the compute capacity topology.
    ComputeCapacityTopologyId string
    DefinedTags map[string]interface{}
    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]interface{}
    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 availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
    capacitySources List<GetComputeCapacityTopologyCapacitySource>
    A capacity source of bare metal hosts.
    compartmentId String
    The OCID of the compartment that contains the compute capacity topology.
    computeCapacityTopologyId String
    definedTags Map<String,Object>
    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,Object>
    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 availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
    capacitySources GetComputeCapacityTopologyCapacitySource[]
    A capacity source of bare metal hosts.
    compartmentId string
    The OCID of the compartment that contains the compute capacity topology.
    computeCapacityTopologyId string
    definedTags {[key: string]: any}
    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]: any}
    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 availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
    capacity_sources Sequence[core.GetComputeCapacityTopologyCapacitySource]
    A capacity source of bare metal hosts.
    compartment_id str
    The OCID of the compartment that contains the compute capacity topology.
    compute_capacity_topology_id str
    defined_tags Mapping[str, Any]
    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, Any]
    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 availability domain of the compute capacity topology. Example: Uocm:US-CHICAGO-1-AD-2
    capacitySources List<Property Map>
    A capacity source of bare metal hosts.
    compartmentId String
    The OCID of the compartment that contains the compute capacity topology.
    computeCapacityTopologyId String
    definedTags Map<Any>
    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<Any>
    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

    Supporting Types

    GetComputeCapacityTopologyCapacitySource

    CapacityType string
    The capacity type of bare metal hosts.
    CompartmentId string
    The OCID of the compartment that contains the compute capacity topology.
    CapacityType string
    The capacity type of bare metal hosts.
    CompartmentId string
    The OCID of the compartment that contains the compute capacity topology.
    capacityType String
    The capacity type of bare metal hosts.
    compartmentId String
    The OCID of the compartment that contains the compute capacity topology.
    capacityType string
    The capacity type of bare metal hosts.
    compartmentId string
    The OCID of the compartment that contains the compute capacity topology.
    capacity_type str
    The capacity type of bare metal hosts.
    compartment_id str
    The OCID of the compartment that contains the compute capacity topology.
    capacityType String
    The capacity type of bare metal hosts.
    compartmentId String
    The OCID of the compartment that contains the compute capacity topology.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi