Skip to main content

registered_prefixes

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

Overview

Nameregistered_prefixes
TypeResource
Idazure.peering.registered_prefixes

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 prefix.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, peeringName, registeredPrefixName, subscriptionIdGets an existing registered prefix with the specified name under the given subscription, resource group and peering.
list_by_peeringselectresourceGroupName, peeringName, subscriptionIdLists all registered prefixes under the given subscription, resource group and peering.
create_or_updateinsertresourceGroupName, peeringName, registeredPrefixName, subscriptionIdCreates a new registered prefix with the specified name under the given subscription, resource group and peering.
deletedeleteresourceGroupName, peeringName, registeredPrefixName, subscriptionIdDeletes an existing registered prefix with the specified name under the given subscription, resource group and peering.
validateexecresourceGroupName, peeringName, registeredPrefixName, subscriptionIdValidates an existing registered prefix 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.
registeredPrefixNamestringThe name of the registered prefix.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe Azure subscription ID.

SELECT examples

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

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

INSERT examples

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

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

DELETE examples

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

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

Lifecycle Methods

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

EXEC azure.peering.registered_prefixes.validate 
@resourceGroupName='{{ resourceGroupName }}' --required,
@peeringName='{{ peeringName }}' --required,
@registeredPrefixName='{{ registeredPrefixName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;