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


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