opennebula.VirtualNetworkAddressRange
Explore with Pulumi AI
Provides an OpenNebula virtual network address range resource. When applied, a new address range is added to the virtual network. When destroyed, the address range is removed from the virtual network.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
exampleVirtualNetwork:
type: opennebula:VirtualNetwork
properties:
type: bridge
bridge: onebr
mtu: 1500
gateway: 172.16.100.1
dns: 172.16.100.1
networkMask: 255.255.255.0
# deprecated
ars:
- arType: IP4
size: 15
ip4: 172.16.100.170
permissions: '642'
group: oneadmin
securityGroups:
- 0
clusters:
- 0
tags:
env: prod
customer: example
exampleVirtualNetworkAddressRange:
type: opennebula:VirtualNetworkAddressRange
properties:
virtualNetworkId: ${exampleVirtualNetwork.virtualNetworkId}
arType: IP4
mac: 02:00:ac:10:64:6e
size: 15
ip4: 172.16.100.110
holdIps:
- 172.16.100.112
- 172.16.100.114
Create VirtualNetworkAddressRange Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualNetworkAddressRange(name: string, args: VirtualNetworkAddressRangeArgs, opts?: CustomResourceOptions);
@overload
def VirtualNetworkAddressRange(resource_name: str,
args: VirtualNetworkAddressRangeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualNetworkAddressRange(resource_name: str,
opts: Optional[ResourceOptions] = None,
size: Optional[float] = None,
virtual_network_id: Optional[float] = None,
hold_ips: Optional[Sequence[str]] = None,
ar_type: Optional[str] = None,
ip4: Optional[str] = None,
ip6: Optional[str] = None,
ipam: Optional[str] = None,
mac: Optional[str] = None,
prefix_length: Optional[str] = None,
global_prefix: Optional[str] = None,
timeouts: Optional[VirtualNetworkAddressRangeTimeoutsArgs] = None,
ula_prefix: Optional[str] = None,
virtual_network_address_range_id: Optional[str] = None,
custom: Optional[Mapping[str, str]] = None)
func NewVirtualNetworkAddressRange(ctx *Context, name string, args VirtualNetworkAddressRangeArgs, opts ...ResourceOption) (*VirtualNetworkAddressRange, error)
public VirtualNetworkAddressRange(string name, VirtualNetworkAddressRangeArgs args, CustomResourceOptions? opts = null)
public VirtualNetworkAddressRange(String name, VirtualNetworkAddressRangeArgs args)
public VirtualNetworkAddressRange(String name, VirtualNetworkAddressRangeArgs args, CustomResourceOptions options)
type: opennebula:VirtualNetworkAddressRange
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VirtualNetworkAddressRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualNetworkAddressRangeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualNetworkAddressRangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualNetworkAddressRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualNetworkAddressRangeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualNetworkAddressRangeResource = new Opennebula.VirtualNetworkAddressRange("virtualNetworkAddressRangeResource", new()
{
Size = 0,
VirtualNetworkId = 0,
HoldIps = new[]
{
"string",
},
ArType = "string",
Ip4 = "string",
Ip6 = "string",
Ipam = "string",
Mac = "string",
PrefixLength = "string",
GlobalPrefix = "string",
Timeouts = new Opennebula.Inputs.VirtualNetworkAddressRangeTimeoutsArgs
{
Create = "string",
Delete = "string",
},
UlaPrefix = "string",
VirtualNetworkAddressRangeId = "string",
Custom =
{
{ "string", "string" },
},
});
example, err := opennebula.NewVirtualNetworkAddressRange(ctx, "virtualNetworkAddressRangeResource", &opennebula.VirtualNetworkAddressRangeArgs{
Size: pulumi.Float64(0),
VirtualNetworkId: pulumi.Float64(0),
HoldIps: pulumi.StringArray{
pulumi.String("string"),
},
ArType: pulumi.String("string"),
Ip4: pulumi.String("string"),
Ip6: pulumi.String("string"),
Ipam: pulumi.String("string"),
Mac: pulumi.String("string"),
PrefixLength: pulumi.String("string"),
GlobalPrefix: pulumi.String("string"),
Timeouts: &opennebula.VirtualNetworkAddressRangeTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
UlaPrefix: pulumi.String("string"),
VirtualNetworkAddressRangeId: pulumi.String("string"),
Custom: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var virtualNetworkAddressRangeResource = new VirtualNetworkAddressRange("virtualNetworkAddressRangeResource", VirtualNetworkAddressRangeArgs.builder()
.size(0)
.virtualNetworkId(0)
.holdIps("string")
.arType("string")
.ip4("string")
.ip6("string")
.ipam("string")
.mac("string")
.prefixLength("string")
.globalPrefix("string")
.timeouts(VirtualNetworkAddressRangeTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.ulaPrefix("string")
.virtualNetworkAddressRangeId("string")
.custom(Map.of("string", "string"))
.build());
virtual_network_address_range_resource = opennebula.VirtualNetworkAddressRange("virtualNetworkAddressRangeResource",
size=0,
virtual_network_id=0,
hold_ips=["string"],
ar_type="string",
ip4="string",
ip6="string",
ipam="string",
mac="string",
prefix_length="string",
global_prefix="string",
timeouts={
"create": "string",
"delete": "string",
},
ula_prefix="string",
virtual_network_address_range_id="string",
custom={
"string": "string",
})
const virtualNetworkAddressRangeResource = new opennebula.VirtualNetworkAddressRange("virtualNetworkAddressRangeResource", {
size: 0,
virtualNetworkId: 0,
holdIps: ["string"],
arType: "string",
ip4: "string",
ip6: "string",
ipam: "string",
mac: "string",
prefixLength: "string",
globalPrefix: "string",
timeouts: {
create: "string",
"delete": "string",
},
ulaPrefix: "string",
virtualNetworkAddressRangeId: "string",
custom: {
string: "string",
},
});
type: opennebula:VirtualNetworkAddressRange
properties:
arType: string
custom:
string: string
globalPrefix: string
holdIps:
- string
ip4: string
ip6: string
ipam: string
mac: string
prefixLength: string
size: 0
timeouts:
create: string
delete: string
ulaPrefix: string
virtualNetworkAddressRangeId: string
virtualNetworkId: 0
VirtualNetworkAddressRange Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualNetworkAddressRange resource accepts the following input properties:
- Size double
- Address range size.
- Virtual
Network doubleId - ID of the virtual network
- Ar
Type string - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - Custom Dictionary<string, string>
- Custom attributes to set in the address range.
- Global
Prefix string - Global prefix for
IP6
orIP_4_6
. - Hold
Ips List<string> - List of IPs to be held from this address range.
- Ip4 string
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - Ip6 string
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - Ipam string
- IPAM driver to use for the address range.
- Mac string
- Starting MAC Address of the range.
- Prefix
Length string - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- Timeouts
Virtual
Network Address Range Timeouts - Ula
Prefix string - ULA prefix for
IP6
orIP_4_6
. - Virtual
Network stringAddress Range Id
- Size float64
- Address range size.
- Virtual
Network float64Id - ID of the virtual network
- Ar
Type string - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - Custom map[string]string
- Custom attributes to set in the address range.
- Global
Prefix string - Global prefix for
IP6
orIP_4_6
. - Hold
Ips []string - List of IPs to be held from this address range.
- Ip4 string
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - Ip6 string
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - Ipam string
- IPAM driver to use for the address range.
- Mac string
- Starting MAC Address of the range.
- Prefix
Length string - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- Timeouts
Virtual
Network Address Range Timeouts Args - Ula
Prefix string - ULA prefix for
IP6
orIP_4_6
. - Virtual
Network stringAddress Range Id
- size Double
- Address range size.
- virtual
Network DoubleId - ID of the virtual network
- ar
Type String - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom Map<String,String>
- Custom attributes to set in the address range.
- global
Prefix String - Global prefix for
IP6
orIP_4_6
. - hold
Ips List<String> - List of IPs to be held from this address range.
- ip4 String
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 String
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam String
- IPAM driver to use for the address range.
- mac String
- Starting MAC Address of the range.
- prefix
Length String - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- timeouts
Virtual
Network Address Range Timeouts - ula
Prefix String - ULA prefix for
IP6
orIP_4_6
. - virtual
Network StringAddress Range Id
- size number
- Address range size.
- virtual
Network numberId - ID of the virtual network
- ar
Type string - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom {[key: string]: string}
- Custom attributes to set in the address range.
- global
Prefix string - Global prefix for
IP6
orIP_4_6
. - hold
Ips string[] - List of IPs to be held from this address range.
- ip4 string
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 string
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam string
- IPAM driver to use for the address range.
- mac string
- Starting MAC Address of the range.
- prefix
Length string - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- timeouts
Virtual
Network Address Range Timeouts - ula
Prefix string - ULA prefix for
IP6
orIP_4_6
. - virtual
Network stringAddress Range Id
- size float
- Address range size.
- virtual_
network_ floatid - ID of the virtual network
- ar_
type str - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom Mapping[str, str]
- Custom attributes to set in the address range.
- global_
prefix str - Global prefix for
IP6
orIP_4_6
. - hold_
ips Sequence[str] - List of IPs to be held from this address range.
- ip4 str
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 str
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam str
- IPAM driver to use for the address range.
- mac str
- Starting MAC Address of the range.
- prefix_
length str - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- timeouts
Virtual
Network Address Range Timeouts Args - ula_
prefix str - ULA prefix for
IP6
orIP_4_6
. - virtual_
network_ straddress_ range_ id
- size Number
- Address range size.
- virtual
Network NumberId - ID of the virtual network
- ar
Type String - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom Map<String>
- Custom attributes to set in the address range.
- global
Prefix String - Global prefix for
IP6
orIP_4_6
. - hold
Ips List<String> - List of IPs to be held from this address range.
- ip4 String
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 String
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam String
- IPAM driver to use for the address range.
- mac String
- Starting MAC Address of the range.
- prefix
Length String - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- timeouts Property Map
- ula
Prefix String - ULA prefix for
IP6
orIP_4_6
. - virtual
Network StringAddress Range Id
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualNetworkAddressRange resource produces the following output properties:
Look up Existing VirtualNetworkAddressRange Resource
Get an existing VirtualNetworkAddressRange resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VirtualNetworkAddressRangeState, opts?: CustomResourceOptions): VirtualNetworkAddressRange
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ar_type: Optional[str] = None,
custom: Optional[Mapping[str, str]] = None,
global_prefix: Optional[str] = None,
held_ips: Optional[Sequence[str]] = None,
hold_ips: Optional[Sequence[str]] = None,
ip4: Optional[str] = None,
ip6: Optional[str] = None,
ipam: Optional[str] = None,
mac: Optional[str] = None,
prefix_length: Optional[str] = None,
size: Optional[float] = None,
timeouts: Optional[VirtualNetworkAddressRangeTimeoutsArgs] = None,
ula_prefix: Optional[str] = None,
virtual_network_address_range_id: Optional[str] = None,
virtual_network_id: Optional[float] = None) -> VirtualNetworkAddressRange
func GetVirtualNetworkAddressRange(ctx *Context, name string, id IDInput, state *VirtualNetworkAddressRangeState, opts ...ResourceOption) (*VirtualNetworkAddressRange, error)
public static VirtualNetworkAddressRange Get(string name, Input<string> id, VirtualNetworkAddressRangeState? state, CustomResourceOptions? opts = null)
public static VirtualNetworkAddressRange get(String name, Output<String> id, VirtualNetworkAddressRangeState state, CustomResourceOptions options)
resources: _: type: opennebula:VirtualNetworkAddressRange get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ar
Type string - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - Custom Dictionary<string, string>
- Custom attributes to set in the address range.
- Global
Prefix string - Global prefix for
IP6
orIP_4_6
. - Held
Ips List<string> - List of IPs held in this address range, possibly from other resource.
- Hold
Ips List<string> - List of IPs to be held from this address range.
- Ip4 string
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - Ip6 string
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - Ipam string
- IPAM driver to use for the address range.
- Mac string
- Starting MAC Address of the range.
- Prefix
Length string - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- Size double
- Address range size.
- Timeouts
Virtual
Network Address Range Timeouts - Ula
Prefix string - ULA prefix for
IP6
orIP_4_6
. - Virtual
Network stringAddress Range Id - Virtual
Network doubleId - ID of the virtual network
- Ar
Type string - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - Custom map[string]string
- Custom attributes to set in the address range.
- Global
Prefix string - Global prefix for
IP6
orIP_4_6
. - Held
Ips []string - List of IPs held in this address range, possibly from other resource.
- Hold
Ips []string - List of IPs to be held from this address range.
- Ip4 string
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - Ip6 string
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - Ipam string
- IPAM driver to use for the address range.
- Mac string
- Starting MAC Address of the range.
- Prefix
Length string - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- Size float64
- Address range size.
- Timeouts
Virtual
Network Address Range Timeouts Args - Ula
Prefix string - ULA prefix for
IP6
orIP_4_6
. - Virtual
Network stringAddress Range Id - Virtual
Network float64Id - ID of the virtual network
- ar
Type String - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom Map<String,String>
- Custom attributes to set in the address range.
- global
Prefix String - Global prefix for
IP6
orIP_4_6
. - held
Ips List<String> - List of IPs held in this address range, possibly from other resource.
- hold
Ips List<String> - List of IPs to be held from this address range.
- ip4 String
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 String
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam String
- IPAM driver to use for the address range.
- mac String
- Starting MAC Address of the range.
- prefix
Length String - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- size Double
- Address range size.
- timeouts
Virtual
Network Address Range Timeouts - ula
Prefix String - ULA prefix for
IP6
orIP_4_6
. - virtual
Network StringAddress Range Id - virtual
Network DoubleId - ID of the virtual network
- ar
Type string - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom {[key: string]: string}
- Custom attributes to set in the address range.
- global
Prefix string - Global prefix for
IP6
orIP_4_6
. - held
Ips string[] - List of IPs held in this address range, possibly from other resource.
- hold
Ips string[] - List of IPs to be held from this address range.
- ip4 string
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 string
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam string
- IPAM driver to use for the address range.
- mac string
- Starting MAC Address of the range.
- prefix
Length string - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- size number
- Address range size.
- timeouts
Virtual
Network Address Range Timeouts - ula
Prefix string - ULA prefix for
IP6
orIP_4_6
. - virtual
Network stringAddress Range Id - virtual
Network numberId - ID of the virtual network
- ar_
type str - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom Mapping[str, str]
- Custom attributes to set in the address range.
- global_
prefix str - Global prefix for
IP6
orIP_4_6
. - held_
ips Sequence[str] - List of IPs held in this address range, possibly from other resource.
- hold_
ips Sequence[str] - List of IPs to be held from this address range.
- ip4 str
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 str
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam str
- IPAM driver to use for the address range.
- mac str
- Starting MAC Address of the range.
- prefix_
length str - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- size float
- Address range size.
- timeouts
Virtual
Network Address Range Timeouts Args - ula_
prefix str - ULA prefix for
IP6
orIP_4_6
. - virtual_
network_ straddress_ range_ id - virtual_
network_ floatid - ID of the virtual network
- ar
Type String - Address range type. Supported values:
IP4
,IP6
,IP6_STATIC
,IP4_6
orIP4_6_STATIC
orETHER
. Defaults toIP4
. - custom Map<String>
- Custom attributes to set in the address range.
- global
Prefix String - Global prefix for
IP6
orIP_4_6
. - held
Ips List<String> - List of IPs held in this address range, possibly from other resource.
- hold
Ips List<String> - List of IPs to be held from this address range.
- ip4 String
- Starting IPv4 address of the range. Required if
ar_type
isIP4
orIP4_6
. - ip6 String
- Starting IPv6 address of the range. Required if
ar_type
isIP6_STATIC
orIP4_6_STATIC
. - ipam String
- IPAM driver to use for the address range.
- mac String
- Starting MAC Address of the range.
- prefix
Length String - Prefix length. Only needed for
IP6_STATIC
orIP4_6_STATIC
- size Number
- Address range size.
- timeouts Property Map
- ula
Prefix String - ULA prefix for
IP6
orIP_4_6
. - virtual
Network StringAddress Range Id - virtual
Network NumberId - ID of the virtual network
Supporting Types
VirtualNetworkAddressRangeTimeouts, VirtualNetworkAddressRangeTimeoutsArgs
Import
opennebula_virtual_network_address_range
can be imported using a composed ID:
$ pulumi import opennebula:index/virtualNetworkAddressRange:VirtualNetworkAddressRange example vnet_id:ar_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opennebula opennebula/terraform-provider-opennebula
- License
- Notes
- This Pulumi package is based on the
opennebula
Terraform Provider.