For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ccm Costs

CCM Costs Service returns cloud cost management summaries for workspaces.

Show CCM cost summary for a workspace

get

Returns aggregated CCM cost data computed from per-resource cost records.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: fa2
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: xu3
workspacestring · min: 1 · max: 128Required

Workspace identifier

Example: nc
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: i
Responses
200

OK response.

application/json
last_synced_atinteger · int64Optional

Unix timestamp in milliseconds of most recent sync

Example: 6284534752533549000
monthly_costnumber · doubleRequired

Total monthly cost across all resources

Example: 0.7177401096467453
monthly_savingnumber · doubleRequired

Total potential monthly savings from recommendations

Example: 0.3247266066503416
previous_monthly_costnumber · doubleRequired

Total cost from previous billing period

Example: 0.23546906656090577
recommendation_countinteger · int64Required

Number of resources with savings opportunities

Example: 2582905335885270500
resource_countinteger · int64Required

Total resources with cost data

Example: 6242799787222533000
get/api/orgs/{org}/projects/{project}/workspaces/{workspace}/ccm-costs
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/ccm-costs HTTP/1.1
Host: localhost:80
Harness-Account: i
Accept: */*
{
  "last_synced_at": 8033407983492761000,
  "monthly_cost": 0.09070405143933867,
  "monthly_saving": 0.23128491206448415,
  "previous_monthly_cost": 0.40040040721202985,
  "recommendation_count": 6314468302846399000,
  "resource_count": 4753401832934524000
}

Last updated

Was this helpful?