Compartilhar via


TemplateClient.GetSecretValueAsync(String, CancellationToken) Método

Definição

A operação GET se aplica a qualquer segredo armazenado em um Cofre de Chaves do Azure. Essa operação requer a permissão secrets/get.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Template.Models.SecretBundle>> GetSecretValueAsync (string secretName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecretValueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Template.Models.SecretBundle>>
override this.GetSecretValueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Template.Models.SecretBundle>>
Public Overridable Function GetSecretValueAsync (secretName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecretBundle))

Parâmetros

secretName
String

O nome do segredo.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a