Share via


NeonBranchCollection.CreateOrUpdateAsync Method

Definition

Create a Branch

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}
  • Operation Id: Branch_CreateOrUpdate
  • Default Api Version: 2025-03-01
  • Resource: NeonBranchResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NeonPostgres.NeonBranchResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string branchName, Azure.ResourceManager.NeonPostgres.NeonBranchData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NeonPostgres.NeonBranchData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NeonPostgres.NeonBranchResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NeonPostgres.NeonBranchData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NeonPostgres.NeonBranchResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, branchName As String, data As NeonBranchData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NeonBranchResource))

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.

branchName
String

The name of the Branch.

data
NeonBranchData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

branchName or data is null.

Applies to