Compartir a través de


EndpointResource.GetCredentialsAsync Método

Definición

Obtiene las credenciales de acceso del punto de conexión al recurso.

  • Ruta de acceso de solicitud/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials
  • IdEndpoints_ListCredentials de operaciones
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>

es cuánto tiempo es válido el token de acceso del punto de conexión (en segundos).

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a