Compartir a través de


ApiManagementGatewayResource.GenerateTokenAsync Método

Definición

Obtiene el token de autorización de acceso compartido para la puerta de enlace.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken
  • IdGateway_GenerateToken de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.GatewayTokenContract>> GenerateTokenAsync (Azure.ResourceManager.ApiManagement.Models.GatewayTokenRequestContract gatewayTokenRequestContract, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateTokenAsync : Azure.ResourceManager.ApiManagement.Models.GatewayTokenRequestContract * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.GatewayTokenContract>>
override this.GenerateTokenAsync : Azure.ResourceManager.ApiManagement.Models.GatewayTokenRequestContract * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.GatewayTokenContract>>
Public Overridable Function GenerateTokenAsync (gatewayTokenRequestContract As GatewayTokenRequestContract, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GatewayTokenContract))

Parámetros

gatewayTokenRequestContract
GatewayTokenRequestContract

GatewayTokenRequestContract que se va a usar.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

gatewayTokenRequestContract es null.

Se aplica a