共用方式為


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