az providerhub notification-registration

참고 항목

이 참조는 Azure CLI(버전 2.15.0 이상)에 대한 providerhub 확장의 일부입니다. az providerhub notification-registration 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장 프로그램에 대해 자세히 알아보세요.

providerhub를 사용하여 알림 등록을 관리합니다.

명령

Name Description 형식 상태
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로 보내는 방법을 결정합니다. 사용 가능한 두 가지 모드는 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

하나 이상의 리소스 ID(공백으로 구분)입니다. '리소스 ID' 인수의 모든 정보를 포함하는 전체 리소스 ID여야 합니다. --ids 또는 다른 '리소스 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

하나 이상의 리소스 ID(공백으로 구분)입니다. '리소스 ID' 인수의 모든 정보를 포함하는 전체 리소스 ID여야 합니다. --ids 또는 다른 '리소스 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를 사용합니다.