Cost Data
Get cost data
Returns cost data grouped by up to three ordered dimensions, filtered by the supplied cost filter. A page holds up to 5,000 rows, and paging reaches 100,000 rows (page × limit): a larger read splits its date window into shorter ranges. Each row's dimensions object holds one value per groupBy slot, keyed by the slot: the dimension's name with a capital first letter (ServiceName for groupBy=serviceName), followed by a colon and the key for a tag or virtual tag (Tag:team, VirtualTag:vtag_...). An ungrouped read has an empty dimensions.
Needs a token with viewCosts; a workspace token lists its own workspace only.
query Parameters
startDateendDateworkspaceIdgranularitygroupByUp to three grouping slots, repeated in order: groupBy=serviceName&groupBy=tag:team. A slot is one of provider, providerName, subAccount, serviceName, region, resourceName, chargeCategory, segment, cluster, namespace, billingAccount, serviceCategory, serviceSubcategory, usageUnit, chargeClass, tagged, resourceId, commitmentStatus, commitmentType, pricingCategory, sku, commitmentId, operation, chargeDescription, resourceType, productFamily, skuId, invoiceId, invoiceIssuer, billingPeriod, resourceGroup, or tag:<key> for a tag key and virtualTag:<id> for a virtual tag's id. Names match in any case. A segment or virtualTag slot needs workspaceId. The operation's description says how each row's dimensions is keyed.
cloudAccountIdsfilterincludeCreditsincludeRefundsincludeTaxamortizemeasuredataVersionThe meta.dataVersion of an earlier page of the same read. With it, a page is refused with 409 when a sync changed the data the read covers since that page, rather than read from the changed data, whose rows can repeat or skip ones already read; read the window again from page 1. The links of a request that sends it carry it. Omitted, each page is read from whatever is committed when it is requested.
pageThe page to return, counted from 1. Paging reaches 100,000 rows (page × limit); a page past that is refused, and a longer read splits its date window instead.
limitRows per page, from 1 to 5,000. A value outside that range is refused.
Get cost data › Responses
Success
Get cost forecast
Returns cost forecast for the upcoming months.
Needs a token with viewCosts on the workspace.
query Parameters
workspaceIdmonthsGet cost forecast › Responses
Success
currentMonthActual^-?[0-9]+(\.[0-9]{1,…currentMonthForecast^-?[0-9]+(\.[0-9]{1,…methodcurrency^[A-Z]{3}$confidencePercentgeneratedAtGet cost summary
Returns aggregated cost summary with comparisons. A service's percentage is its share of the window's total cost; with conversion off over several currencies, of the total in its own currency.
Needs a token with viewCosts; a workspace token lists its own workspace only.
query Parameters
startDateendDateworkspaceIdcloudAccountIdsfilterincludeCreditsincludeRefundsincludeTaxamortizeGet cost summary › Responses
Success
commitmentDiscountstotalCost^-?[0-9]+(\.[0-9]{1,…totalListCost^-?[0-9]+(\.[0-9]{1,…totalAmortizedCost^-?[0-9]+(\.[0-9]{1,…currency^[A-Z]{3}$costChange^-?[0-9]+(\.[0-9]{1,…costChangePercenthistoryFloordataThroughcomparedThrough