Partilhar via


ApiManagementGatewayResource.GenerateToken Método

Definição

Obtém o token de autorização de acesso compartilhado para o gateway.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken
  • Operação IdGateway_GenerateToken
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

O GatewayTokenRequestContract a ser usado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

gatewayTokenRequestContract é nulo.

Aplica-se a