Custom IPPrefix Args
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. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 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.
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",
});
});
Content copied to clipboard
package main
import (
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
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
Authorization message for WAN validation.
Link copied to clipboard
The commissioned state of the Custom IP Prefix.
Link copied to clipboard
The name of the custom IP prefix.
Link copied to clipboard
The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.
Link copied to clipboard
Whether to do express route advertise.
Link copied to clipboard
The extended location of the custom IP prefix.
Link copied to clipboard
Whether to Advertise the range to Internet.
Link copied to clipboard
Type of custom IP prefix. Should be Singular, Parent, or Child.
Link copied to clipboard
The name of the resource group.
Link copied to clipboard
Signed message for WAN validation.