次の方法で共有


PostgreSqlServerResource.GetPostgreSqlServerKeyAsync メソッド

定義

PostgreSQL サーバー キーを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/keys/{keyName}
  • 操作IdServerKeys_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.PostgreSqlServerKeyResource>> GetPostgreSqlServerKeyAsync (string keyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPostgreSqlServerKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.PostgreSqlServerKeyResource>>
override this.GetPostgreSqlServerKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.PostgreSqlServerKeyResource>>
Public Overridable Function GetPostgreSqlServerKeyAsync (keyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PostgreSqlServerKeyResource))

パラメーター

keyName
String

取得する PostgreSQL サーバー キーの名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

keyName は空の文字列であり、空でないと予想されていました。

keyName が null です。

適用対象