Share via


az eventgrid partner namespace channel

管理合作夥伴頻道。

命令

名稱 Description 類型 狀態
az eventgrid partner namespace channel create

建立合作夥伴命名空間的新通道。

核心 GA
az eventgrid partner namespace channel delete

刪除夥伴命名空間。

核心 GA
az eventgrid partner namespace channel list

列出可用的合作夥伴頻道。

核心 GA
az eventgrid partner namespace channel show

取得合作夥伴命名空間下通道的詳細資料。

核心 GA
az eventgrid partner namespace channel update

更新合作夥伴命名空間下通道的詳細資料。

核心 GA

az eventgrid partner namespace channel create

建立合作夥伴命名空間的新通道。

az eventgrid partner namespace channel create --channel-type {PartnerDestination, PartnerTopic}
                                              --destination-rg
                                              --destination-sub-id
                                              --name
                                              --partner-namespace-name
                                              --resource-group
                                              [--aad-app-id]
                                              [--aad-tenant-id]
                                              [--act-exp-date]
                                              [--ed-serv-cont]
                                              [--endpoint-url]
                                              [--event-type-kind {inline}]
                                              [--inline-event-type]
                                              [--message-for-activation]
                                              [--partner-destination-name]
                                              [--partner-topic-name]
                                              [--partner-topic-source]

範例

使用內嵌事件種類建立 PartnerDestination 類型的新通道。

az eventgrid partner namespace channel create -g rg1 --name channel1 \
  --channel-type PartnerDestination --partner-namespace-name namespace1 \
  --partner-destination-name destination1 --destination-sub-id e14e31c8-0ce7-4ff5-be5b-dd2b2a3f3535 --destination-rg rg2

使用內嵌事件種類建立 PartnerTopic 類型的新通道。

az eventgrid partner namespace channel create -g rg1 --name channel1 \
  --channel-type PartnerTopic --partner-namespace-name namespace1 \
  --partner-topic-name topic1 \
   --destination-sub-id e14e31c8-0ce7-4ff5-be5b-dd2b2a3f3535 --destination-rg rg2 \
  --partner-topic-source /subscriptions/1b3b4501-23b9-4790-c31b-ddbd88d72123/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/stgaccountname \
  --inline-event-type eventkey1 description="My event type." \
  --inline-event-type eventkey2 description="My second event type."

必要參數

--channel-type

事件通道的類型,表示事件的方向流程。

接受的值: PartnerDestination, PartnerTopic
--destination-rg

訂閱者的 Azure 資源群組,要求發行者建立通道資源。 與通道資源相關聯的對應夥伴資源(合作夥伴主題或合作夥伴目的地)將會在此資源群組下建立。

--destination-sub-id

要求發行者建立通道資源的訂閱者的 Azure 訂用帳戶識別碼。 與此 Azure 訂用帳戶相關聯的對應合作夥伴資源(合作夥伴主題或合作夥伴目的地)將會在此 Azure 訂用帳戶下建立。

--name -n

管道的名稱。

--partner-namespace-name

夥伴命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--aad-app-id --azure-active-directory-application-id-or-uri

Azure Active Directory 應用程式識別碼或 URI,以取得存取權杖,這些權杖將包含在傳遞要求中作為持有人權杖。

--aad-tenant-id --azure-active-directory-tenant-id

要取得存取權杖的 Azure Active Directory 租使用者識別碼,該權杖將包含在傳遞要求中作為持有人權杖。

--act-exp-date --activation-expiration-date

UTC ISO 8601 格式的日期或日期時間(例如 '2022-02-17T01:59:59+00:00' 或 '2022-02-17'),之後通道和對應的合作夥伴主題將會到期並自動刪除。 如果未指定這次,則到期日預設會設定為七天。

--ed-serv-cont --endpoint-service-context

與此合作夥伴目的地相關聯的端點內容。

--endpoint-url

表示合作夥伴目的地端點的 URL。

--event-type-kind

所使用的事件種類類型。

接受的值: inline
--inline-event-type

建立現有合作夥伴命名空間的通道,類型為合作夥伴主題或合作夥伴目的地。 如果通道類型為合作夥伴主題,您也可以新增內嵌事件種類資訊。 您可以使用多個 --inline-event-type 引數來指定多個屬性。

使用方式:--inline-event-type KEY [description=] [documentation-url=]
[data-schema-url=]範例:--inline-event-type event1
description=「我的內嵌事件種類。」
documentation-url=https://www.microsoft.com
data-schema-url=https://www.microsoft.com.

--message-for-activation

可在核准程式期間使用的內容或實用訊息。

--partner-destination-name --pr-dest-n

