opennebula 1.5.0 published on Friday, Jun 27, 2025 by opennebula
opennebula.getVirtualNetworkAddressRange
Start a Neo task
Explain and create an opennebula.getVirtualNetworkAddressRange resource
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 dictionaryThe following arguments are supported:
- Id string
- ID of the address range.
- Virtual
Network doubleId - ID of the virtual network.
- Id string
- ID of the address range.
- Virtual
Network float64Id - ID of the virtual network.
- id String
- ID of the address range.
- virtual
Network DoubleId - ID of the virtual network.
- id string
- ID of the address range.
- virtual
Network numberId - ID of the virtual network.
- id str
- ID of the address range.
- virtual_
network_ floatid - ID of the virtual network.
- id String
- ID of the address range.
- virtual
Network NumberId - ID of the virtual network.
getVirtualNetworkAddressRange Result
The following output properties are available:
- Ar
Type string - Type of the Address Range:
IP4,IP6,IP4_6. Default isIP4. - Custom Dictionary<string, string>
- Custom attributes for the address range.
- Global
Prefix string - Global prefix for
IP6orIP4_6. - Held
Ips 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.
- Ip6Global
End string - End Global IPv6 of the allocated range.
- Ip6Ula string
- ULA IPv6 of the allocated range.
- Ip6Ula
End string - End ULA IPv6 of the allocated range.
- Mac string
- Start MAC of the allocated range.
- Mac
End string - End MAC of the allocated range.
- Size double
- Count of addresses in the IP range.
- Ula
Prefix string - ULA prefix for
IP6orIP4_6. - Virtual
Network doubleId
- Ar
Type string - Type of the Address Range:
IP4,IP6,IP4_6. Default isIP4. - Custom map[string]string
- Custom attributes for the address range.
- Global
Prefix string - Global prefix for
IP6orIP4_6. - Held
Ips []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.
- Ip6Global
End string - End Global IPv6 of the allocated range.
- Ip6Ula string
- ULA IPv6 of the allocated range.
- Ip6Ula
End string - End ULA IPv6 of the allocated range.
- Mac string
- Start MAC of the allocated range.
- Mac
End string - End MAC of the allocated range.
- Size float64
- Count of addresses in the IP range.
- Ula
Prefix string - ULA prefix for
IP6orIP4_6. - Virtual
Network float64Id
- ar
Type String - Type of the Address Range:
IP4,IP6,IP4_6. Default isIP4. - custom Map<String,String>
- Custom attributes for the address range.
- global
Prefix String - Global prefix for
IP6orIP4_6. - held
Ips 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.
- ip6Global
End String - End Global IPv6 of the allocated range.
- ip6Ula String
- ULA IPv6 of the allocated range.
- ip6Ula
End String - End ULA IPv6 of the allocated range.
- mac String
- Start MAC of the allocated range.
- mac
End String - End MAC of the allocated range.
- size Double
- Count of addresses in the IP range.
- ula
Prefix String - ULA prefix for
IP6orIP4_6. - virtual
Network DoubleId
- ar
Type string - Type of the Address Range:
IP4,IP6,IP4_6. Default isIP4. - custom {[key: string]: string}
- Custom attributes for the address range.
- global
Prefix string - Global prefix for
IP6orIP4_6. - held
Ips 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.
- ip6Global
End string - End Global IPv6 of the allocated range.
- ip6Ula string
- ULA IPv6 of the allocated range.
- ip6Ula
End string - End ULA IPv6 of the allocated range.
- mac string
- Start MAC of the allocated range.
- mac
End string - End MAC of the allocated range.
- size number
- Count of addresses in the IP range.
- ula
Prefix string - ULA prefix for
IP6orIP4_6. - virtual
Network numberId
- ar_
type str - Type of the Address Range:
IP4,IP6,IP4_6. Default isIP4. - custom Mapping[str, str]
- Custom attributes for the address range.
- global_
prefix str - Global prefix for
IP6orIP4_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_ strend - End Global IPv6 of the allocated range.
- ip6_
ula str - ULA IPv6 of the allocated range.
- ip6_
ula_ strend - 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
IP6orIP4_6. - virtual_
network_ floatid
- ar
Type String - Type of the Address Range:
IP4,IP6,IP4_6. Default isIP4. - custom Map<String>
- Custom attributes for the address range.
- global
Prefix String - Global prefix for
IP6orIP4_6. - held
Ips 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.
- ip6Global
End String - End Global IPv6 of the allocated range.
- ip6Ula String
- ULA IPv6 of the allocated range.
- ip6Ula
End String - End ULA IPv6 of the allocated range.
- mac String
- Start MAC of the allocated range.
- mac
End String - End MAC of the allocated range.
- size Number
- Count of addresses in the IP range.
- ula
Prefix String - ULA prefix for
IP6orIP4_6. - virtual
Network NumberId
Package Details
- Repository
- opennebula opennebula/terraform-provider-opennebula
- License
- Notes
- This Pulumi package is based on the
opennebulaTerraform Provider.
opennebula 1.5.0 published on Friday, Jun 27, 2025 by opennebula
