Skip to main content

registered_asns

Creates, updates, deletes, gets or lists a registered_asns resource.

Overview

Nameregistered_asns
TypeResource
Idazure.peering.registered_asns

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
propertiesobjectThe properties that define a registered ASN.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, peeringName, registeredAsnName, subscriptionIdGets an existing registered ASN with the specified name under the given subscription, resource group and peering.
list_by_peeringselectresourceGroupName, peeringName, subscriptionIdLists all registered ASNs under the given subscription, resource group and peering.
create_or_updateinsertresourceGroupName, peeringName, registeredAsnName, subscriptionIdCreates a new registered ASN with the specified name under the given subscription, resource group and peering.
deletedeleteresourceGroupName, peeringName, registeredAsnName, subscriptionIdDeletes an existing registered ASN with the specified name under the given subscription, resource group and peering.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
peeringNamestringThe name of the peering.
registeredAsnNamestringThe name of the registered ASN.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe Azure subscription ID.

SELECT examples

Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.

SELECT
id,
name,
properties,
type
FROM azure.peering.registered_asns
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND peeringName = '{{ peeringName }}' -- required
AND registeredAsnName = '{{ registeredAsnName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new registered ASN with the specified name under the given subscription, resource group and peering.

INSERT INTO azure.peering.registered_asns (
data__properties,
resourceGroupName,
peeringName,
registeredAsnName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ peeringName }}',
'{{ registeredAsnName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.

DELETE FROM azure.peering.registered_asns
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND peeringName = '{{ peeringName }}' --required
AND registeredAsnName = '{{ registeredAsnName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;