Compartilhar via


ISharedPrivateLinkResourcesOperations.CreateOrUpdateWithHttpMessagesAsync Método

Definição

Inicia a criação ou atualização de um recurso de link privado compartilhado gerenciado pelo serviço de pesquisa no grupo de recursos especificado. https://aka.ms/search-manage

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource sharedPrivateLinkResource, Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource * Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions * 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.Models.SharedPrivateLinkResource>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, searchServiceName As String, sharedPrivateLinkResourceName As String, sharedPrivateLinkResource As SharedPrivateLinkResource, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SharedPrivateLinkResource))

Parâmetros

resourceGroupName
String

O nome do grupo de recursos na assinatura atual. Você pode obter esse valor por meio da API do Gerenciador de Recursos do Azure ou por meio do portal.

searchServiceName
String

O nome do serviço Azure Cognitive Search associado ao grupo de recursos especificado.

sharedPrivateLinkResourceName
String

O nome do recurso de link privado compartilhado gerenciado pelo serviço Azure Cognitive Search dentro do grupo de recursos especificado.

sharedPrivateLinkResource
SharedPrivateLinkResource

A definição do recurso de link privado compartilhado a ser criado ou atualizado.

searchManagementRequestOptions
SearchManagementRequestOptions

Parâmetros adicionais para a operação

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

Gerada quando a operação retornou um código de status inválido

Gerada quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Aplica-se a