1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityTopologyComputeNetworkBlocks
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Core.getComputeCapacityTopologyComputeNetworkBlocks

Explore with Pulumi AI

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: testComputeCapacityTopology.id,
    availabilityDomain: computeCapacityTopologyComputeNetworkBlockAvailabilityDomain,
    compartmentId: compartmentId,
    computeHpcIslandId: testComputeHpcIsland.id,
});
Copy
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=test_compute_capacity_topology["id"],
    availability_domain=compute_capacity_topology_compute_network_block_availability_domain,
    compartment_id=compartment_id,
    compute_hpc_island_id=test_compute_hpc_island["id"])
Copy
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.GetComputeCapacityTopologyComputeNetworkBlocks(ctx, &core.GetComputeCapacityTopologyComputeNetworkBlocksArgs{
			ComputeCapacityTopologyId: testComputeCapacityTopology.Id,
			AvailabilityDomain:        pulumi.StringRef(computeCapacityTopologyComputeNetworkBlockAvailabilityDomain),
			CompartmentId:             pulumi.StringRef(compartmentId),
			ComputeHpcIslandId:        pulumi.StringRef(testComputeHpcIsland.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 = testComputeCapacityTopology.Id,
        AvailabilityDomain = computeCapacityTopologyComputeNetworkBlockAvailabilityDomain,
        CompartmentId = compartmentId,
        ComputeHpcIslandId = testComputeHpcIsland.Id,
    });

});
Copy
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(testComputeCapacityTopology.id())
            .availabilityDomain(computeCapacityTopologyComputeNetworkBlockAvailabilityDomain)
            .compartmentId(compartmentId)
            .computeHpcIslandId(testComputeHpcIsland.id())
            .build());

    }
}
Copy
variables:
  testComputeCapacityTopologyComputeNetworkBlocks:
    fn::invoke:
      function: oci:Core:getComputeCapacityTopologyComputeNetworkBlocks
      arguments:
        computeCapacityTopologyId: ${testComputeCapacityTopology.id}
        availabilityDomain: ${computeCapacityTopologyComputeNetworkBlockAvailabilityDomain}
        compartmentId: ${compartmentId}
        computeHpcIslandId: ${testComputeHpcIsland.id}
Copy

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>
Copy
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]
Copy
func GetComputeCapacityTopologyComputeNetworkBlocks(ctx *Context, args *GetComputeCapacityTopologyComputeNetworkBlocksArgs, opts ...InvokeOption) (*GetComputeCapacityTopologyComputeNetworkBlocksResult, error)
func GetComputeCapacityTopologyComputeNetworkBlocksOutput(ctx *Context, args *GetComputeCapacityTopologyComputeNetworkBlocksOutputArgs, opts ...InvokeOption) GetComputeCapacityTopologyComputeNetworkBlocksResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetComputeCapacityTopologyComputeNetworkBlocksResult> getComputeCapacityTopologyComputeNetworkBlocks(GetComputeCapacityTopologyComputeNetworkBlocksArgs args, InvokeOptions options)
public static Output<GetComputeCapacityTopologyComputeNetworkBlocksResult> getComputeCapacityTopologyComputeNetworkBlocks(GetComputeCapacityTopologyComputeNetworkBlocksArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getComputeCapacityTopologyComputeNetworkBlocks:getComputeCapacityTopologyComputeNetworkBlocks
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ComputeCapacityTopologyId This property is required. 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 Changes to this property will trigger replacement. List<GetComputeCapacityTopologyComputeNetworkBlocksFilter>
ComputeCapacityTopologyId This property is required. 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 Changes to this property will trigger replacement. []GetComputeCapacityTopologyComputeNetworkBlocksFilter
computeCapacityTopologyId This property is required. 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 Changes to this property will trigger replacement. List<GetComputeCapacityTopologyComputeNetworkBlocksFilter>
computeCapacityTopologyId This property is required. 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 Changes to this property will trigger replacement. GetComputeCapacityTopologyComputeNetworkBlocksFilter[]
compute_capacity_topology_id This property is required. 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 Changes to this property will trigger replacement. Sequence[core.GetComputeCapacityTopologyComputeNetworkBlocksFilter]
computeCapacityTopologyId This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. List<GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem>
The list of compute network blocks.
Items This property is required. []GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem
The list of compute network blocks.
items This property is required. List<GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem>
The list of compute network blocks.
items This property is required. GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem[]
The list of compute network blocks.
items This property is required. List<Property Map>
The list of compute network blocks.

GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem

ComputeCapacityTopologyId This property is required. string
The OCID of the compute capacity topology.
ComputeHpcIslandId This property is required. string
The OCID of the compute HPC island.
Id This property is required. string
The OCID of the compute network block.
State This property is required. string
The current state of the compute network block.
TimeCreated This property is required. 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 This property is required. 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 This property is required. string
The total number of compute bare metal hosts located in the compute network block.
ComputeCapacityTopologyId This property is required. string
The OCID of the compute capacity topology.
ComputeHpcIslandId This property is required. string
The OCID of the compute HPC island.
Id This property is required. string
The OCID of the compute network block.
State This property is required. string
The current state of the compute network block.
TimeCreated This property is required. 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 This property is required. 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 This property is required. string
The total number of compute bare metal hosts located in the compute network block.
computeCapacityTopologyId This property is required. String
The OCID of the compute capacity topology.
computeHpcIslandId This property is required. String
The OCID of the compute HPC island.
id This property is required. String
The OCID of the compute network block.
state This property is required. String
The current state of the compute network block.
timeCreated This property is required. 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 This property is required. 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 This property is required. String
The total number of compute bare metal hosts located in the compute network block.
computeCapacityTopologyId This property is required. string
The OCID of the compute capacity topology.
computeHpcIslandId This property is required. string
The OCID of the compute HPC island.
id This property is required. string
The OCID of the compute network block.
state This property is required. string
The current state of the compute network block.
timeCreated This property is required. 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 This property is required. 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 This property is required. string
The total number of compute bare metal hosts located in the compute network block.
compute_capacity_topology_id This property is required. str
The OCID of the compute capacity topology.
compute_hpc_island_id This property is required. str
The OCID of the compute HPC island.
id This property is required. str
The OCID of the compute network block.
state This property is required. str
The current state of the compute network block.
time_created This property is required. 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 This property is required. 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 This property is required. str
The total number of compute bare metal hosts located in the compute network block.
computeCapacityTopologyId This property is required. String
The OCID of the compute capacity topology.
computeHpcIslandId This property is required. String
The OCID of the compute HPC island.
id This property is required. String
The OCID of the compute network block.
state This property is required. String
The current state of the compute network block.
timeCreated This property is required. 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 This property is required. 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 This property is required. String
The total number of compute bare metal hosts located in the compute network block.

GetComputeCapacityTopologyComputeNetworkBlocksFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. 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.