Compartilhar via


EndpointResource.GetCredentials 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 Azure.Response<Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess> GetCredentials (long? expiresin = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCredentials : Nullable<int64> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess>
override this.GetCredentials : Nullable<int64> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess>
Public Overridable Function GetCredentials (Optional expiresin As Nullable(Of Long) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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