你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SearchService 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SearchService()
初始化 SearchService 类的新实例。
public SearchService ();
Public Sub New ()
适用于
SearchService(String, String, String, String, IDictionary<String, String>, Nullable<Int32>, Nullable<Int32>, Nullable<HostingMode>, Nullable<PublicNetworkAccess>, Nullable<SearchServiceStatus>, String, Nullable<ProvisioningState>, NetworkRuleSet, IList<PrivateEndpointConnection>, IList<SharedPrivateLinkResource>, Sku, Identity)
初始化 SearchService 类的新实例。
public SearchService (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, int? replicaCount = default, int? partitionCount = default, Microsoft.Azure.Management.Search.Models.HostingMode? hostingMode = default, Microsoft.Azure.Management.Search.Models.PublicNetworkAccess? publicNetworkAccess = default, Microsoft.Azure.Management.Search.Models.SearchServiceStatus? status = default, string statusDetails = default, Microsoft.Azure.Management.Search.Models.ProvisioningState? provisioningState = default, Microsoft.Azure.Management.Search.Models.NetworkRuleSet networkRuleSet = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.PrivateEndpointConnection> privateEndpointConnections = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource> sharedPrivateLinkResources = default, Microsoft.Azure.Management.Search.Models.Sku sku = default, Microsoft.Azure.Management.Search.Models.Identity identity = default);
new Microsoft.Azure.Management.Search.Models.SearchService : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<int> * Nullable<Microsoft.Azure.Management.Search.Models.HostingMode> * Nullable<Microsoft.Azure.Management.Search.Models.PublicNetworkAccess> * Nullable<Microsoft.Azure.Management.Search.Models.SearchServiceStatus> * string * Nullable<Microsoft.Azure.Management.Search.Models.ProvisioningState> * Microsoft.Azure.Management.Search.Models.NetworkRuleSet * System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.PrivateEndpointConnection> * System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource> * Microsoft.Azure.Management.Search.Models.Sku * Microsoft.Azure.Management.Search.Models.Identity -> Microsoft.Azure.Management.Search.Models.SearchService
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 replicaCount As Nullable(Of Integer) = Nothing, Optional partitionCount As Nullable(Of Integer) = Nothing, Optional hostingMode As Nullable(Of HostingMode) = Nothing, Optional publicNetworkAccess As Nullable(Of PublicNetworkAccess) = Nothing, Optional status As Nullable(Of SearchServiceStatus) = Nothing, Optional statusDetails As String = Nothing, Optional provisioningState As Nullable(Of ProvisioningState) = Nothing, Optional networkRuleSet As NetworkRuleSet = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing, Optional sharedPrivateLinkResources As IList(Of SharedPrivateLinkResource) = Nothing, Optional sku As Sku = Nothing, Optional identity As Identity = Nothing)
参数
- location
- String
资源所在的地理位置
- id
- String
资源的完全限定资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
资源的名称
- type
- String
资源类型。 Ex- Microsoft.Compute/virtualMachines 或 Microsoft.Storage/storageAccounts。
- tags
- IDictionary<String,String>
资源标记。
搜索服务中的副本数。 如果指定,则对于标准 SKU,该值必须介于 1 到 12(含 1 和 12)之间,对于基本 SKU,该值必须是介于 1 到 3(含 1 到 3)之间的值。
搜索服务中的分区数;如果指定,它可以是 1、2、3、4、6 或 12。 大于 1 的值仅对标准 SKU 有效。 对于 hostingMode 设置为“highDensity”的“standard3”服务,允许的值介于 1 和 3 之间。
- hostingMode
- Nullable<HostingMode>
仅适用于 standard3 SKU。 可以将此属性设置为启用最多 3 个高密度分区,这些分区最多允许 1000 个索引,这远远高于任何其他 SKU 允许的最大索引数。 对于 standard3 SKU,该值为“default”或“highDensity”。 对于所有其他 SKU,此值必须为“default”。 可能的值包括:“default”、“highDensity”
- publicNetworkAccess
- Nullable<PublicNetworkAccess>
此值可以设置为“enabled”,以避免对现有客户资源和模板进行中断性变更。 如果设置为“disabled”,则不允许通过公共接口的流量,专用终结点连接将是独占访问方法。 可能的值包括:“enabled”、“disabled”
- status
- Nullable<SearchServiceStatus>
搜索服务的状态。 可能的值包括:“running”:搜索服务正在运行,并且没有预配操作正在进行中。 “预配”:正在预配或纵向扩展或缩减搜索服务。 “正在删除”:正在删除搜索服务。 “已降级”:搜索服务已降级。 当基础搜索单元不正常时,可能会发生这种情况。 搜索服务很可能正常运行,但性能可能较慢,并且某些请求可能会被删除。 “disabled”:搜索服务已禁用。 在此状态下,服务将拒绝所有 API 请求。 “error”:搜索服务处于错误状态。 如果服务处于降级、禁用或错误状态,则表示Azure 认知搜索团队正在积极调查根本问题。 这些状态下的专用服务仍根据预配的搜索单位数收费。 可能的值包括:“running”、“provisioning”、“deleting”、“degraded”、“disabled”、“error”
- statusDetails
- String
搜索服务状态的详细信息。
- provisioningState
- Nullable<ProvisioningState>
对搜索服务执行的最后一个预配操作的状态。 “正在设置”是一种中间状态,在建立服务容量时出现。 设置容量后,provisioningState 将更改为“成功”或“失败”。 客户端应用程序可以使用“获取搜索服务”操作查看操作完成时间, (建议的轮询间隔为 30 秒到 1 分钟) 轮询预配状态。 如果使用的是免费服务,则此值往往在调用 Create search service 时直接以“成功”的形式返回。 这是因为免费服务使用了已设置的容量。 可能的值包括:“succeeded”、“provisioning”、“failed”
- networkRuleSet
- NetworkRuleSet
确定如何访问Azure 认知搜索服务的网络特定规则。
- privateEndpointConnections
- IList<PrivateEndpointConnection>
与Azure 认知搜索服务的专用终结点连接的列表。
- sharedPrivateLinkResources
- IList<SharedPrivateLinkResource>
由 Azure 认知搜索 服务管理的共享专用链接资源的列表。
- sku
- Sku
搜索服务的 SKU,用于确定价格层和容量限制。 创建新的搜索服务时需要此属性。
- identity
- Identity
资源的标识。