共用方式為


Microsoft.EventGrid 網域 2020-04-01-preview

Bicep 資源定義

網域資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.EventGrid/domains 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.EventGrid/domains@2020-04-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    name: 'string'
  }
  identity: {
    principalId: 'string'
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {
        clientId: 'string'
        principalId: 'string'
      }
    }
  }
  properties: {
    inboundIpRules: [
      {
        action: 'Allow'
        ipMask: 'string'
      }
    ]
    inputSchema: 'string'
    inputSchemaMapping: {
      inputSchemaMappingType: 'string'
      // For remaining properties, see InputSchemaMapping objects
    }
    privateEndpointConnections: [
      {
        properties: {
          groupIds: [
            'string'
          ]
          privateEndpoint: {
            id: 'string'
          }
          privateLinkServiceConnectionState: {
            actionsRequired: 'string'
            description: 'string'
            status: 'string'
          }
          provisioningState: 'string'
        }
      }
    ]
    publicNetworkAccess: 'string'
  }
}

InputSchemaMapping 物件

設定 inputSchemaMappingType 屬性以指定物件的類型。

針對 Json,請使用:

  inputSchemaMappingType: 'Json'
  properties: {
    dataVersion: {
      defaultValue: 'string'
      sourceField: 'string'
    }
    eventTime: {
      sourceField: 'string'
    }
    eventType: {
      defaultValue: 'string'
      sourceField: 'string'
    }
    id: {
      sourceField: 'string'
    }
    subject: {
      defaultValue: 'string'
      sourceField: 'string'
    }
    topic: {
      sourceField: 'string'
    }
  }

屬性值

domains

名稱 描述
NAME 資源名稱 字串 (必要)

字元限制:3-50

合法字元:
英數字元和連字號。
location 資源的位置。 字串 (必要)
tags 資源的標記。 標記名稱和值的字典。 請參閱 範本中的標記
sku 網域的 SKU 定價層。 ResourceSku
身分識別 資源的身分識別資訊。 IdentityInfo
properties 定義域的屬性。 DomainProperties

IdentityInfo

名稱 描述
principalId 資源識別的主體標識碼。 字串
tenantId 資源的租用戶標識碼。 字串
type 使用的受控識別類型。 類型 'SystemAssigned, UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 將會移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考將會是格式為 ARM 資源識別碼:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。
此屬性目前未使用,並保留供日後使用。
IdentityInfoUserAssignedIdentities

IdentityInfoUserAssignedIdentities

名稱 描述
{自定義屬性} UserIdentityProperties

UserIdentityProperties

名稱 描述
clientId 使用者指派身分識別的用戶端標識碼。 字串
principalId 使用者指派身分識別的主體標識碼。 字串

DomainProperties

名稱 描述
inboundIpRules 這可以用來限制來自特定IP的流量,而不是所有IP。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。 InboundIpRule[]
inputSchema 這會決定事件方格在發佈至網域的傳入事件時應該預期的格式。 'CloudEventSchemaV1_0'
'CustomEventSchema'
'EventGridSchema'
inputSchemaMapping InputSchemaMapping 的相關信息,指定對應事件承載的相關信息。 InputSchemaMapping
privateEndpointConnections 私人端點連線的清單。 PrivateEndpointConnection[]
publicNetworkAccess 這會判斷是否允許透過公用網路流量。 默認會啟用它。
您可以藉由設定 {seealso cref=“P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules” /} 來進一步限制特定 IP
'Disabled'
'Enabled'

InboundIpRule

名稱 描述
動作 根據相符專案或不符合 IpMask 執行的動作。 'Allow'
ipMask CIDR 表示法中的IP位址,例如10.0.0.0.0/8。 字串

InputSchemaMapping

名稱 描述
inputSchemaMappingType 設定物件類型 需要 json ()

JsonInputSchemaMapping

名稱 描述
inputSchemaMappingType 自定義對應的類型 需要 『Json』 ()
properties 輸入架構對應的 JSON 屬性 JsonInputSchemaMappingProperties

JsonInputSchemaMappingProperties

名稱 描述
dataVersion Event Grid 事件之 DataVersion 屬性的對應資訊。 JsonFieldWithDefault
eventTime Event Grid 事件之 EventTime 屬性的對應資訊。 JsonField
eventType Event Grid 事件之 EventType 屬性的對應資訊。 JsonFieldWithDefault
id Event Grid 事件之 Id 屬性的對應資訊。 JsonField
主旨 Event Grid 事件之 Subject 屬性的對應資訊。 JsonFieldWithDefault
主題 Event Grid 事件之 Topic 屬性的對應資訊。 JsonField

