Skip to main content

ip_groups

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

Overview

Nameip_groups
TypeResource
Idazure.network.ip_groups

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
etagtextA unique read-only string that changes whenever the resource is updated.
firewall_policiestextfield from the properties object
firewallstextfield from the properties object
ipGroupsNametextfield from the properties object
ip_addressestextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTipGroupsName, resourceGroupName, subscriptionIdGets the specified ipGroups.
listSELECTsubscriptionIdGets all IpGroups in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all IpGroups in a resource group.
create_or_updateINSERTipGroupsName, resourceGroupName, subscriptionIdCreates or updates an ipGroups in a specified resource group.
deleteDELETEipGroupsName, resourceGroupName, subscriptionIdDeletes the specified ipGroups.
updateUPDATEipGroupsName, resourceGroupName, subscriptionIdUpdates tags of an IpGroups resource.

SELECT examples

Gets all IpGroups in a subscription.

SELECT
id,
name,
etag,
firewall_policies,
firewalls,
ipGroupsName,
ip_addresses,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.network.vw_ip_groups
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.ip_groups (
ipGroupsName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ ipGroupsName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a ip_groups resource.

/*+ update */
UPDATE azure.network.ip_groups
SET
tags = '{{ tags }}'
WHERE
ipGroupsName = '{{ ipGroupsName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified ip_groups resource.

/*+ delete */
DELETE FROM azure.network.ip_groups
WHERE ipGroupsName = '{{ ipGroupsName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';