次の方法で共有


VirtualMachineResource.GetGuestAgentAsync(String, CancellationToken) メソッド

定義

GuestAgent GET メソッドを実装します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}
  • 操作IdGuestAgents_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.GuestAgentResource>> GetGuestAgentAsync (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGuestAgentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.GuestAgentResource>>
override this.GetGuestAgentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.GuestAgentResource>>
Public Overridable Function GetGuestAgentAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GuestAgentResource))

パラメーター

name
String

GuestAgent の名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

name が null です。

適用対象