Skip to main content

clients

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

Overview

Nameclients
TypeResource
Idazure.event_grid.clients

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
attributestextfield from the properties object
authentication_nametextfield from the properties object
clientNametextfield from the properties object
client_certificate_authenticationtextfield from the properties object
namespaceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield 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
getSELECTclientName, namespaceName, resourceGroupName, subscriptionIdGet properties of a client.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGet all the permission bindings under a namespace.
create_or_updateINSERTclientName, namespaceName, resourceGroupName, subscriptionIdCreate or update a client with the specified parameters.
deleteDELETEclientName, namespaceName, resourceGroupName, subscriptionIdDelete an existing client.

SELECT examples

Get all the permission bindings under a namespace.

SELECT
id,
name,
description,
attributes,
authentication_name,
clientName,
client_certificate_authentication,
namespaceName,
provisioning_state,
resourceGroupName,
state,
subscriptionId,
system_data,
type
FROM azure.event_grid.vw_clients
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified clients resource.

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