v4

latestSwagger 2.0raw.githubusercontent.com2020-03-302551117.3 KB
Charges

Lists the charges based for the defined scope.

get/{scope}/providers/Microsoft.Consumption/charges

Path parameters

scopestring required

The scope associated with usage details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope. For department and enrollment accounts, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'

Query parameters

api-versionstring required

Version of the API to be used with the client request. The current version is 2019-06-01.

$filterstring

May be used to filter charges by properties/usageEnd (Utc time), properties/usageStart (Utc time). The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

Response

OK. The request has succeeded.

idstring

Resource Id.

namestring

Resource name.

typestring

Resource type.

tagsobject

Resource tags.