Registered Prefix
The customer's prefix that is registered by the peering service provider. Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2021-01-01.
Example Usage
Create or update a registered prefix for the peering
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var registeredPrefix = new AzureNative.Peering.RegisteredPrefix("registeredPrefix", new()
{
PeeringName = "peeringName",
Prefix = "10.22.20.0/24",
RegisteredPrefixName = "registeredPrefixName",
ResourceGroupName = "rgName",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/peering/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewRegisteredPrefix(ctx, "registeredPrefix", &peering.RegisteredPrefixArgs{
PeeringName: pulumi.String("peeringName"),
Prefix: pulumi.String("10.22.20.0/24"),
RegisteredPrefixName: pulumi.String("registeredPrefixName"),
ResourceGroupName: pulumi.String("rgName"),
})
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.peering.RegisteredPrefix;
import com.pulumi.azurenative.peering.RegisteredPrefixArgs;
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 registeredPrefix = new RegisteredPrefix("registeredPrefix", RegisteredPrefixArgs.builder()
.peeringName("peeringName")
.prefix("10.22.20.0/24")
.registeredPrefixName("registeredPrefixName")
.resourceGroupName("rgName")
.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:peering:RegisteredPrefix registeredPrefixName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredPrefixes/{registeredPrefixName}Content copied to clipboard
Properties
Link copied to clipboard
The error message associated with the validation state, if any.
Link copied to clipboard
The peering service prefix key that is to be shared with the customer.
Link copied to clipboard
The prefix validation state.
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard