Skip to main content

ip_prefixes

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

Overview

Nameip_prefixes
TypeResource
Idazure.managed_network_fabric.ip_prefixes

Fields

NameDatatypeDescription
administrative_statetextfield from the properties object
annotationtextfield from the properties object
configuration_statetextfield from the properties object
ipPrefixNametextfield from the properties object
ip_prefix_rulestextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTipPrefixName, resourceGroupName, subscriptionIdImplements IP Prefix GET method.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdImplements IpPrefixes list by resource group GET method.
list_by_subscriptionSELECTsubscriptionIdImplements IpPrefixes list by subscription GET method.
createINSERTipPrefixName, resourceGroupName, subscriptionId, data__location, data__propertiesImplements IP Prefix PUT method.
deleteDELETEipPrefixName, resourceGroupName, subscriptionIdImplements IP Prefix DELETE method.
updateUPDATEipPrefixName, resourceGroupName, subscriptionIdAPI to update certain properties of the IP Prefix resource.

SELECT examples

Implements IpPrefixes list by subscription GET method.

SELECT
administrative_state,
annotation,
configuration_state,
ipPrefixName,
ip_prefix_rules,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_ip_prefixes
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network_fabric.ip_prefixes (
ipPrefixName,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
tags,
location,
properties
)
SELECT
'{{ ipPrefixName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a ip_prefixes resource.

/*+ update */
UPDATE azure.managed_network_fabric.ip_prefixes
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
ipPrefixName = '{{ ipPrefixName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified ip_prefixes resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.ip_prefixes
WHERE ipPrefixName = '{{ ipPrefixName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';