notification_registrations
Creates, updates, deletes, gets or lists a notification_registrations
resource.
Overview
Name | notification_registrations |
Type | Resource |
Id | azure.provider_hub.notification_registrations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | |
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 | notificationRegistrationName, providerNamespace, subscriptionId | Gets the notification registration details. |
list_by_provider_registration | SELECT | providerNamespace, subscriptionId | Gets the list of the notification registrations for the given provider. |
create_or_update | INSERT | notificationRegistrationName, providerNamespace, subscriptionId | Creates or updates a notification registration. |
delete | DELETE | notificationRegistrationName, providerNamespace, subscriptionId | Deletes a notification registration. |
SELECT
examples
Gets the list of the notification registrations for the given provider.
SELECT
id,
name,
properties,
type
FROM azure.provider_hub.notification_registrations
WHERE providerNamespace = '{{ providerNamespace }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new notification_registrations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.provider_hub.notification_registrations (
notificationRegistrationName,
providerNamespace,
subscriptionId,
properties
)
SELECT
'{{ notificationRegistrationName }}',
'{{ providerNamespace }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value: string
DELETE
example
Deletes the specified notification_registrations
resource.
/*+ delete */
DELETE FROM azure.provider_hub.notification_registrations
WHERE notificationRegistrationName = '{{ notificationRegistrationName }}'
AND providerNamespace = '{{ providerNamespace }}'
AND subscriptionId = '{{ subscriptionId }}';