Partager via


MachineLearningOnlineEndpointResource.GetTokenAsync(CancellationToken) Méthode

Définition

Récupérez un jeton AML valide pour un point de terminaison à l’aide de l’authentification basée sur AMLToken.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token
  • IdOnlineEndpoints_GetToken d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthToken>> GetTokenAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthToken>>
override this.GetTokenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthToken>>
Public Overridable Function GetTokenAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MachineLearningEndpointAuthToken))

Paramètres

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à