DevTestLabResource.GetDevTestLabCustomImageAsync メソッド

定義

カスタム イメージを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}
  • 操作IdCustomImages_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabCustomImageResource>> GetDevTestLabCustomImageAsync (string name, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevTestLabCustomImageAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabCustomImageResource>>
override this.GetDevTestLabCustomImageAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabCustomImageResource>>
Public Overridable Function GetDevTestLabCustomImageAsync (name As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevTestLabCustomImageResource))

パラメーター

name
String

カスタム イメージの名前。

expand
String

$expand クエリを指定します。 例: 'properties($select=vm)'

cancellationToken
CancellationToken

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

戻り値

例外

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

name が null です。

適用対象