Share via


NeonBranchCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • 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.NullableResponse<Azure.ResourceManager.NeonPostgres.NeonBranchResource>> GetIfExistsAsync(string branchName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NeonPostgres.NeonBranchResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.NeonPostgres.NeonBranchResource>>
Public Overridable Function GetIfExistsAsync (branchName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NeonBranchResource))

Parameters

branchName
String

The name of the Branch.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

branchName is null.

Applies to