Share via


NeonBranchCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NeonPostgres.NeonBranchResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string branchName, Azure.ResourceManager.NeonPostgres.NeonBranchData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NeonPostgres.NeonBranchData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NeonPostgres.NeonBranchResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NeonPostgres.NeonBranchData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NeonPostgres.NeonBranchResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, branchName As String, data As NeonBranchData, Optional cancellationToken As CancellationToken = Nothing) As 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