Harness · Schema

CostResourceCollection

DevOpsGitOpsInternal Developer PortalLifecycleSoftware DeliveryCI/CDContinuous DeliveryContinuous Integration
View JSON Schema on GitHub

JSON Schema

harness-cost-resource-collection-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-cost-resource-collection-schema.json",
  "title": "CostResourceCollection",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-costs-api-openapi.yml#/components/schemas/CostResourceCollection",
  "type": "array",
  "items": {
    "$ref": "#/$defs/HarnessIacmCostsresources"
  },
  "$defs": {
    "HarnessIacmCostsresources": {
      "type": "object",
      "properties": {
        "account": {
          "type": "string",
          "description": "Account is the internal customer account ID.",
          "minLength": 1,
          "maxLength": 128
        },
        "activity_type": {
          "type": "string",
          "description": "The type of activity that generated this cost (e.g. apply, plan, destroy)"
        },
        "cost": {
          "type": "string",
          "description": "The cost associated to the execution metadata"
        },
        "created": {
          "type": "integer",
          "description": "The epoch time for the cost",
          "format": "int64"
        },
        "currency": {
          "type": "string",
          "description": "The currency for the cost"
        },
        "org": {
          "type": "string",
          "description": "Org is the organisation identifier.",
          "minLength": 1,
          "maxLength": 128
        },
        "pipeline": {
          "type": "string",
          "description": "The unique identifier for the associated pipeline"
        },
        "pipeline_execution_id": {
          "type": "string",
          "description": "The unique identifier for the associated pipeline execution"
        },
        "pipeline_stage_id": {
          "type": "string",
          "description": "The unique identifier for the associated pipeline stage"
        },
        "project": {
          "type": "string",
          "description": "Project is the project identifier.",
          "minLength": 1,
          "maxLength": 128
        },
        "workspace": {
          "type": "string",
          "description": "The unique identifier for the associated workspace"
        }
      },
      "description": "CostResource is the representation for a single workspace of the cost and metadata that ties the cost to an execution.",
      "required": [
        "account",
        "org",
        "project",
        "pipeline_execution_id",
        "pipeline_stage_id",
        "workspace",
        "pipeline",
        "workspace_id",
        "workspace_name",
        "currency",
        "cost",
        "created"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/harness-cost-resource-collection"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.