MockableChaosSubscriptionResource.GetWorkspacesAsync Method

Definition

Get a list of all Workspace resources in a subscription.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Chaos/workspaces.
  • Operation Id. : Workspaces_ListAll.
  • Default Api Version. : 2026-05-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Chaos.ChaosWorkspaceResource> GetWorkspacesAsync(string continuationToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorkspacesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Chaos.ChaosWorkspaceResource>
override this.GetWorkspacesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Chaos.ChaosWorkspaceResource>
Public Overridable Function GetWorkspacesAsync (Optional continuationToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ChaosWorkspaceResource)

Parameters

continuationToken
String

String that sets the continuation token.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to