@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.35 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets the peer ASN with the specified name under the given subscription.
*
* Uses Azure REST API version 2022-10-01.
*
* Other available API versions: 2025-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native peering [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getPeerAsn(args: GetPeerAsnArgs, opts?: pulumi.InvokeOptions): Promise<GetPeerAsnResult>;
export interface GetPeerAsnArgs {
/**
* The peer ASN name.
*/
peerAsnName: string;
}
/**
* The essential information related to the peer's ASN.
*/
export interface GetPeerAsnResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The error message for the validation state
*/
readonly errorMessage: string;
/**
* The ID of the resource.
*/
readonly id: string;
/**
* The name of the resource.
*/
readonly name: string;
/**
* The Autonomous System Number (ASN) of the peer.
*/
readonly peerAsn?: number;
/**
* The contact details of the peer.
*/
readonly peerContactDetail?: outputs.peering.ContactDetailResponse[];
/**
* The name of the peer.
*/
readonly peerName?: string;
/**
* The type of the resource.
*/
readonly type: string;
/**
* The validation state of the ASN associated with the peer.
*/
readonly validationState: string;
}
/**
* Gets the peer ASN with the specified name under the given subscription.
*
* Uses Azure REST API version 2022-10-01.
*
* Other available API versions: 2025-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native peering [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getPeerAsnOutput(args: GetPeerAsnOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPeerAsnResult>;
export interface GetPeerAsnOutputArgs {
/**
* The peer ASN name.
*/
peerAsnName: pulumi.Input<string>;
}