MockableBillingBenefitsResourceGroupResource.GetCredit Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.