共用方式為


DevBoxDefinitionCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a Dev Box definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}
  • Operation Id: DevBoxDefinitions_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevCenter.DevBoxDefinitionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string devBoxDefinitionName, Azure.ResourceManager.DevCenter.DevBoxDefinitionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DevCenter.DevBoxDefinitionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevCenter.DevBoxDefinitionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DevCenter.DevBoxDefinitionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevCenter.DevBoxDefinitionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, devBoxDefinitionName As String, data As DevBoxDefinitionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DevBoxDefinitionResource))

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.

devBoxDefinitionName
String

The name of the Dev Box definition.

data
DevBoxDefinitionData

Represents a Dev Box definition.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

devBoxDefinitionName or data is null.

Applies to