Microsoft.EventGrid 網域 2018-09-15-preview
Bicep 資源定義
網域資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.EventGrid/domains 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.EventGrid/domains@2018-09-15-preview' = {
location: 'string'
name: 'string'
properties: {
inputSchema: 'string'
inputSchemaMapping: {
inputSchemaMappingType: 'string'
// For remaining properties, see InputSchemaMapping objects
}
}
tags: {
{customized property}: 'string'
}
}
設定 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
名字 |
描述 |
價值 |
inputSchema |
這會決定事件方格針對發佈至網域的連入事件所應預期的格式。 |
'CloudEventV01Schema' 'CustomEventSchema' 'EventGridSchema' |
inputSchemaMapping |
指定對應事件承載相關信息的 InputSchemaMapping 相關信息。 |
InputSchemaMapping |
名字 |
描述 |
價值 |
inputSchemaMappingType |
針對 jsonInputSchemaMapping 類型設定為 'Json',。 |
'Json' (必要) |
JsonField
名字 |
描述 |
價值 |
sourceField |
輸入事件架構中要作為對應來源的功能變數名稱。 |
字串 |
JsonFieldWithDefault
名字 |
描述 |
價值 |
defaultValue |
未提供SourceField時要用於對應的預設值,如果已發佈的 JSON 事件承載中沒有具有指定名稱的屬性,則為 。 |
字串 |
sourceField |
輸入事件架構中要作為對應來源的功能變數名稱。 |
字串 |
Microsoft.EventGrid/domains
名字 |
描述 |
價值 |
位置 |
資源的位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
性能 |
網域的屬性 |
DomainProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
ARM 樣本資源定義
網域資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.EventGrid/domains 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.EventGrid/domains",
"apiVersion": "2018-09-15-preview",
"name": "string",
"location": "string",
"properties": {
"inputSchema": "string",
"inputSchemaMapping": {
"inputSchemaMappingType": "string"
// For remaining properties, see InputSchemaMapping objects
}
},
"tags": {
"{customized property}": "string"
}
}
設定 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
名字 |
描述 |
價值 |
inputSchema |
這會決定事件方格針對發佈至網域的連入事件所應預期的格式。 |
'CloudEventV01Schema' 'CustomEventSchema' 'EventGridSchema' |
inputSchemaMapping |
指定對應事件承載相關信息的 InputSchemaMapping 相關信息。 |
InputSchemaMapping |
名字 |
描述 |
價值 |
inputSchemaMappingType |
針對 jsonInputSchemaMapping 類型設定為 'Json',。 |
'Json' (必要) |
JsonField
名字 |
描述 |
價值 |
sourceField |
輸入事件架構中要作為對應來源的功能變數名稱。 |
字串 |
JsonFieldWithDefault
名字 |
描述 |
價值 |
defaultValue |
未提供SourceField時要用於對應的預設值,如果已發佈的 JSON 事件承載中沒有具有指定名稱的屬性,則為 。 |
字串 |
sourceField |
輸入事件架構中要作為對應來源的功能變數名稱。 |
字串 |
Microsoft.EventGrid/domains
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2018-09-15-preview' |
位置 |
資源的位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
性能 |
網域的屬性 |
DomainProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 |
資源類型 |
'Microsoft.EventGrid/domains' |
網域資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.EventGrid/domains 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.EventGrid/domains@2018-09-15-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
inputSchema = "string"
inputSchemaMapping = {
inputSchemaMappingType = "string"
// For remaining properties, see InputSchemaMapping objects
}
}
})
}
設定 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
名字 |
描述 |
價值 |
inputSchema |
這會決定事件方格針對發佈至網域的連入事件所應預期的格式。 |
'CloudEventV01Schema' 'CustomEventSchema' 'EventGridSchema' |
inputSchemaMapping |
指定對應事件承載相關信息的 InputSchemaMapping 相關信息。 |
InputSchemaMapping |
名字 |
描述 |
價值 |
inputSchemaMappingType |
針對 jsonInputSchemaMapping 類型設定為 'Json',。 |
'Json' (必要) |
JsonField
名字 |
描述 |
價值 |
sourceField |
輸入事件架構中要作為對應來源的功能變數名稱。 |
字串 |
JsonFieldWithDefault
名字 |
描述 |
價值 |
defaultValue |
未提供SourceField時要用於對應的預設值,如果已發佈的 JSON 事件承載中沒有具有指定名稱的屬性,則為 。 |
字串 |
sourceField |
輸入事件架構中要作為對應來源的功能變數名稱。 |
字串 |
Microsoft.EventGrid/domains
名字 |
描述 |
價值 |
位置 |
資源的位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
性能 |
網域的屬性 |
DomainProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 |
類型 |
資源類型 |
“Microsoft.EventGrid/domains@2018-09-15-preview” |