Freigeben über


ApiManagementGatewayResource.GenerateTokenAsync Methode

Definition

Ruft das SAS-Autorisierungstoken für das Gateway ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken
  • Vorgangs-IdGateway_GenerateToken
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))

Parameter

gatewayTokenRequestContract
GatewayTokenRequestContract

Das zu verwendende GatewayTokenRequestContract.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

gatewayTokenRequestContract ist NULL.

Gilt für: