MockableDesktopVirtualizationSubscriptionResource.GetVirtualWorkspaces Method

Definition

List workspaces in subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
  • Operation Id: Workspaces_ListBySubscription
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
public virtual Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource> GetVirtualWorkspaces (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualWorkspaces : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>
override this.GetVirtualWorkspaces : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>
Public Overridable Function GetVirtualWorkspaces (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualWorkspaceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VirtualWorkspaceResource that may take multiple service requests to iterate over.

Applies to