你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PeerAsns interface

Interface representing a PeerAsns.

Methods

createOrUpdate(string, PeerAsn, PeerAsnsCreateOrUpdateOptionalParams)

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

delete(string, PeerAsnsDeleteOptionalParams)

Deletes an existing peer ASN with the specified name under the given subscription.

get(string, PeerAsnsGetOptionalParams)

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

listBySubscription(PeerAsnsListBySubscriptionOptionalParams)

Lists all of the peer ASNs under the given subscription.

Method Details

createOrUpdate(string, PeerAsn, PeerAsnsCreateOrUpdateOptionalParams)

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

function createOrUpdate(peerAsnName: string, peerAsn: PeerAsn, options?: PeerAsnsCreateOrUpdateOptionalParams): Promise<PeerAsn>

Parameters

peerAsnName

string

The peer ASN name.

peerAsn
PeerAsn

The peer ASN.

options
PeerAsnsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PeerAsn>

delete(string, PeerAsnsDeleteOptionalParams)

Deletes an existing peer ASN with the specified name under the given subscription.

function delete(peerAsnName: string, options?: PeerAsnsDeleteOptionalParams): Promise<void>

Parameters

peerAsnName

string

The peer ASN name.

options
PeerAsnsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, PeerAsnsGetOptionalParams)

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

function get(peerAsnName: string, options?: PeerAsnsGetOptionalParams): Promise<PeerAsn>

Parameters

peerAsnName

string

The peer ASN name.

options
PeerAsnsGetOptionalParams

The options parameters.

Returns

Promise<PeerAsn>

listBySubscription(PeerAsnsListBySubscriptionOptionalParams)

Lists all of the peer ASNs under the given subscription.

function listBySubscription(options?: PeerAsnsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<PeerAsn, PeerAsn[], PageSettings>

Parameters

options
PeerAsnsListBySubscriptionOptionalParams

The options parameters.

Returns