1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityTopologyComputeBareMetalHosts
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Core.getComputeCapacityTopologyComputeBareMetalHosts

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Compute Capacity Topology Compute Bare Metal Hosts in Oracle Cloud Infrastructure Core service.

    Lists compute bare metal hosts in the specified compute capacity topology.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCapacityTopologyComputeBareMetalHosts = oci.Core.getComputeCapacityTopologyComputeBareMetalHosts({
        computeCapacityTopologyId: testComputeCapacityTopology.id,
        availabilityDomain: computeCapacityTopologyComputeBareMetalHostAvailabilityDomain,
        compartmentId: compartmentId,
        computeHpcIslandId: testComputeHpcIsland.id,
        computeLocalBlockId: testComputeLocalBlock.id,
        computeNetworkBlockId: testComputeNetworkBlock.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_capacity_topology_compute_bare_metal_hosts = oci.Core.get_compute_capacity_topology_compute_bare_metal_hosts(compute_capacity_topology_id=test_compute_capacity_topology["id"],
        availability_domain=compute_capacity_topology_compute_bare_metal_host_availability_domain,
        compartment_id=compartment_id,
        compute_hpc_island_id=test_compute_hpc_island["id"],
        compute_local_block_id=test_compute_local_block["id"],
        compute_network_block_id=test_compute_network_block["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.GetComputeCapacityTopologyComputeBareMetalHosts(ctx, &core.GetComputeCapacityTopologyComputeBareMetalHostsArgs{
    			ComputeCapacityTopologyId: testComputeCapacityTopology.Id,
    			AvailabilityDomain:        pulumi.StringRef(computeCapacityTopologyComputeBareMetalHostAvailabilityDomain),
    			CompartmentId:             pulumi.StringRef(compartmentId),
    			ComputeHpcIslandId:        pulumi.StringRef(testComputeHpcIsland.Id),
    			ComputeLocalBlockId:       pulumi.StringRef(testComputeLocalBlock.Id),
    			ComputeNetworkBlockId:     pulumi.StringRef(testComputeNetworkBlock.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 testComputeCapacityTopologyComputeBareMetalHosts = Oci.Core.GetComputeCapacityTopologyComputeBareMetalHosts.Invoke(new()
        {
            ComputeCapacityTopologyId = testComputeCapacityTopology.Id,
            AvailabilityDomain = computeCapacityTopologyComputeBareMetalHostAvailabilityDomain,
            CompartmentId = compartmentId,
            ComputeHpcIslandId = testComputeHpcIsland.Id,
            ComputeLocalBlockId = testComputeLocalBlock.Id,
            ComputeNetworkBlockId = testComputeNetworkBlock.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.GetComputeCapacityTopologyComputeBareMetalHostsArgs;
    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 testComputeCapacityTopologyComputeBareMetalHosts = CoreFunctions.getComputeCapacityTopologyComputeBareMetalHosts(GetComputeCapacityTopologyComputeBareMetalHostsArgs.builder()
                .computeCapacityTopologyId(testComputeCapacityTopology.id())
                .availabilityDomain(computeCapacityTopologyComputeBareMetalHostAvailabilityDomain)
                .compartmentId(compartmentId)
                .computeHpcIslandId(testComputeHpcIsland.id())
                .computeLocalBlockId(testComputeLocalBlock.id())
                .computeNetworkBlockId(testComputeNetworkBlock.id())
                .build());
    
        }
    }
    
    variables:
      testComputeCapacityTopologyComputeBareMetalHosts:
        fn::invoke:
          Function: oci:Core:getComputeCapacityTopologyComputeBareMetalHosts
          Arguments:
            computeCapacityTopologyId: ${testComputeCapacityTopology.id}
            availabilityDomain: ${computeCapacityTopologyComputeBareMetalHostAvailabilityDomain}
            compartmentId: ${compartmentId}
            computeHpcIslandId: ${testComputeHpcIsland.id}
            computeLocalBlockId: ${testComputeLocalBlock.id}
            computeNetworkBlockId: ${testComputeNetworkBlock.id}
    

    Using getComputeCapacityTopologyComputeBareMetalHosts

    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 getComputeCapacityTopologyComputeBareMetalHosts(args: GetComputeCapacityTopologyComputeBareMetalHostsArgs, opts?: InvokeOptions): Promise<GetComputeCapacityTopologyComputeBareMetalHostsResult>
    function getComputeCapacityTopologyComputeBareMetalHostsOutput(args: GetComputeCapacityTopologyComputeBareMetalHostsOutputArgs, opts?: InvokeOptions): Output<GetComputeCapacityTopologyComputeBareMetalHostsResult>
    def get_compute_capacity_topology_compute_bare_metal_hosts(availability_domain: Optional[str] = None,
                                                               compartment_id: Optional[str] = None,
                                                               compute_capacity_topology_id: Optional[str] = None,
                                                               compute_hpc_island_id: Optional[str] = None,
                                                               compute_local_block_id: Optional[str] = None,
                                                               compute_network_block_id: Optional[str] = None,
                                                               filters: Optional[Sequence[_core.GetComputeCapacityTopologyComputeBareMetalHostsFilter]] = None,
                                                               opts: Optional[InvokeOptions] = None) -> GetComputeCapacityTopologyComputeBareMetalHostsResult
    def get_compute_capacity_topology_compute_bare_metal_hosts_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                                               compartment_id: Optional[pulumi.Input[str]] = None,
                                                               compute_capacity_topology_id: Optional[pulumi.Input[str]] = None,
                                                               compute_hpc_island_id: Optional[pulumi.Input[str]] = None,
                                                               compute_local_block_id: Optional[pulumi.Input[str]] = None,
                                                               compute_network_block_id: Optional[pulumi.Input[str]] = None,
                                                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetComputeCapacityTopologyComputeBareMetalHostsFilterArgs]]]] = None,
                                                               opts: Optional[InvokeOptions] = None) -> Output[GetComputeCapacityTopologyComputeBareMetalHostsResult]
    func GetComputeCapacityTopologyComputeBareMetalHosts(ctx *Context, args *GetComputeCapacityTopologyComputeBareMetalHostsArgs, opts ...InvokeOption) (*GetComputeCapacityTopologyComputeBareMetalHostsResult, error)
    func GetComputeCapacityTopologyComputeBareMetalHostsOutput(ctx *Context, args *GetComputeCapacityTopologyComputeBareMetalHostsOutputArgs, opts ...InvokeOption) GetComputeCapacityTopologyComputeBareMetalHostsResultOutput

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

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

    The following arguments are supported:

    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    AvailabilityDomain string
    The name of the availability domain. Example: Uocm:PHX-AD-1
    CompartmentId string
    The OCID of the compartment.
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    ComputeLocalBlockId string
    The OCID of the compute local block.
    ComputeNetworkBlockId string
    The OCID of the compute network block.
    Filters List<GetComputeCapacityTopologyComputeBareMetalHostsFilter>
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    AvailabilityDomain string
    The name of the availability domain. Example: Uocm:PHX-AD-1
    CompartmentId string
    The OCID of the compartment.
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    ComputeLocalBlockId string
    The OCID of the compute local block.
    ComputeNetworkBlockId string
    The OCID of the compute network block.
    Filters []GetComputeCapacityTopologyComputeBareMetalHostsFilter
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    availabilityDomain String
    The name of the availability domain. Example: Uocm:PHX-AD-1
    compartmentId String
    The OCID of the compartment.
    computeHpcIslandId String
    The OCID of the compute HPC island.
    computeLocalBlockId String
    The OCID of the compute local block.
    computeNetworkBlockId String
    The OCID of the compute network block.
    filters List<GetComputeCapacityTopologyComputeBareMetalHostsFilter>
    computeCapacityTopologyId string
    The OCID of the compute capacity topology.
    availabilityDomain string
    The name of the availability domain. Example: Uocm:PHX-AD-1
    compartmentId string
    The OCID of the compartment.
    computeHpcIslandId string
    The OCID of the compute HPC island.
    computeLocalBlockId string
    The OCID of the compute local block.
    computeNetworkBlockId string
    The OCID of the compute network block.
    filters GetComputeCapacityTopologyComputeBareMetalHostsFilter[]
    compute_capacity_topology_id str
    The OCID of the compute capacity topology.
    availability_domain str
    The name of the availability domain. Example: Uocm:PHX-AD-1
    compartment_id str
    The OCID of the compartment.
    compute_hpc_island_id str
    The OCID of the compute HPC island.
    compute_local_block_id str
    The OCID of the compute local block.
    compute_network_block_id str
    The OCID of the compute network block.
    filters Sequence[core.GetComputeCapacityTopologyComputeBareMetalHostsFilter]
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    availabilityDomain String
    The name of the availability domain. Example: Uocm:PHX-AD-1
    compartmentId String
    The OCID of the compartment.
    computeHpcIslandId String
    The OCID of the compute HPC island.
    computeLocalBlockId String
    The OCID of the compute local block.
    computeNetworkBlockId String
    The OCID of the compute network block.
    filters List<Property Map>

    getComputeCapacityTopologyComputeBareMetalHosts Result

    The following output properties are available:

    ComputeBareMetalHostCollections List<GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollection>
    The list of compute_bare_metal_host_collection.
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailabilityDomain string
    CompartmentId string
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    ComputeLocalBlockId string
    The OCID of the compute network block.
    ComputeNetworkBlockId string
    The OCID of the compute local block.
    Filters List<GetComputeCapacityTopologyComputeBareMetalHostsFilter>
    ComputeBareMetalHostCollections []GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollection
    The list of compute_bare_metal_host_collection.
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailabilityDomain string
    CompartmentId string
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    ComputeLocalBlockId string
    The OCID of the compute network block.
    ComputeNetworkBlockId string
    The OCID of the compute local block.
    Filters []GetComputeCapacityTopologyComputeBareMetalHostsFilter
    computeBareMetalHostCollections List<GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollection>
    The list of compute_bare_metal_host_collection.
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    id String
    The provider-assigned unique ID for this managed resource.
    availabilityDomain String
    compartmentId String
    computeHpcIslandId String
    The OCID of the compute HPC island.
    computeLocalBlockId String
    The OCID of the compute network block.
    computeNetworkBlockId String
    The OCID of the compute local block.
    filters List<GetComputeCapacityTopologyComputeBareMetalHostsFilter>
    computeBareMetalHostCollections GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollection[]
    The list of compute_bare_metal_host_collection.
    computeCapacityTopologyId string
    The OCID of the compute capacity topology.
    id string
    The provider-assigned unique ID for this managed resource.
    availabilityDomain string
    compartmentId string
    computeHpcIslandId string
    The OCID of the compute HPC island.
    computeLocalBlockId string
    The OCID of the compute network block.
    computeNetworkBlockId string
    The OCID of the compute local block.
    filters GetComputeCapacityTopologyComputeBareMetalHostsFilter[]
    compute_bare_metal_host_collections Sequence[core.GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollection]
    The list of compute_bare_metal_host_collection.
    compute_capacity_topology_id str
    The OCID of the compute capacity topology.
    id str
    The provider-assigned unique ID for this managed resource.
    availability_domain str
    compartment_id str
    compute_hpc_island_id str
    The OCID of the compute HPC island.
    compute_local_block_id str
    The OCID of the compute network block.
    compute_network_block_id str
    The OCID of the compute local block.
    filters Sequence[core.GetComputeCapacityTopologyComputeBareMetalHostsFilter]
    computeBareMetalHostCollections List<Property Map>
    The list of compute_bare_metal_host_collection.
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    id String
    The provider-assigned unique ID for this managed resource.
    availabilityDomain String
    compartmentId String
    computeHpcIslandId String
    The OCID of the compute HPC island.
    computeLocalBlockId String
    The OCID of the compute network block.
    computeNetworkBlockId String
    The OCID of the compute local block.
    filters List<Property Map>

    Supporting Types

    GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollection

    items List<Property Map>
    The list of compute bare metal hosts.

    GetComputeCapacityTopologyComputeBareMetalHostsComputeBareMetalHostCollectionItem

    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    ComputeLocalBlockId string
    The OCID of the compute local block.
    ComputeNetworkBlockId string
    The OCID of the compute network block.
    Id string
    The OCID of the compute bare metal host.
    InstanceId string
    The OCID of the compute instance that runs on the compute bare metal host.
    InstanceShape string
    The shape of the compute instance that runs on the compute bare metal host.
    LifecycleDetails string
    The lifecycle state details of the compute bare metal host.
    State string
    The current state of the compute bare metal host.
    TimeCreated string
    The date and time that the compute bare metal host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time that the compute bare metal host was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    ComputeLocalBlockId string
    The OCID of the compute local block.
    ComputeNetworkBlockId string
    The OCID of the compute network block.
    Id string
    The OCID of the compute bare metal host.
    InstanceId string
    The OCID of the compute instance that runs on the compute bare metal host.
    InstanceShape string
    The shape of the compute instance that runs on the compute bare metal host.
    LifecycleDetails string
    The lifecycle state details of the compute bare metal host.
    State string
    The current state of the compute bare metal host.
    TimeCreated string
    The date and time that the compute bare metal host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time that the compute bare metal host was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeHpcIslandId String
    The OCID of the compute HPC island.
    computeLocalBlockId String
    The OCID of the compute local block.
    computeNetworkBlockId String
    The OCID of the compute network block.
    id String
    The OCID of the compute bare metal host.
    instanceId String
    The OCID of the compute instance that runs on the compute bare metal host.
    instanceShape String
    The shape of the compute instance that runs on the compute bare metal host.
    lifecycleDetails String
    The lifecycle state details of the compute bare metal host.
    state String
    The current state of the compute bare metal host.
    timeCreated String
    The date and time that the compute bare metal host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time that the compute bare metal host was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    computeCapacityTopologyId string
    The OCID of the compute capacity topology.
    computeHpcIslandId string
    The OCID of the compute HPC island.
    computeLocalBlockId string
    The OCID of the compute local block.
    computeNetworkBlockId string
    The OCID of the compute network block.
    id string
    The OCID of the compute bare metal host.
    instanceId string
    The OCID of the compute instance that runs on the compute bare metal host.
    instanceShape string
    The shape of the compute instance that runs on the compute bare metal host.
    lifecycleDetails string
    The lifecycle state details of the compute bare metal host.
    state string
    The current state of the compute bare metal host.
    timeCreated string
    The date and time that the compute bare metal host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time that the compute bare metal host was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compute_capacity_topology_id str
    The OCID of the compute capacity topology.
    compute_hpc_island_id str
    The OCID of the compute HPC island.
    compute_local_block_id str
    The OCID of the compute local block.
    compute_network_block_id str
    The OCID of the compute network block.
    id str
    The OCID of the compute bare metal host.
    instance_id str
    The OCID of the compute instance that runs on the compute bare metal host.
    instance_shape str
    The shape of the compute instance that runs on the compute bare metal host.
    lifecycle_details str
    The lifecycle state details of the compute bare metal host.
    state str
    The current state of the compute bare metal host.
    time_created str
    The date and time that the compute bare metal host 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 bare metal host was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeHpcIslandId String
    The OCID of the compute HPC island.
    computeLocalBlockId String
    The OCID of the compute local block.
    computeNetworkBlockId String
    The OCID of the compute network block.
    id String
    The OCID of the compute bare metal host.
    instanceId String
    The OCID of the compute instance that runs on the compute bare metal host.
    instanceShape String
    The shape of the compute instance that runs on the compute bare metal host.
    lifecycleDetails String
    The lifecycle state details of the compute bare metal host.
    state String
    The current state of the compute bare metal host.
    timeCreated String
    The date and time that the compute bare metal host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time that the compute bare metal host was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    GetComputeCapacityTopologyComputeBareMetalHostsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.41.0 published on Wednesday, Jun 19, 2024 by Pulumi