1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityTopologyComputeNetworkBlocks
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.getComputeCapacityTopologyComputeNetworkBlocks

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides the list of Compute Capacity Topology Compute Network Blocks in Oracle Cloud Infrastructure Core service.

    Lists compute network blocks in the specified compute capacity topology.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCapacityTopologyComputeNetworkBlocks = oci.Core.getComputeCapacityTopologyComputeNetworkBlocks({
        computeCapacityTopologyId: oci_core_compute_capacity_topology.test_compute_capacity_topology.id,
        availabilityDomain: _var.compute_capacity_topology_compute_network_block_availability_domain,
        compartmentId: _var.compartment_id,
        computeHpcIslandId: oci_core_compute_hpc_island.test_compute_hpc_island.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_capacity_topology_compute_network_blocks = oci.Core.get_compute_capacity_topology_compute_network_blocks(compute_capacity_topology_id=oci_core_compute_capacity_topology["test_compute_capacity_topology"]["id"],
        availability_domain=var["compute_capacity_topology_compute_network_block_availability_domain"],
        compartment_id=var["compartment_id"],
        compute_hpc_island_id=oci_core_compute_hpc_island["test_compute_hpc_island"]["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.GetComputeCapacityTopologyComputeNetworkBlocks(ctx, &core.GetComputeCapacityTopologyComputeNetworkBlocksArgs{
    			ComputeCapacityTopologyId: oci_core_compute_capacity_topology.Test_compute_capacity_topology.Id,
    			AvailabilityDomain:        pulumi.StringRef(_var.Compute_capacity_topology_compute_network_block_availability_domain),
    			CompartmentId:             pulumi.StringRef(_var.Compartment_id),
    			ComputeHpcIslandId:        pulumi.StringRef(oci_core_compute_hpc_island.Test_compute_hpc_island.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 testComputeCapacityTopologyComputeNetworkBlocks = Oci.Core.GetComputeCapacityTopologyComputeNetworkBlocks.Invoke(new()
        {
            ComputeCapacityTopologyId = oci_core_compute_capacity_topology.Test_compute_capacity_topology.Id,
            AvailabilityDomain = @var.Compute_capacity_topology_compute_network_block_availability_domain,
            CompartmentId = @var.Compartment_id,
            ComputeHpcIslandId = oci_core_compute_hpc_island.Test_compute_hpc_island.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.GetComputeCapacityTopologyComputeNetworkBlocksArgs;
    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 testComputeCapacityTopologyComputeNetworkBlocks = CoreFunctions.getComputeCapacityTopologyComputeNetworkBlocks(GetComputeCapacityTopologyComputeNetworkBlocksArgs.builder()
                .computeCapacityTopologyId(oci_core_compute_capacity_topology.test_compute_capacity_topology().id())
                .availabilityDomain(var_.compute_capacity_topology_compute_network_block_availability_domain())
                .compartmentId(var_.compartment_id())
                .computeHpcIslandId(oci_core_compute_hpc_island.test_compute_hpc_island().id())
                .build());
    
        }
    }
    
    variables:
      testComputeCapacityTopologyComputeNetworkBlocks:
        fn::invoke:
          Function: oci:Core:getComputeCapacityTopologyComputeNetworkBlocks
          Arguments:
            computeCapacityTopologyId: ${oci_core_compute_capacity_topology.test_compute_capacity_topology.id}
            availabilityDomain: ${var.compute_capacity_topology_compute_network_block_availability_domain}
            compartmentId: ${var.compartment_id}
            computeHpcIslandId: ${oci_core_compute_hpc_island.test_compute_hpc_island.id}
    

    Using getComputeCapacityTopologyComputeNetworkBlocks

    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 getComputeCapacityTopologyComputeNetworkBlocks(args: GetComputeCapacityTopologyComputeNetworkBlocksArgs, opts?: InvokeOptions): Promise<GetComputeCapacityTopologyComputeNetworkBlocksResult>
    function getComputeCapacityTopologyComputeNetworkBlocksOutput(args: GetComputeCapacityTopologyComputeNetworkBlocksOutputArgs, opts?: InvokeOptions): Output<GetComputeCapacityTopologyComputeNetworkBlocksResult>
    def get_compute_capacity_topology_compute_network_blocks(availability_domain: Optional[str] = None,
                                                             compartment_id: Optional[str] = None,
                                                             compute_capacity_topology_id: Optional[str] = None,
                                                             compute_hpc_island_id: Optional[str] = None,
                                                             filters: Optional[Sequence[_core.GetComputeCapacityTopologyComputeNetworkBlocksFilter]] = None,
                                                             opts: Optional[InvokeOptions] = None) -> GetComputeCapacityTopologyComputeNetworkBlocksResult
    def get_compute_capacity_topology_compute_network_blocks_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,
                                                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetComputeCapacityTopologyComputeNetworkBlocksFilterArgs]]]] = None,
                                                             opts: Optional[InvokeOptions] = None) -> Output[GetComputeCapacityTopologyComputeNetworkBlocksResult]
    func GetComputeCapacityTopologyComputeNetworkBlocks(ctx *Context, args *GetComputeCapacityTopologyComputeNetworkBlocksArgs, opts ...InvokeOption) (*GetComputeCapacityTopologyComputeNetworkBlocksResult, error)
    func GetComputeCapacityTopologyComputeNetworkBlocksOutput(ctx *Context, args *GetComputeCapacityTopologyComputeNetworkBlocksOutputArgs, opts ...InvokeOption) GetComputeCapacityTopologyComputeNetworkBlocksResultOutput

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

    public static class GetComputeCapacityTopologyComputeNetworkBlocks 
    {
        public static Task<GetComputeCapacityTopologyComputeNetworkBlocksResult> InvokeAsync(GetComputeCapacityTopologyComputeNetworkBlocksArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeCapacityTopologyComputeNetworkBlocksResult> Invoke(GetComputeCapacityTopologyComputeNetworkBlocksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeCapacityTopologyComputeNetworkBlocksResult> getComputeCapacityTopologyComputeNetworkBlocks(GetComputeCapacityTopologyComputeNetworkBlocksArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getComputeCapacityTopologyComputeNetworkBlocks:getComputeCapacityTopologyComputeNetworkBlocks
      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.
    Filters List<GetComputeCapacityTopologyComputeNetworkBlocksFilter>
    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.
    Filters []GetComputeCapacityTopologyComputeNetworkBlocksFilter
    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.
    filters List<GetComputeCapacityTopologyComputeNetworkBlocksFilter>
    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.
    filters GetComputeCapacityTopologyComputeNetworkBlocksFilter[]
    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.
    filters Sequence[core.GetComputeCapacityTopologyComputeNetworkBlocksFilter]
    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.
    filters List<Property Map>

    getComputeCapacityTopologyComputeNetworkBlocks Result

    The following output properties are available:

    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeNetworkBlockCollections List<GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection>
    The list of compute_network_block_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailabilityDomain string
    CompartmentId string
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    Filters List<GetComputeCapacityTopologyComputeNetworkBlocksFilter>
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeNetworkBlockCollections []GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection
    The list of compute_network_block_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailabilityDomain string
    CompartmentId string
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    Filters []GetComputeCapacityTopologyComputeNetworkBlocksFilter
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeNetworkBlockCollections List<GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection>
    The list of compute_network_block_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    availabilityDomain String
    compartmentId String
    computeHpcIslandId String
    The OCID of the compute HPC island.
    filters List<GetComputeCapacityTopologyComputeNetworkBlocksFilter>
    computeCapacityTopologyId string
    The OCID of the compute capacity topology.
    computeNetworkBlockCollections GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection[]
    The list of compute_network_block_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    availabilityDomain string
    compartmentId string
    computeHpcIslandId string
    The OCID of the compute HPC island.
    filters GetComputeCapacityTopologyComputeNetworkBlocksFilter[]
    compute_capacity_topology_id str
    The OCID of the compute capacity topology.
    compute_network_block_collections Sequence[core.GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection]
    The list of compute_network_block_collection.
    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.
    filters Sequence[core.GetComputeCapacityTopologyComputeNetworkBlocksFilter]
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeNetworkBlockCollections List<Property Map>
    The list of compute_network_block_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    availabilityDomain String
    compartmentId String
    computeHpcIslandId String
    The OCID of the compute HPC island.
    filters List<Property Map>

    Supporting Types

    GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection

    items List<Property Map>
    The list of compute network blocks.

    GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem

    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    Id string
    The OCID of the compute network block.
    State string
    The current state of the compute network block.
    TimeCreated string
    The date and time that the compute network block was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time that the compute network block was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TotalComputeBareMetalHostCount string
    The total number of compute bare metal hosts located in the compute network block.
    ComputeCapacityTopologyId string
    The OCID of the compute capacity topology.
    ComputeHpcIslandId string
    The OCID of the compute HPC island.
    Id string
    The OCID of the compute network block.
    State string
    The current state of the compute network block.
    TimeCreated string
    The date and time that the compute network block was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time that the compute network block was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TotalComputeBareMetalHostCount string
    The total number of compute bare metal hosts located in the compute network block.
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeHpcIslandId String
    The OCID of the compute HPC island.
    id String
    The OCID of the compute network block.
    state String
    The current state of the compute network block.
    timeCreated String
    The date and time that the compute network block was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time that the compute network block was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    totalComputeBareMetalHostCount String
    The total number of compute bare metal hosts located in the compute network block.
    computeCapacityTopologyId string
    The OCID of the compute capacity topology.
    computeHpcIslandId string
    The OCID of the compute HPC island.
    id string
    The OCID of the compute network block.
    state string
    The current state of the compute network block.
    timeCreated string
    The date and time that the compute network block was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time that the compute network block was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    totalComputeBareMetalHostCount string
    The total number of compute bare metal hosts located in the compute network block.
    compute_capacity_topology_id str
    The OCID of the compute capacity topology.
    compute_hpc_island_id str
    The OCID of the compute HPC island.
    id str
    The OCID of the compute network block.
    state str
    The current state of the compute network block.
    time_created str
    The date and time that the compute network block 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 network block was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    total_compute_bare_metal_host_count str
    The total number of compute bare metal hosts located in the compute network block.
    computeCapacityTopologyId String
    The OCID of the compute capacity topology.
    computeHpcIslandId String
    The OCID of the compute HPC island.
    id String
    The OCID of the compute network block.
    state String
    The current state of the compute network block.
    timeCreated String
    The date and time that the compute network block was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time that the compute network block was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    totalComputeBareMetalHostCount String
    The total number of compute bare metal hosts located in the compute network block.

    GetComputeCapacityTopologyComputeNetworkBlocksFilter

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi