CreditSourceCollection.GetAsync(String, CancellationToken) Method

Definition

Get a credit source.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}/sources/{sourceName}.
  • Operation Id. : CreditSources_Get.
  • Default Api Version. : 2025-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.CreditSourceResource>> GetAsync(string sourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.CreditSourceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.CreditSourceResource>>
Public Overridable Function GetAsync (sourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreditSourceResource))

Parameters

sourceName
String

Name of the credit source.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sourceName is null.

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

Applies to