1. Packages
  2. Azure Native
  3. API Docs
  4. peering
  5. getPeerAsn
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.peering.getPeerAsn

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    Gets the peer ASN with the specified name under the given subscription. Azure REST API version: 2022-10-01.

    Other available API versions: 2019-09-01-preview, 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.
    ValidationState string
    The validation state of the ASN associated with the peer.
    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.
    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.
    ValidationState string
    The validation state of the ASN associated with the peer.
    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.
    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.
    validationState String
    The validation state of the ASN associated with the peer.
    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.
    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.
    validationState string
    The validation state of the ASN associated with the peer.
    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.
    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.
    validation_state str
    The validation state of the ASN associated with the peer.
    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.
    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.
    validationState String
    The validation state of the ASN associated with the peer.
    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.

    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 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi