Share via


Partner Namespaces - Create Or Update

建立合作夥伴命名空間。
以異步方式建立具有指定參數的新夥伴命名空間。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}?api-version=2022-06-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
location True

string

資源的位置。

properties.disableLocalAuth

boolean

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

properties.inboundIpRules

InboundIpRule[]

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

properties.partnerRegistrationFullyQualifiedId

string

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

properties.partnerTopicRoutingMode

PartnerTopicRoutingMode

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

properties.publicNetworkAccess

PublicNetworkAccess

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

tags

object

資源的標記。

回應

名稱 類型 Description
201 Created

PartnerNamespace

建立時間

Other Status Codes

錯誤回應: ≦

  • 400 不正確的要求。

  • 500 內部伺服器錯誤。

範例

PartnerNamespaces_CreateOrUpdate

Sample Request

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

{
  "location": "westus",
  "tags": {
    "tag1": "value1",
    "tag2": "value2"
  },
  "properties": {
    "partnerRegistrationFullyQualifiedId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"
  }
}

Sample Response

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

定義

名稱 Description
ConnectionState

ConnectionState 資訊。

createdByType

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

InboundIpRule
IpActionType

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

PartnerNamespace

EventGrid 合作夥伴命名空間。

PartnerNamespaceProvisioningState

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

PartnerTopicRoutingMode

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

PersistedConnectionStatus

線上的狀態。

PrivateEndpoint

PrivateEndpoint 資訊。

PrivateEndpointConnection
PublicNetworkAccess

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

ResourceProvisioningState

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

systemData

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

ConnectionState

ConnectionState 資訊。

名稱 類型 Description
actionsRequired

string

如有任何) ,則 (所需的動作。

description

string

線上狀態的描述。

status

PersistedConnectionStatus

線上的狀態。

createdByType

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

名稱 類型 Description
Application

string

Key

string

ManagedIdentity

string

User

string

InboundIpRule

名稱 類型 Description
action

IpActionType

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

ipMask

string

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

IpActionType

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

名稱 類型 Description
Allow

string

PartnerNamespace

EventGrid 合作夥伴命名空間。

名稱 類型 預設值 Description
id

string

資源的完整標識碼。

location

string

資源的位置。

name

string

資源名稱。

properties.disableLocalAuth

boolean

False

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

properties.endpoint

string

夥伴命名空間的端點。

properties.inboundIpRules

InboundIpRule[]

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

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

string

Creating

string

Deleting

string

Failed

string

Succeeded

string

Updating

string

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[]

來自私人鏈接服務資源的 GroupId。

properties.privateEndpoint

PrivateEndpoint

此連線的私人端點資源。

properties.privateLinkServiceConnectionState

ConnectionState

線上狀態的詳細數據。

properties.provisioningState

ResourceProvisioningState

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

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

createdByType

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

lastModifiedAt

string

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

lastModifiedBy

string

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

lastModifiedByType

createdByType

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