azure-native.network.IpAllocation
Explore with Pulumi AI
IpAllocation resource. API Version: 2020-11-01.
Example Usage
Create IpAllocation
using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ipAllocation = new AzureNative.Network.IpAllocation("ipAllocation", new()
{
AllocationTags =
{
{ "VNetID", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" },
},
IpAllocationName = "test-ipallocation",
Location = "centraluseuap",
Prefix = "3.2.5.0/24",
ResourceGroupName = "rg1",
Type = "Hypernet",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewIpAllocation(ctx, "ipAllocation", &network.IpAllocationArgs{
AllocationTags: pulumi.StringMap{
"VNetID": pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"),
},
IpAllocationName: pulumi.String("test-ipallocation"),
Location: pulumi.String("centraluseuap"),
Prefix: pulumi.String("3.2.5.0/24"),
ResourceGroupName: pulumi.String("rg1"),
Type: pulumi.String("Hypernet"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.IpAllocation;
import com.pulumi.azurenative.network.IpAllocationArgs;
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) {
var ipAllocation = new IpAllocation("ipAllocation", IpAllocationArgs.builder()
.allocationTags(Map.of("VNetID", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"))
.ipAllocationName("test-ipallocation")
.location("centraluseuap")
.prefix("3.2.5.0/24")
.resourceGroupName("rg1")
.type("Hypernet")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
ip_allocation = azure_native.network.IpAllocation("ipAllocation",
allocation_tags={
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1",
},
ip_allocation_name="test-ipallocation",
location="centraluseuap",
prefix="3.2.5.0/24",
resource_group_name="rg1",
type="Hypernet")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const ipAllocation = new azure_native.network.IpAllocation("ipAllocation", {
allocationTags: {
VNetID: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1",
},
ipAllocationName: "test-ipallocation",
location: "centraluseuap",
prefix: "3.2.5.0/24",
resourceGroupName: "rg1",
type: "Hypernet",
});
resources:
ipAllocation:
type: azure-native:network:IpAllocation
properties:
allocationTags:
VNetID: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1
ipAllocationName: test-ipallocation
location: centraluseuap
prefix: 3.2.5.0/24
resourceGroupName: rg1
type: Hypernet
Create IpAllocation Resource
new IpAllocation(name: string, args: IpAllocationArgs, opts?: CustomResourceOptions);
@overload
def IpAllocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
allocation_tags: Optional[Mapping[str, str]] = None,
id: Optional[str] = None,
ip_allocation_name: Optional[str] = None,
ipam_allocation_id: Optional[str] = None,
location: Optional[str] = None,
prefix: Optional[str] = None,
prefix_length: Optional[int] = None,
prefix_type: Optional[Union[str, IPVersion]] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[Union[str, IpAllocationType]] = None)
@overload
def IpAllocation(resource_name: str,
args: IpAllocationArgs,
opts: Optional[ResourceOptions] = None)
func NewIpAllocation(ctx *Context, name string, args IpAllocationArgs, opts ...ResourceOption) (*IpAllocation, error)
public IpAllocation(string name, IpAllocationArgs args, CustomResourceOptions? opts = null)
public IpAllocation(String name, IpAllocationArgs args)
public IpAllocation(String name, IpAllocationArgs args, CustomResourceOptions options)
type: azure-native:network:IpAllocation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpAllocationArgs
- 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 IpAllocationArgs
- 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 IpAllocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpAllocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpAllocationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IpAllocation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IpAllocation resource accepts the following input properties:
- Resource
Group stringName The name of the resource group.
- Dictionary<string, string>
IpAllocation tags.
- Id string
Resource ID.
- Ip
Allocation stringName The name of the IpAllocation.
- Ipam
Allocation stringId The IPAM allocation ID.
- Location string
Resource location.
- Prefix string
The address prefix for the IpAllocation.
- Prefix
Length int The address prefix length for the IpAllocation.
- Prefix
Type string | Pulumi.Azure Native. Network. IPVersion The address prefix Type for the IpAllocation.
- Dictionary<string, string>
Resource tags.
- Type
string | Pulumi.
Azure Native. Network. Ip Allocation Type The type for the IpAllocation.
- Resource
Group stringName The name of the resource group.
- map[string]string
IpAllocation tags.
- Id string
Resource ID.
- Ip
Allocation stringName The name of the IpAllocation.
- Ipam
Allocation stringId The IPAM allocation ID.
- Location string
Resource location.
- Prefix string
The address prefix for the IpAllocation.
- Prefix
Length int The address prefix length for the IpAllocation.
- Prefix
Type string | IPVersion The address prefix Type for the IpAllocation.
- map[string]string
Resource tags.
- Type
string | Ip
Allocation Type The type for the IpAllocation.
- resource
Group StringName The name of the resource group.
- Map<String,String>
IpAllocation tags.
- id String
Resource ID.
- ip
Allocation StringName The name of the IpAllocation.
- ipam
Allocation StringId The IPAM allocation ID.
- location String
Resource location.
- prefix String
The address prefix for the IpAllocation.
- prefix
Length Integer The address prefix length for the IpAllocation.
- prefix
Type String | IPVersion The address prefix Type for the IpAllocation.
- Map<String,String>
Resource tags.
- type
String | Ip
Allocation Type The type for the IpAllocation.
- resource
Group stringName The name of the resource group.
- {[key: string]: string}
IpAllocation tags.
- id string
Resource ID.
- ip
Allocation stringName The name of the IpAllocation.
- ipam
Allocation stringId The IPAM allocation ID.
- location string
Resource location.
- prefix string
The address prefix for the IpAllocation.
- prefix
Length number The address prefix length for the IpAllocation.
- prefix
Type string | IPVersion The address prefix Type for the IpAllocation.
- {[key: string]: string}
Resource tags.
- type
string | Ip
Allocation Type The type for the IpAllocation.
- resource_
group_ strname The name of the resource group.
- Mapping[str, str]
IpAllocation tags.
- id str
Resource ID.
- ip_
allocation_ strname The name of the IpAllocation.
- ipam_
allocation_ strid The IPAM allocation ID.
- location str
Resource location.
- prefix str
The address prefix for the IpAllocation.
- prefix_
length int The address prefix length for the IpAllocation.
- prefix_
type str | IPVersion The address prefix Type for the IpAllocation.
- Mapping[str, str]
Resource tags.
- type
str | Ip
Allocation Type The type for the IpAllocation.
- resource
Group StringName The name of the resource group.
- Map<String>
IpAllocation tags.
- id String
Resource ID.
- ip
Allocation StringName The name of the IpAllocation.
- ipam
Allocation StringId The IPAM allocation ID.
- location String
Resource location.
- prefix String
The address prefix for the IpAllocation.
- prefix
Length Number The address prefix length for the IpAllocation.
- prefix
Type String | "IPv4" | "IPv6" The address prefix Type for the IpAllocation.
- Map<String>
Resource tags.
- type String | "Undefined" | "Hypernet"
The type for the IpAllocation.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpAllocation resource produces the following output properties:
- Etag string
A unique read-only string that changes whenever the resource is updated.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name.
- Subnet
Pulumi.
Azure Native. Network. Outputs. Sub Resource Response The Subnet that using the prefix of this IpAllocation resource.
- Virtual
Network Pulumi.Azure Native. Network. Outputs. Sub Resource Response The VirtualNetwork that using the prefix of this IpAllocation resource.
- Etag string
A unique read-only string that changes whenever the resource is updated.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name.
- Subnet
Sub
Resource Response The Subnet that using the prefix of this IpAllocation resource.
- Virtual
Network SubResource Response The VirtualNetwork that using the prefix of this IpAllocation resource.
- etag String
A unique read-only string that changes whenever the resource is updated.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name.
- subnet
Sub
Resource Response The Subnet that using the prefix of this IpAllocation resource.
- virtual
Network SubResource Response The VirtualNetwork that using the prefix of this IpAllocation resource.
- etag string
A unique read-only string that changes whenever the resource is updated.
- id string
The provider-assigned unique ID for this managed resource.
- name string
Resource name.
- subnet
Sub
Resource Response The Subnet that using the prefix of this IpAllocation resource.
- virtual
Network SubResource Response The VirtualNetwork that using the prefix of this IpAllocation resource.
- etag str
A unique read-only string that changes whenever the resource is updated.
- id str
The provider-assigned unique ID for this managed resource.
- name str
Resource name.
- subnet
Sub
Resource Response The Subnet that using the prefix of this IpAllocation resource.
- virtual_
network SubResource Response The VirtualNetwork that using the prefix of this IpAllocation resource.
- etag String
A unique read-only string that changes whenever the resource is updated.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name.
- subnet Property Map
The Subnet that using the prefix of this IpAllocation resource.
- virtual
Network Property Map The VirtualNetwork that using the prefix of this IpAllocation resource.
Supporting Types
IPVersion
- IPv4
- IPv4
- IPv6
- IPv6
- IPVersion
IPv4 - IPv4
- IPVersion
IPv6 - IPv6
- IPv4
- IPv4
- IPv6
- IPv6
- IPv4
- IPv4
- IPv6
- IPv6
- I_PV4
- IPv4
- I_PV6
- IPv6
- "IPv4"
- IPv4
- "IPv6"
- IPv6
IpAllocationType
- Undefined
- Undefined
- Hypernet
- Hypernet
- Ip
Allocation Type Undefined - Undefined
- Ip
Allocation Type Hypernet - Hypernet
- Undefined
- Undefined
- Hypernet
- Hypernet
- Undefined
- Undefined
- Hypernet
- Hypernet
- UNDEFINED
- Undefined
- HYPERNET
- Hypernet
- "Undefined"
- Undefined
- "Hypernet"
- Hypernet
SubResourceResponse
- Id string
Resource ID.
- Id string
Resource ID.
- id String
Resource ID.
- id string
Resource ID.
- id str
Resource ID.
- id String
Resource ID.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:IpAllocation test-ipallocation /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0