Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
});
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"])
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
})
}
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,
});
});
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());
}
}
variables:
testComputeCapacityTopologyComputeNetworkBlocks:
fn::invoke:
Function: oci:Core:getComputeCapacityTopologyComputeNetworkBlocks
Arguments:
computeCapacityTopologyId: ${testComputeCapacityTopology.id}
availabilityDomain: ${computeCapacityTopologyComputeNetworkBlockAvailabilityDomain}
compartmentId: ${compartmentId}
computeHpcIslandId: ${testComputeHpcIsland.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:
- Compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment.
- Compute
Hpc stringIsland Id - The OCID of the compute HPC island.
- Filters
List<Get
Compute Capacity Topology Compute Network Blocks Filter>
- Compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment.
- Compute
Hpc stringIsland Id - The OCID of the compute HPC island.
- Filters
[]Get
Compute Capacity Topology Compute Network Blocks Filter
- compute
Capacity StringTopology Id - The OCID of the compute capacity topology.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment.
- compute
Hpc StringIsland Id - The OCID of the compute HPC island.
- filters
List<Get
Compute Capacity Topology Compute Network Blocks Filter>
- compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment.
- compute
Hpc stringIsland Id - The OCID of the compute HPC island.
- filters
Get
Compute Capacity Topology Compute Network Blocks Filter[]
- compute_
capacity_ strtopology_ id - 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_ strisland_ id - The OCID of the compute HPC island.
- filters
Sequence[core.
Get Compute Capacity Topology Compute Network Blocks Filter]
- compute
Capacity StringTopology Id - The OCID of the compute capacity topology.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment.
- compute
Hpc StringIsland Id - The OCID of the compute HPC island.
- filters List<Property Map>
getComputeCapacityTopologyComputeNetworkBlocks Result
The following output properties are available:
- Compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- Compute
Network List<GetBlock Collections Compute Capacity Topology Compute Network Blocks Compute Network Block Collection> - The list of compute_network_block_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - Compartment
Id string - Compute
Hpc stringIsland Id - The OCID of the compute HPC island.
- Filters
List<Get
Compute Capacity Topology Compute Network Blocks Filter>
- Compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- Compute
Network []GetBlock Collections Compute Capacity Topology Compute Network Blocks Compute Network Block Collection - The list of compute_network_block_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - Compartment
Id string - Compute
Hpc stringIsland Id - The OCID of the compute HPC island.
- Filters
[]Get
Compute Capacity Topology Compute Network Blocks Filter
- compute
Capacity StringTopology Id - The OCID of the compute capacity topology.
- compute
Network List<GetBlock Collections Compute Capacity Topology Compute Network Blocks Compute Network Block Collection> - The list of compute_network_block_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - compartment
Id String - compute
Hpc StringIsland Id - The OCID of the compute HPC island.
- filters
List<Get
Compute Capacity Topology Compute Network Blocks Filter>
- compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- compute
Network GetBlock Collections Compute Capacity Topology Compute Network Blocks Compute Network Block Collection[] - The list of compute_network_block_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- availability
Domain string - compartment
Id string - compute
Hpc stringIsland Id - The OCID of the compute HPC island.
- filters
Get
Compute Capacity Topology Compute Network Blocks Filter[]
- compute_
capacity_ strtopology_ id - The OCID of the compute capacity topology.
- compute_
network_ Sequence[core.block_ collections Get Compute Capacity Topology Compute Network Blocks Compute Network Block Collection] - 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_ strisland_ id - The OCID of the compute HPC island.
- filters
Sequence[core.
Get Compute Capacity Topology Compute Network Blocks Filter]
- compute
Capacity StringTopology Id - The OCID of the compute capacity topology.
- compute
Network List<Property Map>Block Collections - The list of compute_network_block_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - compartment
Id String - compute
Hpc StringIsland Id - The OCID of the compute HPC island.
- filters List<Property Map>
Supporting Types
GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollection
- Items
List<Get
Compute Capacity Topology Compute Network Blocks Compute Network Block Collection Item> - The list of compute network blocks.
- Items
[]Get
Compute Capacity Topology Compute Network Blocks Compute Network Block Collection Item - The list of compute network blocks.
- items
List<Get
Compute Capacity Topology Compute Network Blocks Compute Network Block Collection Item> - The list of compute network blocks.
- items
Get
Compute Capacity Topology Compute Network Blocks Compute Network Block Collection Item[] - The list of compute network blocks.
- items
Sequence[core.
Get Compute Capacity Topology Compute Network Blocks Compute Network Block Collection Item] - The list of compute network blocks.
- items List<Property Map>
- The list of compute network blocks.
GetComputeCapacityTopologyComputeNetworkBlocksComputeNetworkBlockCollectionItem
- Compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- Compute
Hpc stringIsland Id - 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.
- Time
Created 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
- Time
Updated 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
- Total
Compute stringBare Metal Host Count - The total number of compute bare metal hosts located in the compute network block.
- Compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- Compute
Hpc stringIsland Id - 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.
- Time
Created 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
- Time
Updated 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
- Total
Compute stringBare Metal Host Count - The total number of compute bare metal hosts located in the compute network block.
- compute
Capacity StringTopology Id - The OCID of the compute capacity topology.
- compute
Hpc StringIsland Id - 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.
- time
Created 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
- time
Updated 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
- total
Compute StringBare Metal Host Count - The total number of compute bare metal hosts located in the compute network block.
- compute
Capacity stringTopology Id - The OCID of the compute capacity topology.
- compute
Hpc stringIsland Id - 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.
- time
Created 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
- time
Updated 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
- total
Compute stringBare Metal Host Count - The total number of compute bare metal hosts located in the compute network block.
- compute_
capacity_ strtopology_ id - The OCID of the compute capacity topology.
- compute_
hpc_ strisland_ id - 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_ strbare_ metal_ host_ count - The total number of compute bare metal hosts located in the compute network block.
- compute
Capacity StringTopology Id - The OCID of the compute capacity topology.
- compute
Hpc StringIsland Id - 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.
- time
Created 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
- time
Updated 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
- total
Compute StringBare Metal Host Count - The total number of compute bare metal hosts located in the compute network block.
GetComputeCapacityTopologyComputeNetworkBlocksFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.