Skip to main content

ip_groups

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

Overview

Nameip_groups
TypeResource
Idazure.network.ip_groups

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting IpGroups resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the IpGroups.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, ipGroupsName, subscriptionId$expandGets the specified ipGroups.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all IpGroups in a resource group.
listselectsubscriptionIdGets all IpGroups in a subscription.
create_or_updateinsertresourceGroupName, ipGroupsName, subscriptionIdCreates or updates an ipGroups in a specified resource group.
updateupdateresourceGroupName, ipGroupsName, subscriptionIdUpdates tags of an IpGroups resource.
deletedeleteresourceGroupName, ipGroupsName, subscriptionIdDeletes the specified ipGroups.

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
ipGroupsNamestringThe name of the ipGroups.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource.

SELECT examples

Gets the specified ipGroups.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.ip_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND ipGroupsName = '{{ ipGroupsName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates an ipGroups in a specified resource group.

INSERT INTO azure.network.ip_groups (
data__properties,
resourceGroupName,
ipGroupsName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ ipGroupsName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

UPDATE examples

Updates tags of an IpGroups resource.

UPDATE azure.network.ip_groups
SET
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND ipGroupsName = '{{ ipGroupsName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes the specified ipGroups.

DELETE FROM azure.network.ip_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND ipGroupsName = '{{ ipGroupsName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;