az providerhub notification-registration

Hinweis

Dieser Verweis ist Teil der Providerhub-Erweiterung für die Azure CLI (Version 2.15.0 oder höher). Die Erweiterung wird automatisch installiert, wenn Sie zum ersten Mal einen Az Providerhub-Benachrichtigungsregistrierungsbefehl ausführen. Weitere Informationen zu Erweiterungen

Verwalten der Benachrichtigungsregistrierung mit Anbieterhub.

Befehle

az providerhub notification-registration create

Erstellen Sie eine Benachrichtigungsregistrierung.

az providerhub notification-registration delete

Löscht eine Benachrichtigungsregistrierung.

az providerhub notification-registration list

Ruft die Liste der Benachrichtigungsregistrierungen für den angegebenen Anbieter ab.

az providerhub notification-registration show

Ruft die Benachrichtigungsregistrierungsdetails ab.

az providerhub notification-registration create

Erstellen Sie eine Benachrichtigungsregistrierung.

az providerhub notification-registration create --name
                                                --provider-namespace
                                                [--included-events]
                                                [--message-scope {NotSpecified, RegisteredSubscriptions}]
                                                [--notification-endpoints]
                                                [--notification-mode {EventHub, NotSpecified, WebHook}]

Beispiele

NotificationRegistrations_CreateOrUpdate

az providerhub notification-registration create --name "testNotificationRegistration" --included-events "*/write" "Microsoft.Contoso/employees/delete" --message-scope "RegisteredSubscriptions" --notification-endpoints locations="" locations="East US" notification-destination="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications" --notification-endpoints locations="North Europe" notification-destination="/subscriptions/00000000-0000-0000-0000-000000000000   /resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications" --notification-mode "EventHub" --provider-namespace "Microsoft.Contoso"

Erforderliche Parameter

--name --notification-registration-name -n

Die Benachrichtigungsregistrierung.

--provider-namespace

Der Name des Ressourcenanbieters, der in ProviderHub gehostet wird.

Optionale Parameter

--included-events

Dies sind die Ereignisse, auf denen das RP gesendet werden soll. Das Nachrichtenformat befindet sich im Formular {RP Namespace}/{Resource Type}/{action}. Die verfügbaren Aktionen sind: Schreiben, Löschen und Verschieben/Aktion.

--message-scope

Beschränkt die Nachrichten, die an das RP gesendet werden. Der Standardwert ist "RegisteredSubscriptions". Die verfügbaren Werte sind global (alle Nachrichten in Azure) und RegisteredSubscriptions (nur Nachrichten in Abonnements, die von RP registriert sind).

Zulässige Werte: NotSpecified, RegisteredSubscriptions
--notification-endpoints

Dies sind die Speicherorte für die Benachrichtigungsnachrichten. Benachrichtigungen werden an die Region des Standorts der Ereignisressource gesendet (z. B. VM in Ost-US sendet Nachricht an den angegebenen Endpunkt in Ost-US).

--notification-mode

Bestimmt, wie die Benachrichtigungen an das RP gesendet werden. Die beiden verfügbaren Modi sind EventHub und Webhook.

Zulässige Werte: EventHub, NotSpecified, WebHook

az providerhub notification-registration delete

Löscht eine Benachrichtigungsregistrierung.

az providerhub notification-registration delete --name
                                                --provider-namespace
                                                [--yes]

Beispiele

NotificationRegistrations_Delete

az providerhub notification-registration delete --name "testNotificationRegistration" --provider-namespace "Microsoft.Contoso"

Erforderliche Parameter

--name --notification-registration-name -n

Die Benachrichtigungsregistrierung.

--provider-namespace

Der Name des Ressourcenanbieters, der in ProviderHub gehostet wird.

Optionale Parameter

--yes -y

Nicht zur Bestätigung auffordern

az providerhub notification-registration list

Ruft die Liste der Benachrichtigungsregistrierungen für den angegebenen Anbieter ab.

az providerhub notification-registration list --provider-namespace

Beispiele

NotificationRegistrations_ListByProviderRegistration

az providerhub notification-registration list --provider-namespace "Microsoft.Contoso"

Erforderliche Parameter

--provider-namespace

Der Name des Ressourcenanbieters, der in ProviderHub gehostet wird.

az providerhub notification-registration show

Ruft die Benachrichtigungsregistrierungsdetails ab.

az providerhub notification-registration show --name
                                              --provider-namespace

Beispiele

NotificationRegistrations_Get

az providerhub notification-registration show --name "testNotificationRegistration" --provider-namespace "Microsoft.Contoso"

Erforderliche Parameter

--name --notification-registration-name -n

Die Benachrichtigungsregistrierung.

--provider-namespace

Der Name des Ressourcenanbieters, der in ProviderHub gehostet wird.