Partner Namespaces - Update
更新夥伴命名空間。
使用指定的參數,以異步方式更新夥伴命名空間。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}?api-version=2025-02-15
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
partner
|
path | True |
string |
夥伴命名空間的名稱。 |
resource
|
path | True |
string |
用戶訂用帳戶內的資源組名。 |
subscription
|
path | True |
string |
可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
properties.disableLocalAuth |
boolean |
此布爾值是用來啟用或停用本機驗證。默認值為 false。 當 屬性設定為 true 時,只有在允許使用者發佈至夥伴命名空間時,才會使用 AAD 令牌進行驗證。 |
properties.inboundIpRules |
這可用來限制來自特定IP的流量,而不是所有IP的流量。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。 |
|
properties.minimumTlsVersionAllowed |
允許發佈至此網域之發行者的最低 TLS 版本 |
|
properties.publicNetworkAccess |
這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP |
|
tags |
object |
合作夥伴命名空間的標記。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
201 Created |
已接受合作夥伴命名空間更新要求。 |
|
Other Status Codes |
如果要求失敗,則傳回的錯誤回應。 |
範例
PartnerNamespaces_Update
範例要求
PATCH https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1?api-version=2025-02-15
{
"tags": {
"tag1": "value1"
}
}
範例回覆
{
"properties": {
"provisioningState": "Succeeded",
"partnerRegistrationFullyQualifiedId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1",
"endpoint": "https://examplePartnerNamespaceName1.centraluseuap-1.eventgrid.azure.net/api/events"
},
"location": "Central US EUAP",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1",
"name": "examplePartnerNamespaceName1",
"type": "Microsoft.EventGrid/partnerNamespaces"
}
定義
名稱 | Description |
---|---|
Connection |
ConnectionState 資訊。 |
created |
建立資源的身分識別類型。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
Inbound |
|
Ip |
根據相符專案或 IpMask 不相符執行的動作。 |
Partner |
EventGrid Partner 命名空間。 |
Partner |
合作夥伴命名空間的布建狀態。 |
Partner |
合作夥伴命名空間更新的屬性。 |
Partner |
這會判斷發佈至此夥伴命名空間的事件是否應該在事件承載中使用來源屬性,或在與夥伴主題相符時,在標頭中使用通道名稱。 如果未指定任何專案,則會使用來源屬性路由來比對夥伴主題。 |
Persisted |
線上的狀態。 |
Private |
PrivateEndpoint 資訊。 |
Private |
|
Public |
這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP |
Resource |
私人端點聯機的布建狀態。 |
system |
與建立和上次修改資源相關的元數據。 |
Tls |
允許發佈至此網域之發行者的最低 TLS 版本 |
ConnectionState
ConnectionState 資訊。
名稱 | 類型 | Description |
---|---|---|
actionsRequired |
string |
需要動作(如果有的話)。 |
description |
string |
連接狀態的描述。 |
status |
線上的狀態。 |
createdByType
建立資源的身分識別類型。
名稱 | 類型 | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
InboundIpRule
名稱 | 類型 | Description |
---|---|---|
action |
根據相符專案或 IpMask 不相符執行的動作。 |
|
ipMask |
string |
CIDR 表示法中的IP位址,例如10.0.0.0.0/8。 |
IpActionType
根據相符專案或 IpMask 不相符執行的動作。
名稱 | 類型 | Description |
---|---|---|
Allow |
string |
PartnerNamespace
EventGrid Partner 命名空間。
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
id |
string |
資源的完整標識碼。 |
|
location |
string |
資源的位置。 |
|
name |
string |
資源的名稱。 |
|
properties.disableLocalAuth |
boolean |
False |
此布爾值是用來啟用或停用本機驗證。默認值為 false。 當 屬性設定為 true 時,只有在允許使用者發佈至夥伴命名空間時,才會使用 AAD 令牌進行驗證。 |
properties.endpoint |
string |
夥伴命名空間的端點。 |
|
properties.inboundIpRules |
這可用來限制來自特定IP的流量,而不是所有IP的流量。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。 |
||
properties.minimumTlsVersionAllowed |
允許發佈至此夥伴命名空間之發行者的最低 TLS 版本 |
||
properties.partnerRegistrationFullyQualifiedId |
string |
夥伴註冊的完整 ARM 標識碼,應該與此夥伴命名空間相關聯。 這會採用下列格式:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}。 |
|
properties.partnerTopicRoutingMode | SourceEventAttribute |
這會判斷發佈至此夥伴命名空間的事件是否應該在事件承載中使用來源屬性,或在與夥伴主題相符時,在標頭中使用通道名稱。 如果未指定任何專案,則會使用來源屬性路由來比對夥伴主題。 |
|
properties.privateEndpointConnections |
私人端點連線的清單。 |
||
properties.provisioningState |
合作夥伴命名空間的布建狀態。 |
||
properties.publicNetworkAccess | Enabled |
這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP |
|
systemData |
與事件方格資源相關的系統元數據。 |
||
tags |
object |
資源的標記。 |
|
type |
string |
資源的類型。 |
PartnerNamespaceProvisioningState
合作夥伴命名空間的布建狀態。
名稱 | 類型 | Description |
---|---|---|
Canceled |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |
PartnerNamespaceUpdateParameters
合作夥伴命名空間更新的屬性。
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
properties.disableLocalAuth |
boolean |
此布爾值是用來啟用或停用本機驗證。默認值為 false。 當 屬性設定為 true 時,只有在允許使用者發佈至夥伴命名空間時,才會使用 AAD 令牌進行驗證。 |
|
properties.inboundIpRules |
這可用來限制來自特定IP的流量,而不是所有IP的流量。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。 |
||
properties.minimumTlsVersionAllowed |
允許發佈至此網域之發行者的最低 TLS 版本 |
||
properties.publicNetworkAccess | Enabled |
這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP |
|
tags |
object |
合作夥伴命名空間的標記。 |
PartnerTopicRoutingMode
這會判斷發佈至此夥伴命名空間的事件是否應該在事件承載中使用來源屬性,或在與夥伴主題相符時,在標頭中使用通道名稱。 如果未指定任何專案,則會使用來源屬性路由來比對夥伴主題。
名稱 | 類型 | Description |
---|---|---|
ChannelNameHeader |
string |
|
SourceEventAttribute |
string |
PersistedConnectionStatus
線上的狀態。
名稱 | 類型 | Description |
---|---|---|
Approved |
string |
|
Disconnected |
string |
|
Pending |
string |
|
Rejected |
string |
PrivateEndpoint
PrivateEndpoint 資訊。
名稱 | 類型 | Description |
---|---|---|
id |
string |
私人端點的ARM標識碼。 |
PrivateEndpointConnection
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的完整標識碼。 |
name |
string |
資源的名稱。 |
properties.groupIds |
string[] |
Private Link 服務資源的 GroupId。 |
properties.privateEndpoint |
此連線的私人端點資源。 |
|
properties.privateLinkServiceConnectionState |
線上狀態的詳細數據。 |
|
properties.provisioningState |
私人端點聯機的布建狀態。 |
|
type |
string |
資源的類型。 |
PublicNetworkAccess
這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP
名稱 | 類型 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
ResourceProvisioningState
私人端點聯機的布建狀態。
名稱 | 類型 | Description |
---|---|---|
Canceled |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |
TlsVersion
允許發佈至此網域之發行者的最低 TLS 版本
名稱 | 類型 | Description |
---|---|---|
1.0 |
string |
|
1.1 |
string |
|
1.2 |
string |