次の方法で共有


ApplicationInsightsComponentResource.GetAPIKeyAsync メソッド

定義

このキー ID の API キーを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}
  • 操作IdAPIKeys_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>> GetAPIKeyAsync (string keyId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAPIKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>>
override this.GetAPIKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>>
Public Overridable Function GetAPIKeyAsync (keyId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentAPIKey))

パラメーター

keyId
String

API キー ID。 これは Application Insights コンポーネント内で一意です。

cancellationToken
CancellationToken

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

戻り値

例外

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

keyId が null です。

適用対象