1. Packages
  2. Opennebula Provider
  3. API Docs
  4. getVirtualNetworkAddressRange
opennebula 1.5.0 published on Friday, Jun 27, 2025 by opennebula

opennebula.getVirtualNetworkAddressRange

Explore with Pulumi AI

opennebula logo
opennebula 1.5.0 published on Friday, Jun 27, 2025 by opennebula

    Use this data source to retrieve address range information for a virtual network in OpenNebula.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = opennebula.getVirtualNetworkAddressRange({
        id: "0",
        virtualNetworkId: 123,
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.get_virtual_network_address_range(id="0",
        virtual_network_id=123)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.LookupVirtualNetworkAddressRange(ctx, &opennebula.LookupVirtualNetworkAddressRangeArgs{
    			Id:               "0",
    			VirtualNetworkId: 123,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Opennebula.GetVirtualNetworkAddressRange.Invoke(new()
        {
            Id = "0",
            VirtualNetworkId = 123,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.OpennebulaFunctions;
    import com.pulumi.opennebula.inputs.GetVirtualNetworkAddressRangeArgs;
    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 example = OpennebulaFunctions.getVirtualNetworkAddressRange(GetVirtualNetworkAddressRangeArgs.builder()
                .id("0")
                .virtualNetworkId(123)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: opennebula:getVirtualNetworkAddressRange
          arguments:
            id: '0'
            virtualNetworkId: 123
    

    Using getVirtualNetworkAddressRange

    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 getVirtualNetworkAddressRange(args: GetVirtualNetworkAddressRangeArgs, opts?: InvokeOptions): Promise<GetVirtualNetworkAddressRangeResult>
    function getVirtualNetworkAddressRangeOutput(args: GetVirtualNetworkAddressRangeOutputArgs, opts?: InvokeOptions): Output<GetVirtualNetworkAddressRangeResult>
    def get_virtual_network_address_range(id: Optional[str] = None,
                                          virtual_network_id: Optional[float] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetVirtualNetworkAddressRangeResult
    def get_virtual_network_address_range_output(id: Optional[pulumi.Input[str]] = None,
                                          virtual_network_id: Optional[pulumi.Input[float]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetVirtualNetworkAddressRangeResult]
    func LookupVirtualNetworkAddressRange(ctx *Context, args *LookupVirtualNetworkAddressRangeArgs, opts ...InvokeOption) (*LookupVirtualNetworkAddressRangeResult, error)
    func LookupVirtualNetworkAddressRangeOutput(ctx *Context, args *LookupVirtualNetworkAddressRangeOutputArgs, opts ...InvokeOption) LookupVirtualNetworkAddressRangeResultOutput

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

    public static class GetVirtualNetworkAddressRange 
    {
        public static Task<GetVirtualNetworkAddressRangeResult> InvokeAsync(GetVirtualNetworkAddressRangeArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualNetworkAddressRangeResult> Invoke(GetVirtualNetworkAddressRangeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualNetworkAddressRangeResult> getVirtualNetworkAddressRange(GetVirtualNetworkAddressRangeArgs args, InvokeOptions options)
    public static Output<GetVirtualNetworkAddressRangeResult> getVirtualNetworkAddressRange(GetVirtualNetworkAddressRangeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: opennebula:index/getVirtualNetworkAddressRange:getVirtualNetworkAddressRange
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the address range.
    VirtualNetworkId double
    ID of the virtual network.
    Id string
    ID of the address range.
    VirtualNetworkId float64
    ID of the virtual network.
    id String
    ID of the address range.
    virtualNetworkId Double
    ID of the virtual network.
    id string
    ID of the address range.
    virtualNetworkId number
    ID of the virtual network.
    id str
    ID of the address range.
    virtual_network_id float
    ID of the virtual network.
    id String
    ID of the address range.
    virtualNetworkId Number
    ID of the virtual network.

    getVirtualNetworkAddressRange Result

    The following output properties are available:

    ArType string
    Type of the Address Range: IP4, IP6, IP4_6. Default is IP4.
    Custom Dictionary<string, string>
    Custom attributes for the address range.
    GlobalPrefix string
    Global prefix for IP6 or IP4_6.
    HeldIps List<string>
    List of IPs held in this address range.
    Id string
    Ip4 string
    Start IPv4 of the allocated range.
    Ip4End string
    End IPv4 of the allocated range.
    Ip6 string
    Start IPv6 of the allocated range.
    Ip6End string
    End IPv6 of the allocated range.
    Ip6Global string
    Global IPv6 of the allocated range.
    Ip6GlobalEnd string
    End Global IPv6 of the allocated range.
    Ip6Ula string
    ULA IPv6 of the allocated range.
    Ip6UlaEnd string
    End ULA IPv6 of the allocated range.
    Mac string
    Start MAC of the allocated range.
    MacEnd string
    End MAC of the allocated range.
    Size double
    Count of addresses in the IP range.
    UlaPrefix string
    ULA prefix for IP6 or IP4_6.
    VirtualNetworkId double
    ArType string
    Type of the Address Range: IP4, IP6, IP4_6. Default is IP4.
    Custom map[string]string
    Custom attributes for the address range.
    GlobalPrefix string
    Global prefix for IP6 or IP4_6.
    HeldIps []string
    List of IPs held in this address range.
    Id string
    Ip4 string
    Start IPv4 of the allocated range.
    Ip4End string
    End IPv4 of the allocated range.
    Ip6 string
    Start IPv6 of the allocated range.
    Ip6End string
    End IPv6 of the allocated range.
    Ip6Global string
    Global IPv6 of the allocated range.
    Ip6GlobalEnd string
    End Global IPv6 of the allocated range.
    Ip6Ula string
    ULA IPv6 of the allocated range.
    Ip6UlaEnd string
    End ULA IPv6 of the allocated range.
    Mac string
    Start MAC of the allocated range.
    MacEnd string
    End MAC of the allocated range.
    Size float64
    Count of addresses in the IP range.
    UlaPrefix string
    ULA prefix for IP6 or IP4_6.
    VirtualNetworkId float64
    arType String
    Type of the Address Range: IP4, IP6, IP4_6. Default is IP4.
    custom Map<String,String>
    Custom attributes for the address range.
    globalPrefix String
    Global prefix for IP6 or IP4_6.
    heldIps List<String>
    List of IPs held in this address range.
    id String
    ip4 String
    Start IPv4 of the allocated range.
    ip4End String
    End IPv4 of the allocated range.
    ip6 String
    Start IPv6 of the allocated range.
    ip6End String
    End IPv6 of the allocated range.
    ip6Global String
    Global IPv6 of the allocated range.
    ip6GlobalEnd String
    End Global IPv6 of the allocated range.
    ip6Ula String
    ULA IPv6 of the allocated range.
    ip6UlaEnd String
    End ULA IPv6 of the allocated range.
    mac String
    Start MAC of the allocated range.
    macEnd String
    End MAC of the allocated range.
    size Double
    Count of addresses in the IP range.
    ulaPrefix String
    ULA prefix for IP6 or IP4_6.
    virtualNetworkId Double
    arType string
    Type of the Address Range: IP4, IP6, IP4_6. Default is IP4.
    custom {[key: string]: string}
    Custom attributes for the address range.
    globalPrefix string
    Global prefix for IP6 or IP4_6.
    heldIps string[]
    List of IPs held in this address range.
    id string
    ip4 string
    Start IPv4 of the allocated range.
    ip4End string
    End IPv4 of the allocated range.
    ip6 string
    Start IPv6 of the allocated range.
    ip6End string
    End IPv6 of the allocated range.
    ip6Global string
    Global IPv6 of the allocated range.
    ip6GlobalEnd string
    End Global IPv6 of the allocated range.
    ip6Ula string
    ULA IPv6 of the allocated range.
    ip6UlaEnd string
    End ULA IPv6 of the allocated range.
    mac string
    Start MAC of the allocated range.
    macEnd string
    End MAC of the allocated range.
    size number
    Count of addresses in the IP range.
    ulaPrefix string
    ULA prefix for IP6 or IP4_6.
    virtualNetworkId number
    ar_type str
    Type of the Address Range: IP4, IP6, IP4_6. Default is IP4.
    custom Mapping[str, str]
    Custom attributes for the address range.
    global_prefix str
    Global prefix for IP6 or IP4_6.
    held_ips Sequence[str]
    List of IPs held in this address range.
    id str
    ip4 str
    Start IPv4 of the allocated range.
    ip4_end str
    End IPv4 of the allocated range.
    ip6 str
    Start IPv6 of the allocated range.
    ip6_end str
    End IPv6 of the allocated range.
    ip6_global str
    Global IPv6 of the allocated range.
    ip6_global_end str
    End Global IPv6 of the allocated range.
    ip6_ula str
    ULA IPv6 of the allocated range.
    ip6_ula_end str
    End ULA IPv6 of the allocated range.
    mac str
    Start MAC of the allocated range.
    mac_end str
    End MAC of the allocated range.
    size float
    Count of addresses in the IP range.
    ula_prefix str
    ULA prefix for IP6 or IP4_6.
    virtual_network_id float
    arType String
    Type of the Address Range: IP4, IP6, IP4_6. Default is IP4.
    custom Map<String>
    Custom attributes for the address range.
    globalPrefix String
    Global prefix for IP6 or IP4_6.
    heldIps List<String>
    List of IPs held in this address range.
    id String
    ip4 String
    Start IPv4 of the allocated range.
    ip4End String
    End IPv4 of the allocated range.
    ip6 String
    Start IPv6 of the allocated range.
    ip6End String
    End IPv6 of the allocated range.
    ip6Global String
    Global IPv6 of the allocated range.
    ip6GlobalEnd String
    End Global IPv6 of the allocated range.
    ip6Ula String
    ULA IPv6 of the allocated range.
    ip6UlaEnd String
    End ULA IPv6 of the allocated range.
    mac String
    Start MAC of the allocated range.
    macEnd String
    End MAC of the allocated range.
    size Number
    Count of addresses in the IP range.
    ulaPrefix String
    ULA prefix for IP6 or IP4_6.
    virtualNetworkId Number

    Package Details

    Repository
    opennebula opennebula/terraform-provider-opennebula
    License
    Notes
    This Pulumi package is based on the opennebula Terraform Provider.
    opennebula logo
    opennebula 1.5.0 published on Friday, Jun 27, 2025 by opennebula