Compartir a través de


ApiManagementUserResource.GetSharedAccessTokenAsync Método

Definición

Obtiene el token de autorización de acceso compartido para el usuario.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token
  • IdUser_GetSharedAccessToken de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.UserTokenResult>> GetSharedAccessTokenAsync (Azure.ResourceManager.ApiManagement.Models.UserTokenContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSharedAccessTokenAsync : Azure.ResourceManager.ApiManagement.Models.UserTokenContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.UserTokenResult>>
override this.GetSharedAccessTokenAsync : Azure.ResourceManager.ApiManagement.Models.UserTokenContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.UserTokenResult>>
Public Overridable Function GetSharedAccessTokenAsync (content As UserTokenContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of UserTokenResult))

Parámetros

content
UserTokenContent

Cree parámetros de token de autorización.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a