次の方法で共有


WebAppsOperationsExtensions.CreateOrUpdateHostSecretAsync メソッド

定義

ホスト レベルのシークレットを追加または更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.KeyInfo> CreateOrUpdateHostSecretAsync(this Microsoft.Azure.Management.WebSites.IWebAppsOperations operations, string resourceGroupName, string name, string keyType, string keyName, Microsoft.Azure.Management.WebSites.Models.KeyInfo key, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateHostSecretAsync : Microsoft.Azure.Management.WebSites.IWebAppsOperations * string * string * string * string * Microsoft.Azure.Management.WebSites.Models.KeyInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.KeyInfo>
<Extension()>
Public Function CreateOrUpdateHostSecretAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, keyType As String, keyName As String, key As KeyInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyInfo)

パラメーター

operations
IWebAppsOperations

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

resourceGroupName
String

リソースが属しているリソース グループの名前。

name
String

サイト名。

keyType
String

ホスト キーの種類。

keyName
String

キーの名前です。

key
KeyInfo

作成または更新するキー

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

「ホスト レベル シークレットを追加または更新する」の説明。

適用対象