Harness Cloud Cost Management API — Budgets

Harness Cloud Cost Management API — Budgets. 5 operations. Lead operation: List budgets. Self-contained Naftiko capability covering one Harness Cloud Cost business surface.

Run with Naftiko Harness Cloud CostBudgets

What You Can Do

GET
Listbudgets — List budgets
/v1/ccm/api/budgets
POST
Createbudget — Create a budget
/v1/ccm/api/budgets
GET
Getbudget — Get a budget
/v1/ccm/api/budgets/{budgetid}
PUT
Updatebudget — Update a budget
/v1/ccm/api/budgets/{budgetid}
DELETE
Deletebudget — Delete a budget
/v1/ccm/api/budgets/{budgetid}

MCP Tools

list-budgets

List budgets

read-only idempotent
create-budget

Create a budget

get-budget

Get a budget

read-only idempotent
update-budget

Update a budget

idempotent
delete-budget

Delete a budget

idempotent

Capability Spec

harness-cloud-cost-budgets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Harness Cloud Cost Management API — Budgets
  description: 'Harness Cloud Cost Management API — Budgets. 5 operations. Lead operation: List budgets. Self-contained Naftiko
    capability covering one Harness Cloud Cost business surface.'
  tags:
  - Harness Cloud Cost
  - Budgets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HARNESS_CLOUD_COST_API_KEY: HARNESS_CLOUD_COST_API_KEY
capability:
  consumes:
  - type: http
    namespace: harness-cloud-cost-budgets
    baseUri: https://app.harness.io
    description: Harness Cloud Cost Management API — Budgets business capability. Self-contained, no shared references.
    resources:
    - name: ccm-api-budgets
      path: /ccm/api/budgets
      operations:
      - name: listbudgets
        method: GET
        description: List budgets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createbudget
        method: POST
        description: Create a budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ccm-api-budgets-budgetId
      path: /ccm/api/budgets/{budgetId}
      operations:
      - name: getbudget
        method: GET
        description: Get a budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: budgetId
          in: path
          type: string
          required: true
      - name: updatebudget
        method: PUT
        description: Update a budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: budgetId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletebudget
        method: DELETE
        description: Delete a budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: budgetId
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.HARNESS_CLOUD_COST_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: harness-cloud-cost-budgets-rest
    port: 8080
    description: REST adapter for Harness Cloud Cost Management API — Budgets. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/ccm/api/budgets
      name: ccm-api-budgets
      description: REST surface for ccm-api-budgets.
      operations:
      - method: GET
        name: listbudgets
        description: List budgets
        call: harness-cloud-cost-budgets.listbudgets
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createbudget
        description: Create a budget
        call: harness-cloud-cost-budgets.createbudget
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ccm/api/budgets/{budgetid}
      name: ccm-api-budgets-budgetid
      description: REST surface for ccm-api-budgets-budgetId.
      operations:
      - method: GET
        name: getbudget
        description: Get a budget
        call: harness-cloud-cost-budgets.getbudget
        with:
          budgetId: rest.budgetId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatebudget
        description: Update a budget
        call: harness-cloud-cost-budgets.updatebudget
        with:
          budgetId: rest.budgetId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletebudget
        description: Delete a budget
        call: harness-cloud-cost-budgets.deletebudget
        with:
          budgetId: rest.budgetId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: harness-cloud-cost-budgets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Harness Cloud Cost Management API — Budgets. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-budgets
      description: List budgets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: harness-cloud-cost-budgets.listbudgets
      outputParameters:
      - type: object
        mapping: $.
    - name: create-budget
      description: Create a budget
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: harness-cloud-cost-budgets.createbudget
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-budget
      description: Get a budget
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: harness-cloud-cost-budgets.getbudget
      with:
        budgetId: tools.budgetId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-budget
      description: Update a budget
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: harness-cloud-cost-budgets.updatebudget
      with:
        budgetId: tools.budgetId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-budget
      description: Delete a budget
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: harness-cloud-cost-budgets.deletebudget
      with:
        budgetId: tools.budgetId
      outputParameters:
      - type: object
        mapping: $.