SshPublicKeysOperationsExtensions.GenerateKeyPairAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
公開キーと秘密キーのペアを生成して返し、SSH 公開キー リソースに公開キーを設定します。 キーの長さは 3072 ビットです。 この操作は、SSH 公開キー リソースごとに 1 回だけ実行できます。
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.SshPublicKeyGenerateKeyPairResult> GenerateKeyPairAsync (this Microsoft.Azure.Management.Compute.ISshPublicKeysOperations operations, string resourceGroupName, string sshPublicKeyName, System.Threading.CancellationToken cancellationToken = default);
static member GenerateKeyPairAsync : Microsoft.Azure.Management.Compute.ISshPublicKeysOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.SshPublicKeyGenerateKeyPairResult>
<Extension()>
Public Function GenerateKeyPairAsync (operations As ISshPublicKeysOperations, resourceGroupName As String, sshPublicKeyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SshPublicKeyGenerateKeyPairResult)
パラメーター
- operations
- ISshPublicKeysOperations
この拡張メソッドの操作グループ。
- resourceGroupName
- String
リソース グループの名前。
- sshPublicKeyName
- String
SSH 公開キーの名前。
- cancellationToken
- CancellationToken
キャンセル トークン。
戻り値
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET