Поделиться через


NeonBranchCollection.GetAsync(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>> GetAsync(string branchName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NeonPostgres.NeonBranchResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NeonPostgres.NeonBranchResource>>
Public Overridable Function GetAsync (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 an empty string, and was expected to be non-empty.

branchName is null.

Applies to