合作夥伴目的地的名稱。

--partner-topic-name

合作夥伴主題的名稱。

--partner-topic-source

構成事件夥伴來源之資源的識別碼。 這代表合作夥伴資源模型中的唯一資源。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az eventgrid partner namespace channel delete

刪除夥伴命名空間。

az eventgrid partner namespace channel delete [--ids]
                                              [--name]
                                              [--partner-namespace-name]
                                              [--resource-group]
                                              [--subscription]
                                              [--yes]

範例

刪除特定的夥伴命名空間。

az eventgrid partner namespace channel delete -g rg1 --partner-namespace-name partnernamespace1 --name channelname1

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

管道的名稱。

--partner-namespace-name

夥伴命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 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

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az eventgrid partner namespace channel list

列出可用的合作夥伴頻道。

az eventgrid partner namespace channel list --partner-namespace-name
                                            --resource-group
                                            [--odata-query]

範例

列出特定合作夥伴命名空間中的所有通道。

az eventgrid partner namespace channel list -g rg1 --partner-namespace-name partnernamespace1

列出名稱包含 「XYZ」 模式之夥伴命名空間下的所有通道

az eventgrid partner namespace channel list -g rg1 --partner-namespace-name partnernamespace1  --odata-query "Contains(name, 'XYZ')"

必要參數

--partner-namespace-name

夥伴命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--odata-query

用於篩選清單結果的 OData 查詢。 [名稱] 屬性目前只允許篩選。 支援的作業包括:CONTAINS、eq (等於)、ne (不等於)、AND、OR 和 NOT。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az eventgrid partner namespace channel show

取得合作夥伴命名空間下通道的詳細資料。

az eventgrid partner namespace channel show [--ids]
                                            [--name]
                                            [--partner-namespace-name]
                                            [--resource-group]
                                            [--subscription]

範例

顯示通道的詳細資料。

az eventgrid partner namespace channel show -g rg1 --partner-namespace-name partnernamespace1 --name channelname1

根據資源識別碼顯示通道的詳細資料。

az eventgrid partner namespace channel show --ids /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/partnenamespaces/partnernamespace1/channels/channelName1

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

管道的名稱。

--partner-namespace-name

夥伴命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 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

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az eventgrid partner namespace channel update

更新合作夥伴命名空間下通道的詳細資料。

az eventgrid partner namespace channel update [--aad-app-id]
                                              [--aad-tenant-id]
                                              [--act-exp-date]
                                              [--endpoint-base-url]
                                              [--endpoint-url]
                                              [--event-type-kind {inline}]
                                              [--ids]
                                              [--inline-event-type]
                                              [--name]
                                              [--partner-namespace-name]
                                              [--resource-group]
                                              [--subscription]

範例

更新通道的到期時間。

az eventgrid partner namespace channel update -g rg1 \
  --partner-namespace-name partnernamespace1 \
  --name channelname1 \
  --activation-expiration-date 2022-06-14T05:37:51.272Z \

更新通道的內嵌事件。

az eventgrid partner namespace channel update -g rg1 \
  --partner-namespace-name partnernamespace1 \
  --name channelname1 \
  --event-type-kind inline --inline-event-type eventtype1 documentation-url=https://www.microsoft.com

選擇性參數

--aad-app-id --azure-active-directory-application-id-or-uri

Azure Active Directory 應用程式識別碼或 URI,以取得存取權杖,這些權杖將包含在傳遞要求中作為持有人權杖。

--aad-tenant-id --azure-active-directory-tenant-id

要取得存取權杖的 Azure Active Directory 租使用者識別碼,該權杖將包含在傳遞要求中作為持有人權杖。

--act-exp-date --activation-expiration-date

UTC ISO 8601 格式的日期或日期時間(例如 '2022-02-17T01:59:59+00:00' 或 '2022-02-17'),之後通道和對應的合作夥伴主題將會到期並自動刪除。 如果未指定這次,則到期日預設會設定為七天。

--endpoint-base-url

合作夥伴目的地的端點基底 URL。

--endpoint-url

表示合作夥伴目的地端點的 URL。

--event-type-kind

所使用的事件種類類型。

接受的值: inline
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--inline-event-type

新增內嵌事件種類資訊。 您可以使用多個 --inline-event-type 引數來指定多個屬性。

使用方式:--inline-event-type KEY [description=] [documentation-url=]
[data-schema-url=]範例:--inline-event-type event1
description=「我的內嵌事件種類。」
documentation-url=https://www.microsoft.com
data-schema-url=https://www.microsoft.com.

--name -n

管道的名稱。

--partner-namespace-name

夥伴命名空間的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 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

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。