JsonFieldWithDefault

名稱 描述
defaultValue 未提供SourceField時要用於對應的預設值,或在已發佈的 JSON 事件承載中沒有具有指定名稱的屬性時使用。 字串
sourceField 輸入事件架構中要作為對應來源的功能變數名稱。 字串

JsonField

名稱 描述
sourceField 輸入事件架構中要作為對應來源的功能變數名稱。 字串

PrivateEndpointConnection

名稱 描述
properties PrivateEndpointConnection 的屬性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

名稱 描述
groupIds 來自私人鏈接服務資源的 GroupId。 string[]
privateEndpoint 此連線的私人端點資源。 PrivateEndpoint
privateLinkServiceConnectionState 線上狀態的詳細數據。 ConnectionState
provisioningState 私人端點聯機的布建狀態。 'Canceled'
'Creating'
'刪除'
'Failed'
'Succeeded'
'Updateing'

PrivateEndpoint

名稱 描述
id 私人端點的ARM標識碼。 字串

ConnectionState

名稱 描述
actionsRequired 如有任何) ,則 (所需的動作。 字串
description 線上狀態的描述。 字串
status 線上的狀態。 「已核准」
'Disconnected'
'Pending'
「已拒絕」

ResourceSku

名稱 描述
NAME 資源的 SKU 名稱。 可能的值為:基本或進階。 'Basic'
'Premium'

ARM 範本資源定義

網域資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.EventGrid/domains 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.EventGrid/domains",
  "apiVersion": "2020-04-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "name": "string"
  },
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
        "clientId": "string",
        "principalId": "string"
      }
    }
  },
  "properties": {
    "inboundIpRules": [
      {
        "action": "Allow",
        "ipMask": "string"
      }
    ],
    "inputSchema": "string",
    "inputSchemaMapping": {
      "inputSchemaMappingType": "string"
      // For remaining properties, see InputSchemaMapping objects
    },
    "privateEndpointConnections": [
      {
        "properties": {
          "groupIds": [ "string" ],
          "privateEndpoint": {
            "id": "string"
          },
          "privateLinkServiceConnectionState": {
            "actionsRequired": "string",
            "description": "string",
            "status": "string"
          },
          "provisioningState": "string"
        }
      }
    ],
    "publicNetworkAccess": "string"
  }
}

InputSchemaMapping 物件

設定 inputSchemaMappingType 屬性以指定物件的類型。

針對 Json,請使用:

  "inputSchemaMappingType": "Json",
  "properties": {
    "dataVersion": {
      "defaultValue": "string",
      "sourceField": "string"
    },
    "eventTime": {
      "sourceField": "string"
    },
    "eventType": {
      "defaultValue": "string",
      "sourceField": "string"
    },
    "id": {
      "sourceField": "string"
    },
    "subject": {
      "defaultValue": "string",
      "sourceField": "string"
    },
    "topic": {
      "sourceField": "string"
    }
  }

屬性值

domains

名稱 描述
類型 資源類型 'Microsoft.EventGrid/domains'
apiVersion 資源 API 版本 '2020-04-01-preview'
NAME 資源名稱 字串 (必要)

字元限制:3-50

合法字元:
英數字元和連字號。
location 資源的位置。 字串 (必要)
tags 資源的標記。 標記名稱和值的字典。 請參閱 範本中的標記
sku 網域的 SKU 定價層。 ResourceSku
身分識別 資源的身分識別資訊。 IdentityInfo
properties 定義域的屬性。 DomainProperties

IdentityInfo

名稱 描述
principalId 資源識別的主體標識碼。 字串
tenantId 資源的租用戶標識碼。 字串
type 使用的受控識別類型。 類型 'SystemAssigned, UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 將會移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式會是 ARM 資源識別碼:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。
此屬性目前未使用,並保留供日後使用。
IdentityInfoUserAssignedIdentities

IdentityInfoUserAssignedIdentities

名稱 描述
{自定義屬性} UserIdentityProperties

UserIdentityProperties

名稱 描述
clientId 使用者指派身分識別的用戶端標識碼。 字串
principalId 使用者指派身分識別的主體標識碼。 字串

DomainProperties

