Microsoft.EventGrid 網域 2020-06-01
Bicep 資源定義
網域資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.EventGrid/domains 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.EventGrid/domains@2020-06-01' = {
location: 'string'
name: 'string'
properties: {
inboundIpRules: [
{
action: 'string'
ipMask: 'string'
}
]
inputSchema: 'string'
inputSchemaMapping: {
inputSchemaMappingType: 'string'
// For remaining properties, see InputSchemaMapping objects
}
publicNetworkAccess: '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' |
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
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源的位置。 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 網域的屬性。 | DomainProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
ARM 樣本資源定義
網域資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.EventGrid/domains 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.EventGrid/domains",
"apiVersion": "2020-06-01",
"name": "string",
"location": "string",
"properties": {
"inboundIpRules": [
{
"action": "string",
"ipMask": "string"
}
],
"inputSchema": "string",
"inputSchemaMapping": {
"inputSchemaMappingType": "string"
// For remaining properties, see InputSchemaMapping objects
},
"publicNetworkAccess": "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' |
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-06-01' |
位置 | 資源的位置。 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 網域的屬性。 | DomainProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.EventGrid/domains' |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
Terraform (AzAPI 提供者) 資源定義
網域資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.EventGrid/domains 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.EventGrid/domains@2020-06-01"
name = "string"
location = "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' |
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
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源的位置。 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 網域的屬性。 | DomainProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.EventGrid/domains@2020-06-01” |
TrackedResourceTags
名字 | 描述 | 價值 |
---|