1. Packages
  2. Azure Native v1
  3. API Docs
  4. peering
  5. PeerAsn
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.peering.PeerAsn

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The essential information related to the peer’s ASN. API Version: 2021-01-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 = "Noc",
                },
                new AzureNative.Peering.Inputs.ContactDetailArgs
                {
                    Email = "abc@contoso.com",
                    Phone = "+1 (234) 567-8900",
                    Role = "Policy",
                },
                new AzureNative.Peering.Inputs.ContactDetailArgs
                {
                    Email = "xyz@contoso.com",
                    Phone = "+1 (234) 567-8900",
                    Role = "Technical",
                },
            },
            PeerName = "Contoso",
        });
    
    });
    
    package main
    
    import (
    	peering "github.com/pulumi/pulumi-azure-native-sdk/peering"
    	"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.ContactDetailArgs{
    				{
    					Email: pulumi.String("noc@contoso.com"),
    					Phone: pulumi.String("+1 (234) 567-8999"),
    					Role:  pulumi.String("Noc"),
    				},
    				{
    					Email: pulumi.String("abc@contoso.com"),
    					Phone: pulumi.String("+1 (234) 567-8900"),
    					Role:  pulumi.String("Policy"),
    				},
    				{
    					Email: pulumi.String("xyz@contoso.com"),
    					Phone: pulumi.String("+1 (234) 567-8900"),
    					Role:  pulumi.String("Technical"),
    				},
    			},
    			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 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(            
                    Map.ofEntries(
                        Map.entry("email", "noc@contoso.com"),
                        Map.entry("phone", "+1 (234) 567-8999"),
                        Map.entry("role", "Noc")
                    ),
                    Map.ofEntries(
                        Map.entry("email", "abc@contoso.com"),
                        Map.entry("phone", "+1 (234) 567-8900"),
                        Map.entry("role", "Policy")
                    ),
                    Map.ofEntries(
                        Map.entry("email", "xyz@contoso.com"),
                        Map.entry("phone", "+1 (234) 567-8900"),
                        Map.entry("role", "Technical")
                    ))
                .peerName("Contoso")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    peer_asn = azure_native.peering.PeerAsn("peerAsn",
        peer_asn=65000,
        peer_asn_name="peerAsnName",
        peer_contact_detail=[
            azure_native.peering.ContactDetailArgs(
                email="noc@contoso.com",
                phone="+1 (234) 567-8999",
                role="Noc",
            ),
            azure_native.peering.ContactDetailArgs(
                email="abc@contoso.com",
                phone="+1 (234) 567-8900",
                role="Policy",
            ),
            azure_native.peering.ContactDetailArgs(
                email="xyz@contoso.com",
                phone="+1 (234) 567-8900",
                role="Technical",
            ),
        ],
        peer_name="Contoso")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const peerAsn = new azure_native.peering.PeerAsn("peerAsn", {
        peerAsn: 65000,
        peerAsnName: "peerAsnName",
        peerContactDetail: [
            {
                email: "noc@contoso.com",
                phone: "+1 (234) 567-8999",
                role: "Noc",
            },
            {
                email: "abc@contoso.com",
                phone: "+1 (234) 567-8900",
                role: "Policy",
            },
            {
                email: "xyz@contoso.com",
                phone: "+1 (234) 567-8900",
                role: "Technical",
            },
        ],
        peerName: "Contoso",
    });
    
    resources:
      peerAsn:
        type: azure-native:peering:PeerAsn
        properties:
          peerAsn: 65000
          peerAsnName: peerAsnName
          peerContactDetail:
            - email: noc@contoso.com
              phone: +1 (234) 567-8999
              role: Noc
            - email: abc@contoso.com
              phone: +1 (234) 567-8900
              role: Policy
            - email: xyz@contoso.com
              phone: +1 (234) 567-8900
              role: Technical
          peerName: Contoso
    

    Create PeerAsn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PeerAsn(name: string, args?: PeerAsnArgs, opts?: CustomResourceOptions);
    @overload
    def PeerAsn(resource_name: str,
                args: Optional[PeerAsnArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def PeerAsn(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                peer_asn: Optional[int] = None,
                peer_asn_name: Optional[str] = None,
                peer_contact_detail: Optional[Sequence[ContactDetailArgs]] = None,
                peer_name: Optional[str] = None,
                validation_state: Optional[Union[str, ValidationState]] = None)
    func NewPeerAsn(ctx *Context, name string, args *PeerAsnArgs, opts ...ResourceOption) (*PeerAsn, error)
    public PeerAsn(string name, PeerAsnArgs? args = null, CustomResourceOptions? opts = null)
    public PeerAsn(String name, PeerAsnArgs args)
    public PeerAsn(String name, PeerAsnArgs args, CustomResourceOptions options)
    
    type: azure-native:peering:PeerAsn
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PeerAsnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PeerAsnArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PeerAsnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PeerAsnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PeerAsnArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var peerAsnResource = new AzureNative.Peering.PeerAsn("peerAsnResource", new()
    {
        PeerAsn = 0,
        PeerAsnName = "string",
        PeerContactDetail = new[]
        {
            
            {
                { "email", "string" },
                { "phone", "string" },
                { "role", "string" },
            },
        },
        PeerName = "string",
        ValidationState = "string",
    });
    
    example, err := peering.NewPeerAsn(ctx, "peerAsnResource", &peering.PeerAsnArgs{
    	PeerAsn:     0,
    	PeerAsnName: "string",
    	PeerContactDetail: []map[string]interface{}{
    		map[string]interface{}{
    			"email": "string",
    			"phone": "string",
    			"role":  "string",
    		},
    	},
    	PeerName:        "string",
    	ValidationState: "string",
    })
    
    var peerAsnResource = new PeerAsn("peerAsnResource", PeerAsnArgs.builder()
        .peerAsn(0)
        .peerAsnName("string")
        .peerContactDetail(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .peerName("string")
        .validationState("string")
        .build());
    
    peer_asn_resource = azure_native.peering.PeerAsn("peerAsnResource",
        peer_asn=0,
        peer_asn_name=string,
        peer_contact_detail=[{
            email: string,
            phone: string,
            role: string,
        }],
        peer_name=string,
        validation_state=string)
    
    const peerAsnResource = new azure_native.peering.PeerAsn("peerAsnResource", {
        peerAsn: 0,
        peerAsnName: "string",
        peerContactDetail: [{
            email: "string",
            phone: "string",
            role: "string",
        }],
        peerName: "string",
        validationState: "string",
    });
    
    type: azure-native:peering:PeerAsn
    properties:
        peerAsn: 0
        peerAsnName: string
        peerContactDetail:
            - email: string
              phone: string
              role: string
        peerName: string
        validationState: string
    

    PeerAsn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PeerAsn resource accepts the following input properties:

    PeerAsn int
    The Autonomous System Number (ASN) of the peer.
    PeerAsnName string
    The peer ASN name.
    PeerContactDetail List<Pulumi.AzureNative.Peering.Inputs.ContactDetail>
    The contact details of the peer.
    PeerName string
    The name of the peer.
    ValidationState string | Pulumi.AzureNative.Peering.ValidationState
    The validation state of the ASN associated with the peer.
    PeerAsn int
    The Autonomous System Number (ASN) of the peer.
    PeerAsnName string
    The peer ASN name.
    PeerContactDetail []ContactDetailArgs
    The contact details of the peer.
    PeerName string
    The name of the peer.
    ValidationState string | ValidationState
    The validation state of the ASN associated with the peer.
    peerAsn Integer
    The Autonomous System Number (ASN) of the peer.
    peerAsnName String
    The peer ASN name.
    peerContactDetail List<ContactDetail>
    The contact details of the peer.
    peerName String
    The name of the peer.
    validationState String | ValidationState
    The validation state of the ASN associated with the peer.
    peerAsn number
    The Autonomous System Number (ASN) of the peer.
    peerAsnName string
    The peer ASN name.
    peerContactDetail ContactDetail[]
    The contact details of the peer.
    peerName string
    The name of the peer.
    validationState string | ValidationState
    The validation state of the ASN associated with the peer.
    peer_asn int
    The Autonomous System Number (ASN) of the peer.
    peer_asn_name str
    The peer ASN name.
    peer_contact_detail Sequence[ContactDetailArgs]
    The contact details of the peer.
    peer_name str
    The name of the peer.
    validation_state str | ValidationState
    The validation state of the ASN associated with the peer.
    peerAsn Number
    The Autonomous System Number (ASN) of the peer.
    peerAsnName String
    The peer ASN name.
    peerContactDetail List<Property Map>
    The contact details of the peer.
    peerName String
    The name of the peer.
    validationState String | "None" | "Pending" | "Approved" | "Failed"
    The validation state of the ASN associated with the peer.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PeerAsn resource produces the following output properties:

    ErrorMessage string
    The error message for the validation state
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    Type string
    The type of the resource.
    ErrorMessage string
    The error message for the validation state
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    Type string
    The type of the resource.
    errorMessage String
    The error message for the validation state
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    type String
    The type of the resource.
    errorMessage string
    The error message for the validation state
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource.
    type string
    The type of the resource.
    error_message str
    The error message for the validation state
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource.
    type str
    The type of the resource.
    errorMessage String
    The error message for the validation state
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    type String
    The type of the resource.

    Supporting Types

    ContactDetail, ContactDetailArgs

    Email string
    The e-mail address of the contact.
    Phone string
    The phone number of the contact.
    Role string | Pulumi.AzureNative.Peering.Role
    The role of the contact.
    Email string
    The e-mail address of the contact.
    Phone string
    The phone number of the contact.
    Role string | Role
    The role of the contact.
    email String
    The e-mail address of the contact.
    phone String
    The phone number of the contact.
    role String | Role
    The role of the contact.
    email string
    The e-mail address of the contact.
    phone string
    The phone number of the contact.
    role string | Role
    The role of the contact.
    email str
    The e-mail address of the contact.
    phone str
    The phone number of the contact.
    role str | Role
    The role of the contact.
    email String
    The e-mail address of the contact.
    phone String
    The phone number of the contact.
    role String | "Noc" | "Policy" | "Technical" | "Service" | "Escalation" | "Other"
    The role of the contact.

    ContactDetailResponse, ContactDetailResponseArgs

    Email string
    The e-mail address of the contact.
    Phone string
    The phone number of the contact.
    Role string
    The role of the contact.
    Email string
    The e-mail address of the contact.
    Phone string
    The phone number of the contact.
    Role string
    The role of the contact.
    email String
    The e-mail address of the contact.
    phone String
    The phone number of the contact.
    role String
    The role of the contact.
    email string
    The e-mail address of the contact.
    phone string
    The phone number of the contact.
    role string
    The role of the contact.
    email str
    The e-mail address of the contact.
    phone str
    The phone number of the contact.
    role str
    The role of the contact.
    email String
    The e-mail address of the contact.
    phone String
    The phone number of the contact.
    role String
    The role of the contact.

    Role, RoleArgs

    Noc
    Noc
    Policy
    Policy
    Technical
    Technical
    Service
    Service
    Escalation
    Escalation
    Other
    Other
    RoleNoc
    Noc
    RolePolicy
    Policy
    RoleTechnical
    Technical
    RoleService
    Service
    RoleEscalation
    Escalation
    RoleOther
    Other
    Noc
    Noc
    Policy
    Policy
    Technical
    Technical
    Service
    Service
    Escalation
    Escalation
    Other
    Other
    Noc
    Noc
    Policy
    Policy
    Technical
    Technical
    Service
    Service
    Escalation
    Escalation
    Other
    Other
    NOC
    Noc
    POLICY
    Policy
    TECHNICAL
    Technical
    SERVICE
    Service
    ESCALATION
    Escalation
    OTHER
    Other
    "Noc"
    Noc
    "Policy"
    Policy
    "Technical"
    Technical
    "Service"
    Service
    "Escalation"
    Escalation
    "Other"
    Other

    ValidationState, ValidationStateArgs

    None
    None
    Pending
    Pending
    Approved
    Approved
    Failed
    Failed
    ValidationStateNone
    None
    ValidationStatePending
    Pending
    ValidationStateApproved
    Approved
    ValidationStateFailed
    Failed
    None
    None
    Pending
    Pending
    Approved
    Approved
    Failed
    Failed
    None
    None
    Pending
    Pending
    Approved
    Approved
    Failed
    Failed
    NONE
    None
    PENDING
    Pending
    APPROVED
    Approved
    FAILED
    Failed
    "None"
    None
    "Pending"
    Pending
    "Approved"
    Approved
    "Failed"
    Failed

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi