Skip to main content

client_groups

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

Overview

Nameclient_groups
TypeResource
Idazure.event_grid.client_groups

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
descriptiontextfield from the properties object
clientGroupNametextfield from the properties object
namespaceNametextfield from the properties object
provisioning_statetextfield from the properties object
querytextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTclientGroupName, namespaceName, resourceGroupName, subscriptionIdGet properties of a client group.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGet all the client groups under a namespace.
create_or_updateINSERTclientGroupName, namespaceName, resourceGroupName, subscriptionIdCreate or update a client group with the specified parameters.
deleteDELETEclientGroupName, namespaceName, resourceGroupName, subscriptionIdDelete an existing client group.

SELECT examples

Get all the client groups under a namespace.

SELECT
id,
name,
description,
clientGroupName,
namespaceName,
provisioning_state,
query,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.event_grid.vw_client_groups
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.client_groups (
clientGroupName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ clientGroupName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified client_groups resource.

/*+ delete */
DELETE FROM azure.event_grid.client_groups
WHERE clientGroupName = '{{ clientGroupName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';