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

Project is the project identifier.

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

Workspace identifier

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

Account is the internal customer account ID.

Example: jt
Responses
200

OK response.

application/json
last_synced_atinteger · int64Optional

Unix timestamp in milliseconds of most recent sync

Example: 5526004385599597000
monthly_costnumber · doubleRequired

Total monthly cost across all resources with cost data

Example: 0.004571075073086145
monthly_savingnumber · doubleRequired

Potential monthly savings from OPEN cost recommendations. Same as open_monthly_saving.

Example: 0.10837381707323304
open_monthly_savingnumber · doubleOptional

Potential monthly savings from OPEN cost recommendations

Default: 0Example: 0.8639438913365692
previous_monthly_costnumber · doubleRequired

Total cost from previous billing period

Example: 0.40399170972015847
recommendation_countinteger · int64Required

Number of OPEN cost recommendations

Example: 8680993128846503000
remediated_monthly_savingnumber · doubleOptional

Monthly savings from APPLIED cost recommendations

Default: 0Example: 0.6927760291630726
resource_countinteger · int64Required

Total resources with cost data

Example: 4445496307075188700
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: jt
Accept: */*
{
  "last_synced_at": 3072985074114746000,
  "monthly_cost": 0.2173642153283563,
  "monthly_saving": 0.6958642849955152,
  "open_monthly_saving": 0.10814514859082844,
  "previous_monthly_cost": 0.1831924206299992,
  "recommendation_count": 3834571317747410400,
  "remediated_monthly_saving": 0.24572988934849074,
  "resource_count": 261465420007191900
}

Last updated

Was this helpful?