PeerAsn

class PeerAsn : KotlinCustomResource

The essential information related to the peer's ASN. 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 a peer ASN

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var peerAsn = new AzureNative.Peering.PeerAsn("peerAsn", new()
{
PeerAsn = 65000,
PeerAsnName = "peerAsnName",
PeerContactDetail = new[]
{
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "noc@contoso.com",
Phone = "+1 (234) 567-8999",
Role = AzureNative.Peering.Role.Noc,
},
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "abc@contoso.com",
Phone = "+1 (234) 567-8900",
Role = AzureNative.Peering.Role.Policy,
},
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "xyz@contoso.com",
Phone = "+1 (234) 567-8900",
Role = AzureNative.Peering.Role.Technical,
},
},
PeerName = "Contoso",
});
});
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewPeerAsn(ctx, "peerAsn", &peering.PeerAsnArgs{
PeerAsn: pulumi.Int(65000),
PeerAsnName: pulumi.String("peerAsnName"),
PeerContactDetail: peering.ContactDetailArray{
&peering.ContactDetailArgs{
Email: pulumi.String("noc@contoso.com"),
Phone: pulumi.String("+1 (234) 567-8999"),
Role: pulumi.String(peering.RoleNoc),
},
&peering.ContactDetailArgs{
Email: pulumi.String("abc@contoso.com"),
Phone: pulumi.String("+1 (234) 567-8900"),
Role: pulumi.String(peering.RolePolicy),
},
&peering.ContactDetailArgs{
Email: pulumi.String("xyz@contoso.com"),
Phone: pulumi.String("+1 (234) 567-8900"),
Role: pulumi.String(peering.RoleTechnical),
},
},
PeerName: pulumi.String("Contoso"),
})
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.peering.PeerAsn;
import com.pulumi.azurenative.peering.PeerAsnArgs;
import com.pulumi.azurenative.peering.inputs.ContactDetailArgs;
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 peerAsn = new PeerAsn("peerAsn", PeerAsnArgs.builder()
.peerAsn(65000)
.peerAsnName("peerAsnName")
.peerContactDetail(
ContactDetailArgs.builder()
.email("noc@contoso.com")
.phone("+1 (234) 567-8999")
.role("Noc")
.build(),
ContactDetailArgs.builder()
.email("abc@contoso.com")
.phone("+1 (234) 567-8900")
.role("Policy")
.build(),
ContactDetailArgs.builder()
.email("xyz@contoso.com")
.phone("+1 (234) 567-8900")
.role("Technical")
.build())
.peerName("Contoso")
.build());
}
}

Import

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

$ pulumi import azure-native:peering:PeerAsn peerAsnName /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val errorMessage: Output<String>

The error message for the validation state

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard
val peerAsn: Output<Int>?

The Autonomous System Number (ASN) of the peer.

Link copied to clipboard

The contact details of the peer.

Link copied to clipboard
val peerName: Output<String>?

The name of the peer.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val validationState: Output<String>

The validation state of the ASN associated with the peer.