Skip to main content

credits

Creates, updates, deletes, gets or lists a credits resource.

Overview

Namecredits
TypeResource
Idazure.consumption.credits

Fields

NameDatatypeDescription
idtextResource Id.
nametextResource name.
balance_summarytextfield from the properties object
billingAccountIdtextfield from the properties object
billingProfileIdtextfield from the properties object
billing_currencytextfield from the properties object
credit_currencytextfield from the properties object
e_tagtextfield from the properties object
expired_credittextfield from the properties object
is_estimated_balancetextfield from the properties object
pending_credit_adjustmentstextfield from the properties object
pending_eligible_chargestextfield from the properties object
resellertextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountId, billingProfileIdThe credit summary by billingAccountId and billingProfileId.

SELECT examples

The credit summary by billingAccountId and billingProfileId.

SELECT
id,
name,
balance_summary,
billingAccountId,
billingProfileId,
billing_currency,
credit_currency,
e_tag,
expired_credit,
is_estimated_balance,
pending_credit_adjustments,
pending_eligible_charges,
reseller,
type
FROM azure.consumption.vw_credits
WHERE billingAccountId = '{{ billingAccountId }}'
AND billingProfileId = '{{ billingProfileId }}';