Skip to main content

permission_bindings

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

Overview

Namepermission_bindings
TypeResource
Idazure.event_grid.permission_bindings

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
client_group_nametextfield from the properties object
namespaceNametextfield from the properties object
permissiontextfield from the properties object
permissionBindingNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
topic_space_nametextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, permissionBindingName, resourceGroupName, subscriptionIdGet properties of a permission binding.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGet all the permission bindings under a namespace.
create_or_updateINSERTnamespaceName, permissionBindingName, resourceGroupName, subscriptionIdCreate or update a permission binding with the specified parameters.
deleteDELETEnamespaceName, permissionBindingName, resourceGroupName, subscriptionIdDelete an existing permission binding.

SELECT examples

Get all the permission bindings under a namespace.

SELECT
id,
name,
description,
client_group_name,
namespaceName,
permission,
permissionBindingName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
topic_space_name,
type
FROM azure.event_grid.vw_permission_bindings
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified permission_bindings resource.

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