共用方式為


Partner Namespaces - Get

取得合作夥伴命名空間。
取得夥伴命名空間的屬性。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}?api-version=2025-02-15

URI 參數

名稱 位於 必要 類型 Description
partnerNamespaceName
path True

string

夥伴命名空間的名稱。

resourceGroupName
path True

string

用戶訂用帳戶內的資源組名。

subscriptionId
path True

string

可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。

api-version
query True

string

要與用戶端要求搭配使用的 API 版本。

回應

名稱 類型 Description
200 OK

PartnerNamespace

還行

Other Status Codes

ErrorResponse

如果要求失敗,則傳回的錯誤回應。

範例

PartnerNamespaces_Get

範例要求

GET https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1?api-version=2025-02-15

範例回覆

{
  "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",
    "key2": "value2",
    "key3": "value3"
  },
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1",
  "name": "examplePartnerNamespaceName1",
  "type": "Microsoft.EventGrid/partnerNamespaces"
}

定義

名稱 Description
ConnectionState

ConnectionState 資訊。

createdByType

建立資源的身分識別類型。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

InboundIpRule
IpActionType

根據相符專案或 IpMask 不相符執行的動作。

PartnerNamespace

EventGrid Partner 命名空間。

PartnerNamespaceProvisioningState

合作夥伴命名空間的布建狀態。

PartnerTopicRoutingMode

這會判斷發佈至此夥伴命名空間的事件是否應該在事件承載中使用來源屬性,或在與夥伴主題相符時,在標頭中使用通道名稱。 如果未指定任何專案,則會使用來源屬性路由來比對夥伴主題。

PersistedConnectionStatus

線上的狀態。

PrivateEndpoint

PrivateEndpoint 資訊。

PrivateEndpointConnection
PublicNetworkAccess

這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP

ResourceProvisioningState

私人端點聯機的布建狀態。

systemData

與建立和上次修改資源相關的元數據。

TlsVersion

允許發佈至此網域之發行者的最低 TLS 版本

ConnectionState

ConnectionState 資訊。

名稱 類型 Description
actionsRequired

string

需要動作(如果有的話)。

description

string

連接狀態的描述。

status

PersistedConnectionStatus

線上的狀態。

createdByType

建立資源的身分識別類型。

Description
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

InboundIpRule

名稱 類型 Description
action

IpActionType

根據相符專案或 IpMask 不相符執行的動作。

ipMask

string

CIDR 表示法中的IP位址,例如10.0.0.0.0/8。

IpActionType

根據相符專案或 IpMask 不相符執行的動作。

Description
Allow

PartnerNamespace

EventGrid Partner 命名空間。

名稱 類型 預設值 Description
id

string

資源的完整標識碼。

location

string

資源的位置。

name

string

資源的名稱。

properties.disableLocalAuth

boolean

False

此布爾值是用來啟用或停用本機驗證。默認值為 false。 當 屬性設定為 true 時,只有在允許使用者發佈至夥伴命名空間時,才會使用 AAD 令牌進行驗證。

properties.endpoint

string

夥伴命名空間的端點。

properties.inboundIpRules

InboundIpRule[]

這可用來限制來自特定IP的流量,而不是所有IP的流量。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。

properties.minimumTlsVersionAllowed

TlsVersion

允許發佈至此夥伴命名空間之發行者的最低 TLS 版本

properties.partnerRegistrationFullyQualifiedId

string

夥伴註冊的完整 ARM 標識碼,應該與此夥伴命名空間相關聯。 這會採用下列格式:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}。

properties.partnerTopicRoutingMode

PartnerTopicRoutingMode

SourceEventAttribute

這會判斷發佈至此夥伴命名空間的事件是否應該在事件承載中使用來源屬性,或在與夥伴主題相符時,在標頭中使用通道名稱。 如果未指定任何專案,則會使用來源屬性路由來比對夥伴主題。

properties.privateEndpointConnections

PrivateEndpointConnection[]

私人端點連線的清單。

properties.provisioningState

PartnerNamespaceProvisioningState

合作夥伴命名空間的布建狀態。

properties.publicNetworkAccess

PublicNetworkAccess

Enabled

這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP

systemData

systemData

與事件方格資源相關的系統元數據。

tags

object

資源的標記。

type

string

資源的類型。

PartnerNamespaceProvisioningState

合作夥伴命名空間的布建狀態。

Description
Canceled
Creating
Deleting
Failed
Succeeded
Updating

PartnerTopicRoutingMode

這會判斷發佈至此夥伴命名空間的事件是否應該在事件承載中使用來源屬性,或在與夥伴主題相符時,在標頭中使用通道名稱。 如果未指定任何專案,則會使用來源屬性路由來比對夥伴主題。

Description
ChannelNameHeader
SourceEventAttribute

PersistedConnectionStatus

線上的狀態。

Description
Approved
Disconnected
Pending
Rejected

PrivateEndpoint

PrivateEndpoint 資訊。

名稱 類型 Description
id

string

私人端點的ARM標識碼。

PrivateEndpointConnection

名稱 類型 Description
id

string

資源的完整標識碼。

name

string

資源的名稱。

properties.groupIds

string[]

Private Link 服務資源的 GroupId。

properties.privateEndpoint

PrivateEndpoint

此連線的私人端點資源。

properties.privateLinkServiceConnectionState

ConnectionState

線上狀態的詳細數據。

properties.provisioningState

ResourceProvisioningState

私人端點聯機的布建狀態。

type

string

資源的類型。

PublicNetworkAccess

這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 您可以藉由設定進一步限制特定IP

Description
Disabled
Enabled

ResourceProvisioningState

私人端點聯機的布建狀態。

Description
Canceled
Creating
Deleting
Failed
Succeeded
Updating

systemData

與建立和上次修改資源相關的元數據。

名稱 類型 Description
createdAt

string

資源建立的時間戳(UTC)。

createdBy

string

建立資源的身分識別。

createdByType

createdByType

建立資源的身分識別類型。

lastModifiedAt

string

上次修改的資源時間戳 (UTC)

lastModifiedBy

string

上次修改資源的身分識別。

lastModifiedByType

createdByType

上次修改資源的身分識別類型。

TlsVersion

允許發佈至此網域之發行者的最低 TLS 版本

Description
1.0
1.1
1.2