RegisteredAsns interface
Interface representing a RegisteredAsns.
Methods
create |
Creates a new registered ASN with the specified name under the given subscription, resource group and peering. |
delete(string, string, string, Registered |
Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering. |
get(string, string, string, Registered |
Gets an existing registered ASN with the specified name under the given subscription, resource group and peering. |
list |
Lists all registered ASNs under the given subscription, resource group and peering. |
Method Details
createOrUpdate(string, string, string, PeeringRegisteredAsn, RegisteredAsnsCreateOrUpdateOptionalParams)
Creates a new registered ASN with the specified name under the given subscription, resource group and peering.
function createOrUpdate(resourceGroupName: string, peeringName: string, registeredAsnName: string, registeredAsn: PeeringRegisteredAsn, options?: RegisteredAsnsCreateOrUpdateOptionalParams): Promise<PeeringRegisteredAsn>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- peeringName
-
string
The name of the peering.
- registeredAsnName
-
string
The name of the ASN.
- registeredAsn
- PeeringRegisteredAsn
The properties needed to create a registered ASN.
The options parameters.
Returns
Promise<PeeringRegisteredAsn>
delete(string, string, string, RegisteredAsnsDeleteOptionalParams)
Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.
function delete(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: RegisteredAsnsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- peeringName
-
string
The name of the peering.
- registeredAsnName
-
string
The name of the registered ASN.
The options parameters.
Returns
Promise<void>
get(string, string, string, RegisteredAsnsGetOptionalParams)
Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
function get(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: RegisteredAsnsGetOptionalParams): Promise<PeeringRegisteredAsn>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- peeringName
-
string
The name of the peering.
- registeredAsnName
-
string
The name of the registered ASN.
- options
- RegisteredAsnsGetOptionalParams
The options parameters.
Returns
Promise<PeeringRegisteredAsn>
listByPeering(string, string, RegisteredAsnsListByPeeringOptionalParams)
Lists all registered ASNs under the given subscription, resource group and peering.
function listByPeering(resourceGroupName: string, peeringName: string, options?: RegisteredAsnsListByPeeringOptionalParams): PagedAsyncIterableIterator<PeeringRegisteredAsn, PeeringRegisteredAsn[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- peeringName
-
string
The name of the peering.
The options parameters.