Skip to main content

notification_registrations

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

Overview

Namenotification_registrations
TypeResource
Idazure.provider_hub.notification_registrations

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobject
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTnotificationRegistrationName, providerNamespace, subscriptionIdGets the notification registration details.
list_by_provider_registrationSELECTproviderNamespace, subscriptionIdGets the list of the notification registrations for the given provider.
create_or_updateINSERTnotificationRegistrationName, providerNamespace, subscriptionIdCreates or updates a notification registration.
deleteDELETEnotificationRegistrationName, providerNamespace, subscriptionIdDeletes 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.

/*+ create */
INSERT INTO azure.provider_hub.notification_registrations (
notificationRegistrationName,
providerNamespace,
subscriptionId,
properties
)
SELECT
'{{ notificationRegistrationName }}',
'{{ providerNamespace }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';