共用方式為


Microsoft.EventGrid 網域 2020-10-15-preview

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.EventGrid/domains@2020-10-15-preview' = {
  identity: {
    principalId: 'string'
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {
        clientId: 'string'
        principalId: 'string'
      }
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    inboundIpRules: [
      {
        action: 'string'
        ipMask: 'string'
      }
    ]
    inputSchema: 'string'
    inputSchemaMapping: {
      inputSchemaMappingType: 'string'
      // For remaining properties, see InputSchemaMapping objects
    }
    publicNetworkAccess: 'string'
  }
  sku: {
    name: 'string'
  }
  tags: {
    {customized property}: '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'
    }
  }
}

屬性值

DomainProperties

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

IdentityInfo

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

IdentityInfoUserAssignedIdentities

名字 描述 價值

InboundIpRule

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

InputSchemaMapping

名字 描述 價值
inputSchemaMappingType 針對 jsonInputSchemaMapping 類型設定為 'Json', 'Json' (必要)

JsonField

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

JsonFieldWithDefault

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

JsonInputSchemaMapping

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

JsonInputSchemaMappingProperties

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

Microsoft.EventGrid/domains

名字 描述 價值
身份 資源的身分識別資訊。 IdentityInfo
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串 (必要)
性能 網域的屬性。 DomainProperties
sku 網域的 Sku 定價層。 ResourceSku
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ResourceSku

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

TrackedResourceTags

名字 描述 價值

UserIdentityProperties

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

ARM 樣本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.EventGrid/domains",
  "apiVersion": "2020-10-15-preview",
  "name": "string",
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
        "clientId": "string",
        "principalId": "string"
      }
    }
  },
  "location": "string",
  "properties": {
    "inboundIpRules": [
      {
        "action": "string",
        "ipMask": "string"
      }
    ],
    "inputSchema": "string",
    "inputSchemaMapping": {
      "inputSchemaMappingType": "string"
      // For remaining properties, see InputSchemaMapping objects
    },
    "publicNetworkAccess": "string"
  },
  "sku": {
    "name": "string"
  },
  "tags": {
    "{customized property}": "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"
    }
  }
}

屬性值

DomainProperties

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

IdentityInfo

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

IdentityInfoUserAssignedIdentities

名字 描述 價值

InboundIpRule

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

InputSchemaMapping

名字 描述 價值
inputSchemaMappingType 針對 jsonInputSchemaMapping 類型設定為 'Json', 'Json' (必要)

JsonField

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

JsonFieldWithDefault

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

JsonInputSchemaMapping

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

JsonInputSchemaMappingProperties

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

Microsoft.EventGrid/domains

名字 描述 價值
apiVersion API 版本 '2020-10-15-preview'
身份 資源的身分識別資訊。 IdentityInfo
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串 (必要)
性能 網域的屬性。 DomainProperties
sku 網域的 Sku 定價層。 ResourceSku
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.EventGrid/domains'

ResourceSku

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

TrackedResourceTags

名字 描述 價值

UserIdentityProperties

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

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.EventGrid/domains@2020-10-15-preview"
  name = "string"
  identity = {
    principalId = "string"
    tenantId = "string"
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
        clientId = "string"
        principalId = "string"
      }
    }
  }
  location = "string"
  sku = {
    name = "string"
  }
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      inboundIpRules = [
        {
          action = "string"
          ipMask = "string"
        }
      ]
      inputSchema = "string"
      inputSchemaMapping = {
        inputSchemaMappingType = "string"
        // For remaining properties, see InputSchemaMapping objects
      }
      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"
    }
  }
}

屬性值

DomainProperties

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

IdentityInfo

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

IdentityInfoUserAssignedIdentities

名字 描述 價值

InboundIpRule

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

InputSchemaMapping

名字 描述 價值
inputSchemaMappingType 針對 jsonInputSchemaMapping 類型設定為 'Json', 'Json' (必要)

JsonField

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

JsonFieldWithDefault

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

JsonInputSchemaMapping

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

JsonInputSchemaMappingProperties

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

Microsoft.EventGrid/domains

名字 描述 價值
身份 資源的身分識別資訊。 IdentityInfo
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串 (必要)
性能 網域的屬性。 DomainProperties
sku 網域的 Sku 定價層。 ResourceSku
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.EventGrid/domains@2020-10-15-preview”

ResourceSku

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

TrackedResourceTags

名字 描述 價值

UserIdentityProperties

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