Share via


KeyVaultClientExtensions.UpdateSecretAsync メソッド

定義

オーバーロード

UpdateSecretAsync(IKeyVaultClient, String, String, SecretAttributes, Dictionary<String,String>, CancellationToken)

指定したシークレットに関連付けられている属性を更新する

UpdateSecretAsync(IKeyVaultClient, String, String, String, String, SecretAttributes, IDictionary<String,String>, CancellationToken)

特定のキー コンテナー内の指定したシークレットに関連付けられている属性を更新します。

UpdateSecretAsync(IKeyVaultClient, String, String, SecretAttributes, Dictionary<String,String>, CancellationToken)

ソース:
KeyVaultClientExtensions.cs

指定したシークレットに関連付けられている属性を更新する

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle> UpdateSecretAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string secretIdentifier, string contentType = default, Microsoft.Azure.KeyVault.Models.SecretAttributes secretAttributes = default, System.Collections.Generic.Dictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * Microsoft.Azure.KeyVault.Models.SecretAttributes * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>
<Extension()>
Public Function UpdateSecretAsync (operations As IKeyVaultClient, secretIdentifier As String, Optional contentType As String = Nothing, Optional secretAttributes As SecretAttributes = Nothing, Optional tags As Dictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SecretBundle)

パラメーター

operations
IKeyVaultClient
secretIdentifier
String

シークレットの URL

contentType
String

パスワードなどのシークレット値の種類。

secretAttributes
SecretAttributes

シークレットの属性。 使用可能な属性の詳細については、「SecretAttributes」を参照してください。

tags
Dictionary<String,String>

キーと値のペアの形式のアプリケーション固有のメタデータ

cancellationToken
CancellationToken

省略可能なキャンセル トークン

戻り値

更新されたシークレットを含む応答メッセージ

適用対象

UpdateSecretAsync(IKeyVaultClient, String, String, String, String, SecretAttributes, IDictionary<String,String>, CancellationToken)

ソース:
KeyVaultClientExtensions.cs

特定のキー コンテナー内の指定したシークレットに関連付けられている属性を更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle> UpdateSecretAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string secretName, string secretVersion, string contentType = default, Microsoft.Azure.KeyVault.Models.SecretAttributes secretAttributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * string * string * Microsoft.Azure.KeyVault.Models.SecretAttributes * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>
<Extension()>
Public Function UpdateSecretAsync (operations As IKeyVaultClient, vaultBaseUrl As String, secretName As String, secretVersion As String, Optional contentType As String = Nothing, Optional secretAttributes As SecretAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SecretBundle)

パラメーター

operations
IKeyVaultClient

この拡張メソッドの操作グループ。

vaultBaseUrl
String

コンテナー名 (例: https://myvault.vault.azure.net)。

secretName
String

シークレットの名前。

secretVersion
String

シークレットのバージョン。

contentType
String

パスワードなどのシークレット値の種類。

secretAttributes
SecretAttributes

シークレット管理属性。

tags
IDictionary<String,String>

キーと値のペアの形式による、アプリケーション固有のメタデータ。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

UPDATE 操作は格納されている既存のシークレットの指定した属性を変更します。 要求で指定されていない属性は変更されません。 シークレット自体の値は変更できません。 この操作には、secrets/set アクセス許可が必要です。

適用対象