PeerAsns interface
Interface representing a PeerAsns.
Methods
create |
Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription. |
delete(string, Peer |
Deletes an existing peer ASN with the specified name under the given subscription. |
get(string, Peer |
Gets the peer ASN with the specified name under the given subscription. |
list |
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.
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
The options parameters.