MonitorExtensions.GetDiagnosticSettingsCategoryAsync メソッド

定義

指定したリソースの診断設定カテゴリを取得します。

  • 要求パス/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • 操作IdDiagnosticSettingsCategory_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.DiagnosticSettingsCategoryResource>> GetDiagnosticSettingsCategoryAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string name, System.Threading.CancellationToken cancellationToken = default);
static member GetDiagnosticSettingsCategoryAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.DiagnosticSettingsCategoryResource>>
<Extension()>
Public Function GetDiagnosticSettingsCategoryAsync (client As ArmClient, scope As ResourceIdentifier, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiagnosticSettingsCategoryResource))

パラメーター

client
ArmClient

ArmClientメソッドが実行するインスタンス。

scope
ResourceIdentifier

リソースが適用するスコープ。

name
String

診断設定の名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

name が null です。

適用対象