Prefix
The peering service prefix class. Uses Azure REST API version 2022-10-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01.
Example Usage
Create or update a prefix for the peering service
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var prefix = new AzureNative.Peering.Prefix("prefix", new()
{
PeeringServiceName = "peeringServiceName",
PeeringServicePrefixKey = "00000000-0000-0000-0000-000000000000",
Prefix = "192.168.1.0/24",
PrefixName = "peeringServicePrefixName",
ResourceGroupName = "rgName",
});
});
Content copied to clipboard
package main
import (
peering "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.NewPrefix(ctx, "prefix", &peering.PrefixArgs{
PeeringServiceName: pulumi.String("peeringServiceName"),
PeeringServicePrefixKey: pulumi.String("00000000-0000-0000-0000-000000000000"),
Prefix: pulumi.String("192.168.1.0/24"),
PrefixName: pulumi.String("peeringServicePrefixName"),
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.Prefix;
import com.pulumi.azurenative.peering.PrefixArgs;
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 prefix = new Prefix("prefix", PrefixArgs.builder()
.peeringServiceName("peeringServiceName")
.peeringServicePrefixKey("00000000-0000-0000-0000-000000000000")
.prefix("192.168.1.0/24")
.prefixName("peeringServicePrefixName")
.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:Prefix peeringServicePrefixName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The error message for validation state
Link copied to clipboard
The list of events for peering service prefix
Link copied to clipboard
The prefix learned type
Link copied to clipboard
The peering service prefix key
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