UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

72 lines (71 loc) 2.35 kB
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>; }