Compartir a través de


ApiManagementGatewayResource.GenerateToken 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 Azure.Response<Azure.ResourceManager.ApiManagement.Models.GatewayTokenContract> GenerateToken (Azure.ResourceManager.ApiManagement.Models.GatewayTokenRequestContract gatewayTokenRequestContract, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateToken : Azure.ResourceManager.ApiManagement.Models.GatewayTokenRequestContract * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.GatewayTokenContract>
override this.GenerateToken : Azure.ResourceManager.ApiManagement.Models.GatewayTokenRequestContract * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.GatewayTokenContract>
Public Overridable Function GenerateToken (gatewayTokenRequestContract As GatewayTokenRequestContract, Optional cancellationToken As CancellationToken = Nothing) As 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