Freigeben über


VirtualMachinesOperationsExtensions.ListAsync Methode

Definition

Überlädt

ListAsync(IVirtualMachinesOperations, String, CancellationToken)

Listet alle virtuellen Computer in der angegebenen Ressourcengruppe auf. Verwenden Sie die nextLink-Eigenschaft in der Antwort, um die nächste Seite der virtuellen Computer abzurufen.

ListAsync(IVirtualMachinesOperations, String, String, String, CancellationToken)

Listet alle virtuellen Computer in der angegebenen Ressourcengruppe auf. Verwenden Sie die nextLink-Eigenschaft in der Antwort, um die nächste Seite der virtuellen Computer abzurufen.

ListAsync(IVirtualMachinesOperations, String, CancellationToken)

Listet alle virtuellen Computer in der angegebenen Ressourcengruppe auf. Verwenden Sie die nextLink-Eigenschaft in der Antwort, um die nächste Seite der virtuellen Computer abzurufen.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>> ListAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken);
static member ListAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>>
<Extension()>
Public Function ListAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, cancellationToken As CancellationToken) As Task(Of IPage(Of VirtualMachine))

Parameter

operations
IVirtualMachinesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für:

ListAsync(IVirtualMachinesOperations, String, String, String, CancellationToken)

Listet alle virtuellen Computer in der angegebenen Ressourcengruppe auf. Verwenden Sie die nextLink-Eigenschaft in der Antwort, um die nächste Seite der virtuellen Computer abzurufen.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>> ListAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string filter = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>>
<Extension()>
Public Function ListAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of VirtualMachine))

Parameter

operations
IVirtualMachinesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

filter
String

Die Systemabfrageoption zum Filtern von VMs, die in der Antwort zurückgegeben werden. Zulässiger Wert ist "virtualMachineScaleSet/id" eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'

expand
String

Der expand-Ausdruck, der bei Einem Vorgang angewendet werden soll. "instanceView" ermöglicht das Abrufen der Laufzeit status aller Virtual Machines. Dies kann nur angegeben werden, wenn eine gültige $filter-Option angegeben ist. Mögliche Werte: "instanceView"

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: