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: v
projectstring · min: 1 · max: 128Required

Project is the project identifier.

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

Workspace identifier

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

Account is the internal customer account ID.

Example: w
Responses
200

OK response.

application/json
last_synced_atinteger · int64Optional

Unix timestamp in milliseconds of most recent sync

Example: 8718030614094109000
monthly_costnumber · doubleRequired

Total monthly cost across all resources

Example: 0.14938089756212364
monthly_savingnumber · doubleRequired

Total potential monthly savings from recommendations

Example: 0.11393780116473703
previous_monthly_costnumber · doubleRequired

Total cost from previous billing period

Example: 0.3598416131850416
recommendation_countinteger · int64Required

Number of resources with savings opportunities

Example: 2764561745485669000
resource_countinteger · int64Required

Total resources with cost data

Example: 5390285586074421000
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: w
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?