1. Packages
  2. Azure Native v1
  3. API Docs
  4. peering
  5. getPeerAsn
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.getPeerAsn

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

    Gets the peer ASN with the specified name under the given subscription. API Version: 2021-01-01.

    Using getPeerAsn

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPeerAsn(args: GetPeerAsnArgs, opts?: InvokeOptions): Promise<GetPeerAsnResult>
    function getPeerAsnOutput(args: GetPeerAsnOutputArgs, opts?: InvokeOptions): Output<GetPeerAsnResult>
    def get_peer_asn(peer_asn_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetPeerAsnResult
    def get_peer_asn_output(peer_asn_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetPeerAsnResult]
    func LookupPeerAsn(ctx *Context, args *LookupPeerAsnArgs, opts ...InvokeOption) (*LookupPeerAsnResult, error)
    func LookupPeerAsnOutput(ctx *Context, args *LookupPeerAsnOutputArgs, opts ...InvokeOption) LookupPeerAsnResultOutput

    > Note: This function is named LookupPeerAsn in the Go SDK.

    public static class GetPeerAsn 
    {
        public static Task<GetPeerAsnResult> InvokeAsync(GetPeerAsnArgs args, InvokeOptions? opts = null)
        public static Output<GetPeerAsnResult> Invoke(GetPeerAsnInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPeerAsnResult> getPeerAsn(GetPeerAsnArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:peering:getPeerAsn
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PeerAsnName string
    The peer ASN name.
    PeerAsnName string
    The peer ASN name.
    peerAsnName String
    The peer ASN name.
    peerAsnName string
    The peer ASN name.
    peer_asn_name str
    The peer ASN name.
    peerAsnName String
    The peer ASN name.

    getPeerAsn Result

    The following output properties are available:

    ErrorMessage string
    The error message for the validation state
    Id string
    The ID of the resource.
    Name string
    The name of the resource.
    Type string
    The type of the resource.
    PeerAsn int
    The Autonomous System Number (ASN) of the peer.
    PeerContactDetail List<Pulumi.AzureNative.Peering.Outputs.ContactDetailResponse>
    The contact details of the peer.
    PeerName string
    The name of the peer.
    ValidationState string
    The validation state of the ASN associated with the peer.
    ErrorMessage string
    The error message for the validation state
    Id string
    The ID of the resource.
    Name string
    The name of the resource.
    Type string
    The type of the resource.
    PeerAsn int
    The Autonomous System Number (ASN) of the peer.
    PeerContactDetail []ContactDetailResponse
    The contact details of the peer.
    PeerName string
    The name of the peer.
    ValidationState string
    The validation state of the ASN associated with the peer.
    errorMessage String
    The error message for the validation state
    id String
    The ID of the resource.
    name String
    The name of the resource.
    type String
    The type of the resource.
    peerAsn Integer
    The Autonomous System Number (ASN) of the peer.
    peerContactDetail List<ContactDetailResponse>
    The contact details of the peer.
    peerName String
    The name of the peer.
    validationState String
    The validation state of the ASN associated with the peer.
    errorMessage string
    The error message for the validation state
    id string
    The ID of the resource.
    name string
    The name of the resource.
    type string
    The type of the resource.
    peerAsn number
    The Autonomous System Number (ASN) of the peer.
    peerContactDetail ContactDetailResponse[]
    The contact details of the peer.
    peerName string
    The name of the peer.
    validationState string
    The validation state of the ASN associated with the peer.
    error_message str
    The error message for the validation state
    id str
    The ID of the resource.
    name str
    The name of the resource.
    type str
    The type of the resource.
    peer_asn int
    The Autonomous System Number (ASN) of the peer.
    peer_contact_detail Sequence[ContactDetailResponse]
    The contact details of the peer.
    peer_name str
    The name of the peer.
    validation_state str
    The validation state of the ASN associated with the peer.
    errorMessage String
    The error message for the validation state
    id String
    The ID of the resource.
    name String
    The name of the resource.
    type String
    The type of the resource.
    peerAsn Number
    The Autonomous System Number (ASN) of the peer.
    peerContactDetail List<Property Map>
    The contact details of the peer.
    peerName String
    The name of the peer.
    validationState String
    The validation state of the ASN associated with the peer.

    Supporting Types

    ContactDetailResponse

    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.

    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