Skip to main content

prefixes

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

Overview

Nameprefixes
TypeResource
Idazure.peering.prefixes

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
error_messagetextfield from the properties object
eventstextfield from the properties object
learned_typetextfield from the properties object
peeringServiceNametextfield from the properties object
peering_service_prefix_keytextfield from the properties object
prefixtextfield from the properties object
prefixNametextfield from the properties object
prefix_validation_statetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpeeringServiceName, prefixName, resourceGroupName, subscriptionIdGets an existing prefix with the specified name under the given subscription, resource group and peering service.
list_by_peering_serviceSELECTpeeringServiceName, resourceGroupName, subscriptionIdLists all prefixes under the given subscription, resource group and peering service.
create_or_updateINSERTpeeringServiceName, prefixName, resourceGroupName, subscriptionIdCreates a new prefix with the specified name under the given subscription, resource group and peering service.
deleteDELETEpeeringServiceName, prefixName, resourceGroupName, subscriptionIdDeletes an existing prefix with the specified name under the given subscription, resource group and peering service.

SELECT examples

Lists all prefixes under the given subscription, resource group and peering service.

SELECT
id,
name,
error_message,
events,
learned_type,
peeringServiceName,
peering_service_prefix_key,
prefix,
prefixName,
prefix_validation_state,
provisioning_state,
resourceGroupName,
subscriptionId,
type
FROM azure.peering.vw_prefixes
WHERE peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new prefixes resource.

/*+ create */
INSERT INTO azure.peering.prefixes (
peeringServiceName,
prefixName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ peeringServiceName }}',
'{{ prefixName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified prefixes resource.

/*+ delete */
DELETE FROM azure.peering.prefixes
WHERE peeringServiceName = '{{ peeringServiceName }}'
AND prefixName = '{{ prefixName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';