ip_groups
Creates, updates, deletes, gets or lists a ip_groups
resource.
Overview
Name | ip_groups |
Type | Resource |
Id | azure.network.ip_groups |
Fields
- vw_ip_groups
- ip_groups
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
etag | text | A unique read-only string that changes whenever the resource is updated. |
firewall_policies | text | field from the properties object |
firewalls | text | field from the properties object |
ipGroupsName | text | field from the properties object |
ip_addresses | text | field from the properties object |
location | text | Resource location. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
properties | object | The IpGroups property information. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | ipGroupsName, resourceGroupName, subscriptionId | Gets the specified ipGroups. |
list | SELECT | subscriptionId | Gets all IpGroups in a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets all IpGroups in a resource group. |
create_or_update | INSERT | ipGroupsName, resourceGroupName, subscriptionId | Creates or updates an ipGroups in a specified resource group. |
delete | DELETE | ipGroupsName, resourceGroupName, subscriptionId | Deletes the specified ipGroups. |
update | UPDATE | ipGroupsName, resourceGroupName, subscriptionId | Updates tags of an IpGroups resource. |
SELECT
examples
Gets all IpGroups in a subscription.
- vw_ip_groups
- ip_groups
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 }}';
SELECT
id,
name,
etag,
location,
properties,
tags,
type
FROM azure.network.ip_groups
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new ip_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.ip_groups (
ipGroupsName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ ipGroupsName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: ipAddresses
value:
- string
- name: firewalls
value:
- - name: id
value: string
- name: firewallPolicies
value:
- - name: id
value: string
- name: etag
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
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 }}';