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

The following fields are returned by SELECT queries:

Successfully retrieved the notification registration.

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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, providerNamespace, notificationRegistrationNameGets the notification registration details.
list_by_provider_registrationselectsubscriptionId, providerNamespaceGets the list of the notification registrations for the given provider.
create_or_updateinsertsubscriptionId, providerNamespace, notificationRegistrationNameCreates or updates a notification registration.
deletedeletesubscriptionId, providerNamespace, notificationRegistrationNameDeletes a notification registration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
notificationRegistrationNamestringThe notification registration.
providerNamespacestringThe name of the resource provider hosted within ProviderHub.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the notification registration details.

SELECT
id,
name,
properties,
type
FROM azure.provider_hub.notification_registrations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND providerNamespace = '{{ providerNamespace }}' -- required
AND notificationRegistrationName = '{{ notificationRegistrationName }}' -- required
;

INSERT examples

Creates or updates a notification registration.

INSERT INTO azure.provider_hub.notification_registrations (
data__properties,
subscriptionId,
providerNamespace,
notificationRegistrationName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ providerNamespace }}',
'{{ notificationRegistrationName }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Deletes a notification registration.

DELETE FROM azure.provider_hub.notification_registrations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND providerNamespace = '{{ providerNamespace }}' --required
AND notificationRegistrationName = '{{ notificationRegistrationName }}' --required
;