名稱 描述
inboundIpRules 這可用來限制來自特定IP的流量,而不是所有IP。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。 InboundIpRule[]
inputSchema 這會決定事件方格應該預期發佈至網域之傳入事件的格式。 'CloudEventSchemaV1_0'
'CustomEventSchema'
'EventGridSchema'
inputSchemaMapping InputSchemaMapping 的相關信息,指定對應事件承載的相關信息。 InputSchemaMapping
privateEndpointConnections 私人端點連線的清單。 PrivateEndpointConnection[]
publicNetworkAccess 這會判斷是否允許透過公用網路使用流量。 默認會啟用。
您可以藉由設定 {seealso cref=“P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules” /} 來進一步限制特定 IP
'Disabled'
'Enabled'

InboundIpRule

名稱 描述
動作 要根據比對或不符合 IpMask 執行的動作。 'Allow'
ipMask CIDR 表示法中的IP位址,例如10.0.0.0.0/8。 字串

InputSchemaMapping

名稱 描述
inputSchemaMappingType 設定物件類型 需要 Json ()

JsonInputSchemaMapping

名稱 描述
inputSchemaMappingType 自定義對應的類型 'Json' (必要)
properties 輸入架構對應的 JSON 屬性 JsonInputSchemaMappingProperties

JsonInputSchemaMappingProperties

名稱 描述
dataVersion Event Grid 事件之 DataVersion 屬性的對應資訊。 JsonFieldWithDefault
eventTime Event Grid 事件之 EventTime 屬性的對應資訊。 JsonField
eventType Event Grid 事件之 EventType 屬性的對應資訊。 JsonFieldWithDefault
id Event Grid 事件之 Id 屬性的對應資訊。 JsonField
主旨 Event Grid 事件之 Subject 屬性的對應資訊。 JsonFieldWithDefault
主題 Event Grid 事件之 Topic 屬性的對應資訊。 JsonField

JsonFieldWithDefault

名稱 描述
defaultValue 未提供SourceField時要用於對應的預設值,或在已發佈的 JSON 事件承載中沒有具有指定名稱的屬性時使用。 字串
sourceField 輸入事件架構中要作為對應來源的功能變數名稱。 字串

JsonField

名稱 描述
sourceField 輸入事件架構中要作為對應來源的功能變數名稱。 字串

PrivateEndpointConnection

名稱 描述
properties PrivateEndpointConnection 的屬性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

名稱 描述
groupIds 來自私人鏈接服務資源的 GroupId。 string[]
privateEndpoint 此連線的私人端點資源。 PrivateEndpoint
privateLinkServiceConnectionState 線上狀態的詳細數據。 ConnectionState
provisioningState 私人端點聯機的布建狀態。 'Canceled'
'Creating'
'刪除'
'Failed'
'Succeeded'
'Updateing'

PrivateEndpoint

名稱 描述
id 私人端點的ARM標識碼。 字串

ConnectionState

名稱 描述
actionsRequired 如有任何) ,則 (所需的動作。 字串
description 線上狀態的描述。 字串
status 線上的狀態。 「已核准」
'Disconnected'
'Pending'
「已拒絕」

ResourceSku

名稱 描述
NAME 資源的 SKU 名稱。 可能的值為:基本或進階。 'Basic'
'Premium'

Terraform (AzAPI 提供者) 資源定義

網域資源類型可以使用目標作業進行部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.EventGrid/domains 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.EventGrid/domains@2020-04-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      inboundIpRules = [
        {
          action = "Allow"
          ipMask = "string"
        }
      ]
      inputSchema = "string"
      inputSchemaMapping = {
        inputSchemaMappingType = "string"
        // For remaining properties, see InputSchemaMapping objects
      }
      privateEndpointConnections = [
        {
          properties = {
            groupIds = [
              "string"
            ]
            privateEndpoint = {
              id = "string"
            }
            privateLinkServiceConnectionState = {
              actionsRequired = "string"
              description = "string"
              status = "string"
            }
            provisioningState = "string"
          }
        }
      ]
      publicNetworkAccess = "string"
    }
    sku = {
      name = "string"
    }
  })
}

InputSchemaMapping 物件

設定 inputSchemaMappingType 屬性以指定物件的類型。

針對 Json,請使用:

  inputSchemaMappingType = "Json"
  properties = {
    dataVersion = {
      defaultValue = "string"
      sourceField = "string"
    }
    eventTime = {
      sourceField = "string"
    }
    eventType = {
      defaultValue = "string"
      sourceField = "string"
    }
    id = {
      sourceField = "string"
    }
    subject = {
      defaultValue = "string"
      sourceField = "string"
    }
    topic = {
      sourceField = "string"
    }
  }

屬性值

