NetworkManagerIpamPoolArgs

data class NetworkManagerIpamPoolArgs(val addressPrefixes: Output<List<String>>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val networkManagerId: Output<String>? = null, val parentPoolName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkManagerIpamPoolArgs>

Manages a Network Manager IP Address Management (IPAM) Pool.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const current = azure.core.getSubscription({});
const exampleNetworkManager = new azure.network.NetworkManager("example", {
name: "example-network-manager",
location: example.location,
resourceGroupName: example.name,
scope: {
subscriptionIds: [current&#46;then(current => current&#46;id)],
},
scopeAccesses: [
"Connectivity",
"SecurityAdmin",
],
});
const exampleNetworkManagerIpamPool = new azure.network.NetworkManagerIpamPool("example", {
name: "example-ipam-pool",
location: "West Europe",
networkManagerId: exampleNetworkManager.id,
displayName: "example-pool",
addressPrefixes: ["10&#46;0&#46;0&#46;0/24"],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
current = azure.core.get_subscription()
example_network_manager = azure.network.NetworkManager("example",
name="example-network-manager",
location=example.location,
resource_group_name=example.name,
scope={
"subscription_ids": [current&#46;id],
},
scope_accesses=[
"Connectivity",
"SecurityAdmin",
])
example_network_manager_ipam_pool = azure.network.NetworkManagerIpamPool("example",
name="example-ipam-pool",
location="West Europe",
network_manager_id=example_network_manager.id,
display_name="example-pool",
address_prefixes=["10&#46;0&#46;0&#46;0/24"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var current = Azure.Core.GetSubscription.Invoke();
var exampleNetworkManager = new Azure.Network.NetworkManager("example", new()
{
Name = "example-network-manager",
Location = example.Location,
ResourceGroupName = example.Name,
Scope = new Azure.Network.Inputs.NetworkManagerScopeArgs
{
SubscriptionIds = new[]
{
current.Apply(getSubscriptionResult => getSubscriptionResult.Id),
},
},
ScopeAccesses = new[]
{
"Connectivity",
"SecurityAdmin",
},
});
var exampleNetworkManagerIpamPool = new Azure.Network.NetworkManagerIpamPool("example", new()
{
Name = "example-ipam-pool",
Location = "West Europe",
NetworkManagerId = exampleNetworkManager.Id,
DisplayName = "example-pool",
AddressPrefixes = new[]
{
"10.0.0.0/24",
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
current, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil)
if err != nil {
return err
}
exampleNetworkManager, err := network.NewNetworkManager(ctx, "example", &network.NetworkManagerArgs{
Name: pulumi.String("example-network-manager"),
Location: example.Location,
ResourceGroupName: example.Name,
Scope: &network.NetworkManagerScopeArgs{
SubscriptionIds: pulumi.StringArray{
pulumi.String(current.Id),
},
},
ScopeAccesses: pulumi.StringArray{
pulumi.String("Connectivity"),
pulumi.String("SecurityAdmin"),
},
})
if err != nil {
return err
}
_, err = network.NewNetworkManagerIpamPool(ctx, "example", &network.NetworkManagerIpamPoolArgs{
Name: pulumi.String("example-ipam-pool"),
Location: pulumi.String("West Europe"),
NetworkManagerId: exampleNetworkManager.ID(),
DisplayName: pulumi.String("example-pool"),
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.0.0/24"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
import com.pulumi.azure.network.NetworkManager;
import com.pulumi.azure.network.NetworkManagerArgs;
import com.pulumi.azure.network.inputs.NetworkManagerScopeArgs;
import com.pulumi.azure.network.NetworkManagerIpamPool;
import com.pulumi.azure.network.NetworkManagerIpamPoolArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
final var current = CoreFunctions.getSubscription();
var exampleNetworkManager = new NetworkManager("exampleNetworkManager", NetworkManagerArgs.builder()
.name("example-network-manager")
.location(example.location())
.resourceGroupName(example.name())
.scope(NetworkManagerScopeArgs.builder()
.subscriptionIds(current.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
.build())
.scopeAccesses(
"Connectivity",
"SecurityAdmin")
.build());
var exampleNetworkManagerIpamPool = new NetworkManagerIpamPool("exampleNetworkManagerIpamPool", NetworkManagerIpamPoolArgs.builder()
.name("example-ipam-pool")
.location("West Europe")
.networkManagerId(exampleNetworkManager.id())
.displayName("example-pool")
.addressPrefixes("10.0.0.0/24")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleNetworkManager:
type: azure:network:NetworkManager
name: example
properties:
name: example-network-manager
location: ${example.location}
resourceGroupName: ${example.name}
scope:
subscriptionIds:
- ${current.id}
scopeAccesses:
- Connectivity
- SecurityAdmin
exampleNetworkManagerIpamPool:
type: azure:network:NetworkManagerIpamPool
name: example
properties:
name: example-ipam-pool
location: West Europe
networkManagerId: ${exampleNetworkManager.id}
displayName: example-pool
addressPrefixes:
- 10.0.0.0/24
variables:
current:
fn::invoke:
function: azure:core:getSubscription
arguments: {}

Import

Network Manager IPAM Pools can be imported using the resource id, e.g.

$ pulumi import azure:network/networkManagerIpamPool:NetworkManagerIpamPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/manager1/ipamPools/pool1

Constructors

Link copied to clipboard
constructor(addressPrefixes: Output<List<String>>? = null, description: Output<String>? = null, displayName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, networkManagerId: Output<String>? = null, parentPoolName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val addressPrefixes: Output<List<String>>? = null

Specifies a list of IPv4 or IPv6 IP address prefixes. Changing this forces a new Network Manager IPAM Pool to be created.

Link copied to clipboard
val description: Output<String>? = null

The description of the Network Manager IPAM Pool.

Link copied to clipboard
val displayName: Output<String>? = null

The display name for the Network Manager IPAM Pool.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Network Manager IPAM Pool should exist. Changing this forces a new Network Manager IPAM Pool to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Network Manager IPAM Pool. Changing this forces a new Network Manager IPAM Pool to be created.

Link copied to clipboard
val networkManagerId: Output<String>? = null

The ID of the parent Network Manager. Changing this forces a new Network Manager IPAM Pool to be created.

Link copied to clipboard
val parentPoolName: Output<String>? = null

The name of the parent IPAM Pool. Changing this forces a new Network Manager IPAM Pool to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Network Manager IPAM Pool.

Functions

Link copied to clipboard
open override fun toJava(): NetworkManagerIpamPoolArgs