次の方法で共有


MockableNetworkCloudSubscriptionResource.GetNetworkCloudVirtualMachinesAsync Method

Definition

Get a list of virtual machines in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines
  • Operation Id: VirtualMachines_ListBySubscription
  • Default Api Version: 2024-06-01-preview
  • Resource: NetworkCloudVirtualMachineResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource> GetNetworkCloudVirtualMachinesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetworkCloudVirtualMachinesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
override this.GetNetworkCloudVirtualMachinesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
Public Overridable Function GetNetworkCloudVirtualMachinesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkCloudVirtualMachineResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of NetworkCloudVirtualMachineResource that may take multiple service requests to iterate over.

Applies to