credits
Creates, updates, deletes, gets or lists a credits
resource.
Overview
Name | credits |
Type | Resource |
Id | azure.consumption.credits |
Fields
- vw_credits
- credits
Name | Datatype | Description |
---|---|---|
id | text | Resource Id. |
name | text | Resource name. |
balance_summary | text | field from the properties object |
billingAccountId | text | field from the properties object |
billingProfileId | text | field from the properties object |
billing_currency | text | field from the properties object |
credit_currency | text | field from the properties object |
e_tag | text | field from the properties object |
expired_credit | text | field from the properties object |
is_estimated_balance | text | field from the properties object |
pending_credit_adjustments | text | field from the properties object |
pending_eligible_charges | text | field from the properties object |
reseller | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
eTag | string | eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. |
properties | object | The properties of the credit summary. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | billingAccountId, billingProfileId | The credit summary by billingAccountId and billingProfileId. |
SELECT
examples
The credit summary by billingAccountId and billingProfileId.
- vw_credits
- credits
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 }}';
SELECT
id,
name,
eTag,
properties,
type
FROM azure.consumption.credits
WHERE billingAccountId = '{{ billingAccountId }}'
AND billingProfileId = '{{ billingProfileId }}';