Dela via


LabCollection.CreateOrUpdateAsync Method

Definition

Operation to create or update a lab resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}
  • Operation Id: Labs_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LabServices.LabResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string labName, Azure.ResourceManager.LabServices.LabData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.LabServices.LabData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LabServices.LabResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.LabServices.LabData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LabServices.LabResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, labName As String, data As LabData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of LabResource))

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.

labName
String

The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.

data
LabData

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

labName or data is null.

Applies to