domains

名稱 描述
類型 資源類型 “Microsoft.EventGrid/domains@2020-04-01-preview”
NAME 資源名稱 字串 (必要)

字元限制:3-50

合法字元:
英數字元和連字號。
location 資源的位置。 字串 (必要)
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 字串 (必要)
tags 資源的標記。 標記名稱和值的字典。
sku 網域的 SKU 定價層。 ResourceSku
身分識別 資源的身分識別資訊。 IdentityInfo
properties 定義域的屬性。 DomainProperties

IdentityInfo

名稱 描述
類型 使用的受控識別類型。 類型 'SystemAssigned, UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 將會移除任何身分識別。 “SystemAssigned”
“SystemAssigned, UserAssigned”
“UserAssigned”
identity_ids 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考將會是格式為 ARM 資源識別碼:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。
此屬性目前未使用,並保留供日後使用。
使用者身分識別標識碼的陣列。

IdentityInfoUserAssignedIdentities

名稱 描述
{自定義屬性} UserIdentityProperties

UserIdentityProperties

名稱 描述
clientId 使用者指派身分識別的用戶端標識碼。 字串
principalId 使用者指派身分識別的主體標識碼。 字串

DomainProperties

名稱 描述
inboundIpRules 這可以用來限制來自特定IP的流量,而不是所有IP。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。 InboundIpRule[]
inputSchema 這會決定事件方格在發佈至網域的傳入事件時應該預期的格式。 “CloudEventSchemaV1_0”
“CustomEventSchema”
“EventGridSchema”
inputSchemaMapping InputSchemaMapping 的相關信息,指定對應事件承載的相關信息。 InputSchemaMapping
privateEndpointConnections 私人端點連線的清單。 PrivateEndpointConnection[]
publicNetworkAccess 這會判斷是否允許透過公用網路流量。 默認會啟用它。
您可以藉由設定 {seealso cref=“P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules” /} 來進一步限制特定 IP
“Disabled”
“Enabled”

InboundIpRule

名稱 描述
動作 根據相符專案或不符合 IpMask 執行的動作。 “Allow”
ipMask CIDR 表示法中的IP位址,例如10.0.0.0.0/8。 字串

InputSchemaMapping

名稱 描述
inputSchemaMappingType 設定物件類型 需要 json ()

JsonInputSchemaMapping

名稱 描述
inputSchemaMappingType 自定義對應的類型 必要) 「Json」 (
properties 輸入架構對應的 JSON 屬性 JsonInputSchemaMappingProperties

JsonInputSchemaMappingProperties

名稱 描述
dataVersion Event Grid 事件之 DataVersion 屬性的對應資訊。 JsonFieldWithDefault
eventTime Event Grid 事件之 EventTime 屬性的對應資訊。 JsonField
eventType Event Grid 事件之 EventType 屬性的對應資訊。 JsonFieldWithDefault
id Event Grid 事件之 Id 屬性的對應資訊。 JsonField
主旨 Event Grid 事件之 Subject 屬性的對應資訊。 JsonFieldWithDefault
主題 Event Grid 事件之 Topic 屬性的對應資訊。 JsonField

JsonFieldWithDefault

名稱 描述
defaultValue 未提供SourceField時要用於對應的預設值,或在已發佈的 JSON 事件承載中沒有具有指定名稱的屬性時使用。 字串
sourceField 輸入事件架構中要作為對應來源的功能變數名稱。 字串

JsonField

名稱 描述
sourceField 輸入事件架構中要作為對應來源的功能變數名稱。 字串

PrivateEndpointConnection

名稱 描述
properties PrivateEndpointConnection 的屬性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

名稱 描述
groupIds 來自私人鏈接服務資源的 GroupId。 string[]
privateEndpoint 此連線的私人端點資源。 PrivateEndpoint
privateLinkServiceConnectionState 線上狀態的詳細數據。 ConnectionState
provisioningState 私人端點聯機的布建狀態。 “Canceled”
“建立”
“刪除”
“Failed”
“Succeeded”
“Updateing”

PrivateEndpoint

名稱 描述
id 私人端點的ARM標識碼。 字串

ConnectionState

名稱 描述
actionsRequired 如有任何) ,則 (所需的動作。 字串
description 線上狀態的描述。 字串
status 線上的狀態。 「已核准」
「已中斷連線」
“Pending”
“Rejected”

ResourceSku

名稱 描述
NAME 資源的 SKU 名稱。 可能的值為:基本或進階。 "Basic"
“Premium”