Partager via


MachineLearningOnlineEndpointCollection.CreateOrUpdateAsync Méthode

Définition

Créer ou mettre à jour un point de terminaison en ligne (asynchrone).

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}
  • IdOnlineEndpoints_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.MachineLearningOnlineEndpointResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, endpointName As String, data As MachineLearningOnlineEndpointData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MachineLearningOnlineEndpointResource))

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.

endpointName
String

Nom du point de terminaison en ligne.

data
MachineLearningOnlineEndpointData

Entité de point de terminaison en ligne à appliquer pendant l’opération.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

endpointName ou data est null.

S’applique à