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

IServicesOperations.BeginCreateOrUpdateWithHttpMessagesAsync 方法

定义

在给定资源组中创建或更新搜索服务。 如果搜索服务已存在,则将使用给定值更新所有属性。 https://aka.ms/search-manage

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Fluent.Models.SearchServiceInner>> BeginCreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string searchServiceName, Microsoft.Azure.Management.Search.Fluent.Models.SearchServiceInner service, Microsoft.Azure.Management.Search.Fluent.Models.SearchManagementRequestOptionsInner searchManagementRequestOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginCreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Search.Fluent.Models.SearchServiceInner * Microsoft.Azure.Management.Search.Fluent.Models.SearchManagementRequestOptionsInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Fluent.Models.SearchServiceInner>>
Public Function BeginCreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, searchServiceName As String, service As SearchServiceInner, Optional searchManagementRequestOptions As SearchManagementRequestOptionsInner = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SearchServiceInner))

参数

resourceGroupName
String

当前订阅中资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

searchServiceName
String

要创建或更新的 Azure 搜索服务的名称。 搜索服务名称只能包含小写字母、数字或短划线,不能使用短划线作为前两个字符或最后一个字符,不能包含连续短划线,并且长度必须介于 2 到 60 个字符之间。 搜索服务名称必须全局唯一,因为它们是服务 URI (https://< name.search.windows.net) > 的一部分。 创建服务后,无法更改服务名称。

service
SearchServiceInner

要创建或更新的搜索服务的定义。

searchManagementRequestOptions
SearchManagementRequestOptionsInner

操作的其他参数

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

当操作返回无效状态代码时引发

无法反序列化响应时引发

当所需参数为 null 时引发

适用于