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:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
firewallPoliciesarrayList of references to Firewall Policies resources that this IpGroups is associated with.
firewallsarrayList of references to Firewall resources that this IpGroups is associated with.
ipAddressesarrayIpAddresses/IpAddressPrefixes in the IpGroups resource.
locationstringResource location.
provisioningStatestringThe provisioning state of the IpGroups resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, ip_groups_name, subscription_id$expandGets the specified ipGroups.
list_by_resource_groupselectresource_group_name, subscription_idGets all IpGroups in a resource group.
listselectsubscription_idGets all IpGroups in a subscription.
create_or_updateinsertresource_group_name, ip_groups_name, subscription_idCreates or updates an ipGroups in a specified resource group.
create_or_updatereplaceresource_group_name, ip_groups_name, subscription_idCreates or updates an ipGroups in a specified resource group.
deletedeleteresource_group_name, ip_groups_name, subscription_idDeletes the specified ipGroups.
update_groupsexecresource_group_name, ip_groups_name, subscription_idUpdates tags of an IpGroups resource.

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
ip_groups_namestringThe name of the ipGroups. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringExpands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. Default value is None.

SELECT examples

Gets the specified ipGroups.

SELECT
id,
name,
etag,
firewallPolicies,
firewalls,
ipAddresses,
location,
provisioningState,
tags,
type
FROM azure.network.ip_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND ip_groups_name = '{{ ip_groups_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates an ipGroups in a specified resource group.

INSERT INTO azure.network.ip_groups (
id,
location,
tags,
properties,
resource_group_name,
ip_groups_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ ip_groups_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

REPLACE examples

Creates or updates an ipGroups in a specified resource group.

REPLACE azure.network.ip_groups
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND ip_groups_name = '{{ ip_groups_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

DELETE examples

Deletes the specified ipGroups.

DELETE FROM azure.network.ip_groups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND ip_groups_name = '{{ ip_groups_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Updates tags of an IpGroups resource.

EXEC azure.network.ip_groups.update_groups 
@resource_group_name='{{ resource_group_name }}' --required,
@ip_groups_name='{{ ip_groups_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;