MockableChaosResourceGroupResource.GetChaosWorkspaceAsync Method

Definition

Get a Workspace resource.

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

Parameters

workspaceName
String

String that represents a Workspace resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

workspaceName is null.

workspaceName is an empty string, and was expected to be non-empty.

Applies to