Compartilhar via


EndpointResource.GetCredentialsAsync Método

Definição

Obtém as credenciais de acesso do ponto de extremidade para o recurso.

  • Caminho da Solicitação/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials
  • Operação IdEndpoints_ListCredentials
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess>> GetCredentialsAsync (long? expiresin = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCredentialsAsync : Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess>>
override this.GetCredentialsAsync : Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess>>
Public Overridable Function GetCredentialsAsync (Optional expiresin As Nullable(Of Long) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TargetResourceEndpointAccess))

Parâmetros

expiresin
Nullable<Int64>

O é quanto tempo o token de acesso do ponto de extremidade é válido (em segundos).

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a