IpamPoolArgs

data class IpamPoolArgs(val location: Output<String>? = null, val networkManagerName: Output<String>? = null, val poolName: Output<String>? = null, val properties: Output<IpamPoolPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<IpamPoolArgs>

Instance of Pool resource. Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2024-01-01-preview. Other available API versions: 2024-01-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

IpamPools_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ipamPool = new AzureNative.Network.IpamPool("ipamPool", new()
{
Location = "eastus",
NetworkManagerName = "TestNetworkManager",
PoolName = "TestPool",
Properties = new AzureNative.Network.Inputs.IpamPoolPropertiesArgs
{
AddressPrefixes = new[]
{
"10.0.0.0/24",
},
Description = "Test description.",
ParentPoolName = "",
},
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewIpamPool(ctx, "ipamPool", &network.IpamPoolArgs{
Location: pulumi.String("eastus"),
NetworkManagerName: pulumi.String("TestNetworkManager"),
PoolName: pulumi.String("TestPool"),
Properties: &network.IpamPoolPropertiesArgs{
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.0.0/24"),
},
Description: pulumi.String("Test description."),
ParentPoolName: pulumi.String(""),
},
ResourceGroupName: pulumi.String("rg1"),
})
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.IpamPool;
import com.pulumi.azurenative.network.IpamPoolArgs;
import com.pulumi.azurenative.network.inputs.IpamPoolPropertiesArgs;
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 ipamPool = new IpamPool("ipamPool", IpamPoolArgs.builder()
.location("eastus")
.networkManagerName("TestNetworkManager")
.poolName("TestPool")
.properties(IpamPoolPropertiesArgs.builder()
.addressPrefixes("10.0.0.0/24")
.description("Test description.")
.parentPoolName("")
.build())
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:IpamPool TestPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, networkManagerName: Output<String>? = null, poolName: Output<String>? = null, properties: Output<IpamPoolPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The geo-location where the resource lives

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

The name of the network manager.

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

IP Address Manager Pool resource name.

Link copied to clipboard
val properties: Output<IpamPoolPropertiesArgs>? = null

Properties of IpamPool resource properties which are specific to the Pool resource.

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

The name of the resource group.

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

Resource tags.

Functions

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