Cloudera Consumption API

Retrieve CCU consumption records for a CDP account. 1 operation.

Operations 1

POST /api/v1/consumption/listComputeUsageRecords Lists compute usage records. #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/cloudera-consumption-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

cloudera-consumption-openapi.yml Raw ↑
x-generated: Automatically generated by CDP protoc plugin. Do not edit manually.
swagger: '2.0'
x-endpoint-name: consumption
x-products: CDP
x-form-factors: public
x-cdp-releases: PUBLIC
info:
  version: 0.9.163
  title: Cloudera Consumption API Service
  license:
    name: Apache 2.0
  description: Provides an interface to the consumption service.
  termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html
schemes:
  - https
consumes:
  - application/json
produces:
  - application/json
paths:
  /api/v1/consumption/listComputeUsageRecords:
    post:
      summary: Lists compute usage records.
      description: Lists all compute usage records for requested duration.
      operationId: listComputeUsageRecords
      x-entitlement: CDP_CONSUMPTION
      x-right: consumption/listComputeUsageRecords
      x-paging-default-max-items: 100
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ListComputeUsageRecordsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/ListComputeUsageRecordsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
      x-mutating: false
definitions:
  Error:
    type: object
    description: An object returned on an error.
    properties:
      code:
        type: string
        description: The error code.
      message:
        type: string
        description: The error message.
  ListComputeUsageRecordsRequest:
    type: object
    description: Request object for ListComputeUsageRecords method.
    required:
      - fromTimestamp
      - toTimestamp
    properties:
      fromTimestamp:
        type: string
        format: date-time
        description: The beginning timestamp for the search range (inclusive).
      toTimestamp:
        type: string
        format: date-time
        description: The ending timestamp for the search range (exclusive).
      pageSize:
        type: integer
        format: int32
        minimum: 1
        maximum: 5000
        x-paging-page-size: true
        description: The page size.
      pageToken:
        type: string
        x-paging-input-token: true
        description: A token to specify where to start paginating. This is the nextToken from a previously truncated response.
  ListComputeUsageRecordsResponse:
    type: object
    description: Response object for ListComputeUsageRecords method.
    properties:
      records:
        type: array
        x-paging-result: true
        items:
          $ref: '#/definitions/ComputeUsageRecord'
        description: The list of compute usage records in the requested time duration.
      nextPageToken:
        type: string
        x-paging-output-token: true
        description: The token to use when requesting the next set of results. If not present, there are no additional results.
  ComputeUsageRecord:
    type: object
    description: Record of compute usage values aggregated hourly.
    properties:
      quantityType:
        type: string
        description: 'Type of usage by the cluster (Eg: INSTANCE_USAGE, COMPUTE_USAGE).'
      environmentName:
        type: string
        description: Name of the environment.
      environmentCrn:
        type: string
        description: CRN of the environment.
      clusterName:
        type: string
        description: Name of the cluster.
      clusterCrn:
        type: string
        description: CRN of the cluster.
      cloudProvider:
        type: string
        description: Cloud Provider on which cluster is running.
      serviceFeature:
        type: string
        description: Service Feature of the cluster.
      usageStartTimestamp:
        type: string
        description: Timestamp of start of the usage.
      usageEndTimestamp:
        type: string
        description: Timestamp of end of the usage.
      quantity:
        type: number
        format: double
        description: Quantity of usage of the cluster.
      grossCharge:
        type: number
        format: double
        description: Number of credits consumed by this usage.
      listRate:
        type: number
        format: double
        description: Rate in credits at which usage is charged for given cluster type, instance type and cloud provider.
      hours:
        type: number
        format: double
        description: Total number of hours for which instances were running.
      instanceType:
        type: string
        description: Type of instance of the cluster.
      instanceCount:
        type: integer
        format: int32
        description: Total number of instances in the cluster which were in use.
      clusterType:
        type: string
        description: Type of the cluster.
      userTags:
        type: string
        description: 'The tags assigned to a cluster. The format of this is a map serialized into a string as json. e.g.:  "tags": "{\"key1\":\"value1\",\"key2\":\"value2\"}"'
      clusterTemplate:
        type: string
        description: The template with which the cluster is created.
x-audit: true