Share via


az providerhub notification-registration

Note

このリファレンスは、Azure CLI (バージョン 2.15.0 以降) の providerhub 拡張機能の一部です。 拡張機能は、az providerhub notification-registration コマンドを初めて実行するときに自動的にインストールされます。 拡張機能の詳細をご覧ください。

providerhub で通知登録を管理します。

コマンド

名前 説明 Status
az providerhub notification-registration create

通知登録を作成します。

拡張 GA
az providerhub notification-registration delete

通知登録を削除します。

拡張 GA
az providerhub notification-registration list

指定されたプロバイダーの通知登録の一覧を取得します。

拡張 GA
az providerhub notification-registration show

通知登録の詳細を取得します。

拡張 GA

az providerhub notification-registration create

通知登録を作成します。

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

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"

必須のパラメーター

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

通知の登録。

--provider-namespace

ProviderHub 内でホストされているリソース プロバイダーの名前。

省略可能のパラメーター

--included-events

RP にメッセージを送信するイベントを次に示します。 メッセージ形式は{RP 名前空間}/{リソースの種類}/{action}の形式です。 可用性アクションは、書き込み、削除、移動/アクションです。

--message-scope

RP に送信されるメッセージを制限します。 既定値は RegisteredSubscriptions です。 使用可能な値は、グローバル (Azure のすべてのメッセージ) と RegisteredSubscriptions (RP によって登録されたサブスクリプション内のメッセージのみ) です。

承認された値: NotSpecified, RegisteredSubscriptions
--notification-endpoints

これらは、通知メッセージの場所です。 通知は、イベント リソースの場所のリージョンに送信されます (たとえば、米国東部の VM は、米国東部の指定されたエンドポイントにメッセージを送信します)。

使用法: --notification-endpoints notification-destination=XX locations=XX

複数の --notification-endpoints 引数を使用して、複数のアクションを指定できます。

--notification-mode

通知を RP に送信する方法を決定します。 使用可能な 2 つのモードは、EventHub と Webhook です。

承認された値: EventHub, NotSpecified, WebHook
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az providerhub notification-registration delete

通知登録を削除します。

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

NotificationRegistrations_Delete

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

省略可能のパラメーター

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

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

通知の登録。

--provider-namespace

ProviderHub 内でホストされているリソース プロバイダーの名前。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--yes -y

確認のダイアログを表示しません。

既定値: False
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az providerhub notification-registration list

指定されたプロバイダーの通知登録の一覧を取得します。

az providerhub notification-registration list --provider-namespace

NotificationRegistrations_ListByProviderRegistration

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

必須のパラメーター

--provider-namespace

ProviderHub 内でホストされているリソース プロバイダーの名前。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az providerhub notification-registration show

通知登録の詳細を取得します。

az providerhub notification-registration show [--ids]
                                              [--name]
                                              [--provider-namespace]
                                              [--subscription]

NotificationRegistrations_Get

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

省略可能のパラメーター

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

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

通知の登録。

--provider-namespace

ProviderHub 内でホストされているリソース プロバイダーの名前。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。