Skip to main content

prefixes

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

Overview

Nameprefixes
TypeResource
Idazure.peering.prefixes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
propertiesobjectGets or sets the peering prefix properties.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, peeringServiceName, prefixName, subscriptionId$expandGets an existing prefix with the specified name under the given subscription, resource group and peering service.
list_by_peering_serviceselectresourceGroupName, peeringServiceName, subscriptionId$expandLists all prefixes under the given subscription, resource group and peering service.
create_or_updateinsertresourceGroupName, peeringServiceName, prefixName, subscriptionIdCreates a new prefix with the specified name under the given subscription, resource group and peering service.
deletedeleteresourceGroupName, peeringServiceName, prefixName, subscriptionIdDeletes an existing prefix with the specified name under the given subscription, resource group and peering service.

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
peeringServiceNamestringThe name of the peering service.
prefixNamestringThe name of the prefix.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe Azure subscription ID.
$expandstringThe properties to be expanded.

SELECT examples

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

SELECT
id,
name,
properties,
type
FROM azure.peering.prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND peeringServiceName = '{{ peeringServiceName }}' -- required
AND prefixName = '{{ prefixName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

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

INSERT INTO azure.peering.prefixes (
data__properties,
resourceGroupName,
peeringServiceName,
prefixName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ peeringServiceName }}',
'{{ prefixName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

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

DELETE FROM azure.peering.prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND peeringServiceName = '{{ peeringServiceName }}' --required
AND prefixName = '{{ prefixName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;