Share via


NeonProjectResource.GetNeonBranchAsync(String, CancellationToken) Method

Definition

Get a Branch

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

Parameters

branchName
String

The name of the Branch.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

branchName is null.

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

Applies to