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

azure-native.peering.getPeerAsn

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Gets the peer ASN with the specified name under the given subscription.

Uses Azure REST API version 2022-10-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>
Copy
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]
Copy
func LookupPeerAsn(ctx *Context, args *LookupPeerAsnArgs, opts ...InvokeOption) (*LookupPeerAsnResult, error)
func LookupPeerAsnOutput(ctx *Context, args *LookupPeerAsnOutputArgs, opts ...InvokeOption) LookupPeerAsnResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPeerAsnResult> getPeerAsn(GetPeerAsnArgs args, InvokeOptions options)
public static Output<GetPeerAsnResult> getPeerAsn(GetPeerAsnArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:peering:getPeerAsn
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PeerAsnName
This property is required.
Changes to this property will trigger replacement.
string
The peer ASN name.
PeerAsnName
This property is required.
Changes to this property will trigger replacement.
string
The peer ASN name.
peerAsnName
This property is required.
Changes to this property will trigger replacement.
String
The peer ASN name.
peerAsnName
This property is required.
Changes to this property will trigger replacement.
string
The peer ASN name.
peer_asn_name
This property is required.
Changes to this property will trigger replacement.
str
The peer ASN name.
peerAsnName
This property is required.
Changes to this property will trigger replacement.
String
The peer ASN name.

getPeerAsn Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
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.
AzureApiVersion string
The Azure API version of the resource.
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.
azureApiVersion String
The Azure API version of the resource.
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.
azureApiVersion string
The Azure API version of the resource.
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.
azure_api_version str
The Azure API version of the resource.
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.
azureApiVersion String
The Azure API version of the resource.
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
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi