你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Domain 构造函数

定义

重载

Domain()

初始化 Domain 类的新实例。

Domain(String, String, String, String, IDictionary<String,String>, IList<PrivateEndpointConnection>, String, String, String, InputSchemaMapping, String, String, IList<InboundIpRule>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, SystemData, IdentityInfo)

初始化 Domain 类的新实例。

Domain()

初始化 Domain 类的新实例。

public Domain ();
Public Sub New ()

适用于

Domain(String, String, String, String, IDictionary<String,String>, IList<PrivateEndpointConnection>, String, String, String, InputSchemaMapping, String, String, IList<InboundIpRule>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, SystemData, IdentityInfo)

初始化 Domain 类的新实例。

public Domain (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.PrivateEndpointConnection> privateEndpointConnections = default, string provisioningState = default, string endpoint = default, string inputSchema = default, Microsoft.Azure.Management.EventGrid.Models.InputSchemaMapping inputSchemaMapping = default, string metricResourceId = default, string publicNetworkAccess = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.InboundIpRule> inboundIpRules = default, bool? disableLocalAuth = default, bool? autoCreateTopicWithFirstSubscription = default, bool? autoDeleteTopicWithLastSubscription = default, string dataResidencyBoundary = default, Microsoft.Azure.Management.EventGrid.Models.SystemData systemData = default, Microsoft.Azure.Management.EventGrid.Models.IdentityInfo identity = default);
new Microsoft.Azure.Management.EventGrid.Models.Domain : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.PrivateEndpointConnection> * string * string * string * Microsoft.Azure.Management.EventGrid.Models.InputSchemaMapping * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.InboundIpRule> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * Microsoft.Azure.Management.EventGrid.Models.SystemData * Microsoft.Azure.Management.EventGrid.Models.IdentityInfo -> Microsoft.Azure.Management.EventGrid.Models.Domain
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing, Optional provisioningState As String = Nothing, Optional endpoint As String = Nothing, Optional inputSchema As String = Nothing, Optional inputSchemaMapping As InputSchemaMapping = Nothing, Optional metricResourceId As String = Nothing, Optional publicNetworkAccess As String = Nothing, Optional inboundIpRules As IList(Of InboundIpRule) = Nothing, Optional disableLocalAuth As Nullable(Of Boolean) = Nothing, Optional autoCreateTopicWithFirstSubscription As Nullable(Of Boolean) = Nothing, Optional autoDeleteTopicWithLastSubscription As Nullable(Of Boolean) = Nothing, Optional dataResidencyBoundary As String = Nothing, Optional systemData As SystemData = Nothing, Optional identity As IdentityInfo = Nothing)

参数

location
String

资源的位置。

id
String

资源的完全限定标识符。

name
String

资源的名称。

type
String

资源的类型。

tags
IDictionary<String,String>

资源的标记。

privateEndpointConnections
IList<PrivateEndpointConnection>

专用终结点连接列表。

provisioningState
String

事件网格域资源的预配状态。 可能的值包括:“Creating”、“Updating”、“Deleting”、“Succeeded”、“Canceled”、“Failed”

endpoint
String

用于发布事件的事件网格域资源的终结点。

inputSchema
String

这决定了事件网格对发布到事件网格域资源的传入事件应采用的格式。 可能的值包括:“EventGridSchema”、“CustomEventSchema”、“CloudEventSchemaV1_0”

inputSchemaMapping
InputSchemaMapping

有关 InputSchemaMapping 的信息,它指定了有关映射事件有效负载的信息。

metricResourceId
String

事件网格域资源的指标资源 ID。

publicNetworkAccess
String

这确定是否允许通过公用网络进行流量。 默认情况下,它处于启用状态。 可以通过配置 <seealso cref=“P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules” />来进一步限制为特定 IP。 可能的值包括:“Enabled”、“Disabled”

inboundIpRules
IList<InboundIpRule>

这可用于限制来自特定 IP 而不是所有 IP 的流量。 注意:仅当启用了 PublicNetworkAccess 时,才会考虑这些内容。

disableLocalAuth
Nullable<Boolean>

此布尔值用于启用或禁用本地身份验证。默认值为 false。 当 属性设置为 true 时,如果用户被允许发布到域,则仅使用 AAD 令牌进行身份验证。

autoCreateTopicWithFirstSubscription
Nullable<Boolean>

此布尔值用于指定与此事件网格域资源关联的“所有”事件网格域主题的创建机制。 在此上下文中,当为 true) 时,可以自动管理域主题的创建 (;如果为 false) ,则可以创建自托管 (。 此属性的默认值为 true。 当此属性为 null 或设置为 true 时,事件网格负责在域主题范围内创建第一个事件订阅时自动创建域主题。 如果此属性设置为 false,则创建第一个事件订阅需要用户创建域主题。 如果用户希望完全控制域主题的创建时间,则可以使用自我管理模式,而自动管理模式则提供由用户执行更少操作和管理更少资源的灵活性。 另请注意,在自动管理的创建模式下,允许用户根据需要按需创建域主题。

autoDeleteTopicWithLastSubscription
Nullable<Boolean>

此布尔值用于指定与此事件网格域资源关联的“所有”事件网格域主题的删除机制。 在此上下文中,当为 true) 时,可以自动管理删除域主题 (,如果为 false) ,则可以进行自我管理 (。 此属性的默认值为 true。 当此属性设置为 true 时,事件网格负责在删除域主题范围内的最后一个事件订阅时自动删除域主题。 如果此属性设置为 false,则用户需要在不再需要域主题时手动删除该主题 (例如,删除最后一个事件订阅并且需要清理资源) 。 如果用户希望完全控制何时需要删除域主题,则可以使用自我管理模式,而自动管理模式则提供灵活性,可以让用户执行更少的操作和管理更少的资源。

dataResidencyBoundary
String

资源Data Residency边界。 可能的值包括:“WithinGeopair”、“WithinRegion”

systemData
SystemData

与事件网格域资源相关的系统元数据。

identity
IdentityInfo

事件网格域资源的标识信息。

适用于