IKeyVaultClient.SetSecretWithHttpMessagesAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Legt ein Geheimnis in einem angegebenen Schlüsseltresor fest.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.SecretBundle>> SetSecretWithHttpMessagesAsync (string vaultBaseUrl, string secretName, string value, System.Collections.Generic.IDictionary<string,string> tags = default, string contentType = default, Microsoft.Azure.KeyVault.Models.SecretAttributes secretAttributes = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetSecretWithHttpMessagesAsync : string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.KeyVault.Models.SecretAttributes * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.SecretBundle>>
Public Function SetSecretWithHttpMessagesAsync (vaultBaseUrl As String, secretName As String, value As String, Optional tags As IDictionary(Of String, String) = Nothing, Optional contentType As String = Nothing, Optional secretAttributes As SecretAttributes = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SecretBundle))
Parameter
- vaultBaseUrl
- String
Der Tresorname, z. B https://myvault.vault.azure.net. .
- secretName
- String
Der Name des Geheimnisses.
- value
- String
Der Wert des geheimen Schlüssels.
- tags
- IDictionary<String,String>
Anwendungsspezifische Metadaten in Form von Schlüssel-Wert-Paaren.
- contentType
- String
Typ des Geheimwerts, z. B. ein Kennwort.
- secretAttributes
- SecretAttributes
Die Geheimverwaltungsattribute.
- customHeaders
- Dictionary<String,List<String>>
Die Header, die der Anforderung hinzugefügt werden.
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Hinweise
Der SET-Vorgang fügt dem Azure-Key Vault ein Geheimnis hinzu. Wenn der benannte geheime Schlüssel bereits vorhanden ist, erstellt der Azure-Schlüsseltresor eine neue Version des geheimen Schlüssels. Für diesen Vorgang ist die Berechtigung geheimnisse/set erforderlich.
Gilt für:
Azure SDK for .NET