Share via


KeyVaultClient.GetSecretVersionsAsync Method (String, String, Nullable<Int32>, CancellationToken)

 

Asynchronously list the versions of a secret.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Syntax

public Task<ListSecretsResponseMessage> GetSecretVersionsAsync(
    string vault,
    string secretName,
    Nullable<int> maxresults = null,
    CancellationToken cancellationToken = null
)
public:
Task<ListSecretsResponseMessage^>^ GetSecretVersionsAsync(
    String^ vault,
    String^ secretName,
    Nullable<int> maxresults = null,
    CancellationToken cancellationToken = null
)
member GetSecretVersionsAsync : 
        vault:string *
        secretName:string *
        maxresults:Nullable<int> = null *
        cancellationToken:CancellationToken = null -> Task<ListSecretsResponseMessage>
Public Function GetSecretVersionsAsync (
    vault As String,
    secretName As String,
    maxresults As Nullable(Of Integer),
    cancellationToken As CancellationToken
) As Task(Of ListSecretsResponseMessage)

Parameters

  • vault
    Type: System.String

    The URL for the vault containing the secret.

Return Value

Type: System.Threading.Tasks.Task<ListSecretsResponseMessage>

A response message containing a list of secrets along with a link to the next page of secrets.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top