MockableBillingBenefitsResourceGroupResource.GetCredit Method

Definition

Get a credit.

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

Parameters

creditName
String

Name of the credit.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

creditName is null.

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

Applies to