CustomIPPrefixArgs

data class CustomIPPrefixArgs(val asn: Output<String>? = null, val authorizationMessage: Output<String>? = null, val cidr: Output<String>? = null, val commissionedState: Output<Either<String, CommissionedState>>? = null, val customIpPrefixName: Output<String>? = null, val customIpPrefixParent: Output<SubResourceArgs>? = null, val expressRouteAdvertise: Output<Boolean>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val geo: Output<Either<String, Geo>>? = null, val id: Output<String>? = null, val location: Output<String>? = null, val noInternetAdvertise: Output<Boolean>? = null, val prefixType: Output<Either<String, CustomIpPrefixType>>? = null, val resourceGroupName: Output<String>? = null, val signedMessage: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val zones: Output<List<String>>? = null) : ConvertibleToJava<CustomIPPrefixArgs>

Custom IP prefix resource. Uses Azure REST API version 2023-02-01. In version 1.x of the Azure Native provider, it used API version 2020-11-01. Other available API versions: 2021-03-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.

Example Usage

Create custom IP prefix allocation method

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customIPPrefix = new AzureNative.Network.CustomIPPrefix("customIPPrefix", new()
{
Cidr = "0.0.0.0/24",
CustomIpPrefixName = "test-customipprefix",
Location = "westus",
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.NewCustomIPPrefix(ctx, "customIPPrefix", &network.CustomIPPrefixArgs{
Cidr: pulumi.String("0.0.0.0/24"),
CustomIpPrefixName: pulumi.String("test-customipprefix"),
Location: pulumi.String("westus"),
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.CustomIPPrefix;
import com.pulumi.azurenative.network.CustomIPPrefixArgs;
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 customIPPrefix = new CustomIPPrefix("customIPPrefix", CustomIPPrefixArgs.builder()
.cidr("0.0.0.0/24")
.customIpPrefixName("test-customipprefix")
.location("westus")
.resourceGroupName("rg1")
.build());
}
}

Import

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

$ pulumi import azure-native:network:CustomIPPrefix test-customipprefix /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}

Constructors

Link copied to clipboard
constructor(asn: Output<String>? = null, authorizationMessage: Output<String>? = null, cidr: Output<String>? = null, commissionedState: Output<Either<String, CommissionedState>>? = null, customIpPrefixName: Output<String>? = null, customIpPrefixParent: Output<SubResourceArgs>? = null, expressRouteAdvertise: Output<Boolean>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, geo: Output<Either<String, Geo>>? = null, id: Output<String>? = null, location: Output<String>? = null, noInternetAdvertise: Output<Boolean>? = null, prefixType: Output<Either<String, CustomIpPrefixType>>? = null, resourceGroupName: Output<String>? = null, signedMessage: Output<String>? = null, tags: Output<Map<String, String>>? = null, zones: Output<List<String>>? = null)

Properties

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

The ASN for CIDR advertising. Should be an integer as string.

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

Authorization message for WAN validation.

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

The prefix range in CIDR notation. Should include the start address and the prefix length.

Link copied to clipboard
val commissionedState: Output<Either<String, CommissionedState>>? = null

The commissioned state of the Custom IP Prefix.

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

The name of the custom IP prefix.

Link copied to clipboard

The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.

Link copied to clipboard
val expressRouteAdvertise: Output<Boolean>? = null

Whether to do express route advertise.

Link copied to clipboard

The extended location of the custom IP prefix.

Link copied to clipboard
val geo: Output<Either<String, Geo>>? = null

The Geo for CIDR advertising. Should be an Geo code.

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

Resource ID.

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

Resource location.

Link copied to clipboard
val noInternetAdvertise: Output<Boolean>? = null

Whether to Advertise the range to Internet.

Link copied to clipboard
val prefixType: Output<Either<String, CustomIpPrefixType>>? = null

Type of custom IP prefix. Should be Singular, Parent, or Child.

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

The name of the resource group.

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

Signed message for WAN validation.

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

Resource tags.

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

A list of availability zones denoting the IP allocated for the resource needs to come from.

Functions

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