Skip to main content

groups

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

Overview

Namegroups
TypeResource
Idazure.network.groups

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
member_typetextfield from the properties object
networkGroupNametextfield from the properties object
networkManagerNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkGroupName, networkManagerName, resourceGroupName, subscriptionIdGets the specified network group.
listSELECTnetworkManagerName, resourceGroupName, subscriptionIdLists the specified network group.
create_or_updateINSERTnetworkGroupName, networkManagerName, resourceGroupName, subscriptionIdCreates or updates a network group.
deleteDELETEnetworkGroupName, networkManagerName, resourceGroupName, subscriptionIdDeletes a network group.

SELECT examples

Lists the specified network group.

SELECT
id,
name,
description,
etag,
member_type,
networkGroupName,
networkManagerName,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
system_data,
type
FROM azure.network.vw_groups
WHERE networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.groups (
networkGroupName,
networkManagerName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ networkGroupName }}',
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified groups resource.

/*+ delete */
DELETE FROM azure.network.groups
WHERE networkGroupName = '{{ networkGroupName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';