Partager via


SearchPrivateEndpointConnectionCollection.CreateOrUpdateAsync Méthode

Définition

Mises à jour une connexion de point de terminaison privé au service de recherche dans le groupe de ressources donné.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}
  • IdPrivateEndpointConnections_Update d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Search.SearchPrivateEndpointConnectionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Search.SearchPrivateEndpointConnectionData data, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Search.SearchPrivateEndpointConnectionData * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Search.SearchPrivateEndpointConnectionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Search.SearchPrivateEndpointConnectionData * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Search.SearchPrivateEndpointConnectionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, privateEndpointConnectionName As String, data As SearchPrivateEndpointConnectionData, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SearchPrivateEndpointConnectionResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations Azure.Core Long-Running.

privateEndpointConnectionName
String

Nom de la connexion de point de terminaison privé au service Recherche cognitive Azure avec le groupe de ressources spécifié.

data
SearchPrivateEndpointConnectionData

Définition de la connexion de point de terminaison privé à mettre à jour.

searchManagementRequestOptions
SearchManagementRequestOptions

Groupe de paramètres.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

privateEndpointConnectionName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

privateEndpointConnectionName ou data est null.

S’applique à