KeyVaultClient.GetSecretsWithHttpMessagesAsync Método

Definição

Listar segredos em um cofre de chaves especificado.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.KeyVault.Models.SecretItem>>> GetSecretsWithHttpMessagesAsync (string vaultBaseUrl, int? maxresults = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecretsWithHttpMessagesAsync : string * Nullable<int> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.KeyVault.Models.SecretItem>>>
override this.GetSecretsWithHttpMessagesAsync : string * Nullable<int> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.KeyVault.Models.SecretItem>>>
Public Function GetSecretsWithHttpMessagesAsync (vaultBaseUrl As String, Optional maxresults As Nullable(Of Integer) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of SecretItem)))

Parâmetros

vaultBaseUrl
String

O nome do cofre, por exemplo https://myvault.vault.azure.net, .

maxresults
Nullable<Int32>

Número máximo de resultados a serem retornados em uma página. Se não for especificado, o serviço retornará até 25 resultados.

customHeaders
Dictionary<String,List<String>>

Cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Implementações

Exceções

Gerado quando a operação retornou um código de status inválido

Gerado quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Gerado quando um parâmetro necessário é nulo

Comentários

A operação Obter Segredos é aplicável a todo o cofre. No entanto, apenas o identificador de segredo base e seus atributos são fornecidos na resposta. As versões de segredo individuais não são listadas na resposta. Essa operação requer a permissão de segredos/lista.

Aplica-se a