Share via


FabricClient.SecretStoreClient.GetSecretsAsync Method

Definition

Asynchronously get secrets from Central Secret store.

public System.Threading.Tasks.Task<System.Fabric.SecretStore.Secret[]> GetSecretsAsync (System.Fabric.SecretStore.SecretReference[] secretReferences, bool includeValue, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetSecretsAsync : System.Fabric.SecretStore.SecretReference[] * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.SecretStore.Secret[]>
Public Function GetSecretsAsync (secretReferences As SecretReference(), includeValue As Boolean, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Secret())

Parameters

secretReferences
SecretReference[]

List of secrets to retrieve.

includeValue
Boolean

True to include the secret value in response

timeout
TimeSpan

Max time to wait for the async operation to complete

cancellationToken
CancellationToken

The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is canceled.

Returns

The task representing the asynchronous action.

Applies to