permission_bindings
Creates, updates, deletes, gets or lists a permission_bindings
resource.
Overview
Name | permission_bindings |
Type | Resource |
Id | azure.event_grid.permission_bindings |
Fields
- vw_permission_bindings
- permission_bindings
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
description | text | field from the properties object |
client_group_name | text | field from the properties object |
namespaceName | text | field from the properties object |
permission | text | field from the properties object |
permissionBindingName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
topic_space_name | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | The properties of permission binding. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | namespaceName, permissionBindingName, resourceGroupName, subscriptionId | Get properties of a permission binding. |
list_by_namespace | SELECT | namespaceName, resourceGroupName, subscriptionId | Get all the permission bindings under a namespace. |
create_or_update | INSERT | namespaceName, permissionBindingName, resourceGroupName, subscriptionId | Create or update a permission binding with the specified parameters. |
delete | DELETE | namespaceName, permissionBindingName, resourceGroupName, subscriptionId | Delete an existing permission binding. |
SELECT
examples
Get all the permission bindings under a namespace.
- vw_permission_bindings
- permission_bindings
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.event_grid.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.permission_bindings (
namespaceName,
permissionBindingName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ namespaceName }}',
'{{ permissionBindingName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: description
value: string
- name: topicSpaceName
value: string
- name: permission
value: string
- name: clientGroupName
value: string
- name: provisioningState
value: string
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 }}';