Freigeben über


PlaywrightWorkspaceCollection.CreateOrUpdateAsync Method

Definition

Create a PlaywrightWorkspace

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}
  • Operation Id: PlaywrightWorkspace_CreateOrUpdate
  • Default Api Version: 2025-09-01
  • Resource: PlaywrightWorkspaceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Playwright.PlaywrightWorkspaceResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string playwrightWorkspaceName, Azure.ResourceManager.Playwright.PlaywrightWorkspaceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Playwright.PlaywrightWorkspaceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Playwright.PlaywrightWorkspaceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Playwright.PlaywrightWorkspaceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Playwright.PlaywrightWorkspaceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, playwrightWorkspaceName As String, data As PlaywrightWorkspaceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PlaywrightWorkspaceResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

playwrightWorkspaceName
String

The name of the PlaywrightWorkspace.

data
PlaywrightWorkspaceData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

playwrightWorkspaceName or data is null.

Applies to