Cloudera Lakehouse Optimizer API

Configure and monitor automatic table maintenance and optimization for Iceberg lakehouse tables. 30 operations.

Operations 30

POST /api/v1/lakehouseopt/getHealth Performs health check on CLO components. #
POST /api/v1/lakehouseopt/listEnvironments List environments. #
POST /api/v1/lakehouseopt/getDatahubCrn Fetches Data Hub CRN for an environment. #
POST /api/v1/lakehouseopt/getCloDatahub Fetches CLO Data Hub for an environment. #
POST /api/v1/lakehouseopt/listPolicies Lists policies. #
POST /api/v1/lakehouseopt/getPolicy Fetches the policy details. #
POST /api/v1/lakehouseopt/downloadPolicy Downloads the policy definition for a particular policy version. #
POST /api/v1/lakehouseopt/getNamespaces Get all namespaces. #
POST /api/v1/lakehouseopt/getTableNames Get table names in a namespace. #
POST /api/v1/lakehouseopt/listTables List tables in a namespace. #
POST /api/v1/lakehouseopt/getTablePolicies get policies of a table in a namespace. #
POST /api/v1/lakehouseopt/getPolicyNames get all policy names associated with a namespace. #
POST /api/v1/lakehouseopt/createTablePoliciesAssociations create associations of a table and policies. #
POST /api/v1/lakehouseopt/getScripts Get scripts. #
POST /api/v1/lakehouseopt/getAssociations Get policy to table associations. #
POST /api/v1/lakehouseopt/createAssociations Create policy to table associations. #
POST /api/v1/lakehouseopt/createPolicy Create a new policy. #
POST /api/v1/lakehouseopt/updatePolicy Update an existing policy. #
POST /api/v1/lakehouseopt/unsubscribePolicy Unsubscribe a policy from the table. #
POST /api/v1/lakehouseopt/pauseTable Pause a table. #
POST /api/v1/lakehouseopt/unpauseTable Unpause a table. #
POST /api/v1/lakehouseopt/listTasks Retrieves CLO maintenance tasks. #
POST /api/v1/lakehouseopt/changeTablePolicy Perform policy change operations on a table. #
POST /api/v1/lakehouseopt/deletePolicy Delete a policy definition for a resource. #
POST /api/v1/lakehouseopt/getTimezones Get all supported timezones. #
POST /api/v1/lakehouseopt/getAssociatedTables Get all associated tables for a policy #
POST /api/v1/lakehouseopt/getAssociatedNamespaces Get all associated namespaces for a policy. #
POST /api/v1/lakehouseopt/getTableStatusDetails Get table status details. #
POST /api/v1/lakehouseopt/executePolicy Execute a policy on a table. #
POST /api/v1/lakehouseopt/getAssociationDetails Get policy association details. #

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-lakehouse-optimizer-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-lakehouseopt-openapi.yml Raw ↑
swagger: '2.0'
x-endpoint-name: lakehouseopt
x-products: CDP
x-form-factors: public
x-cdp-releases: PUBLIC
x-audit: true
info:
  version: 0.9.163
  title: Cloudera Lakehouse Optimizer Service
  license:
    name: Apache 2.0
  description: CDP Cloudera Lakehouse Optimizer Service does the iceberg table maintenance, it allows users to define policies to schedule iceberg spark actions to perform regular maintenance.
schemes:
  - https
consumes:
  - application/json
produces:
  - application/json
paths:
  /api/v1/lakehouseopt/getHealth:
    post:
      summary: Performs health check on CLO components.
      description: Returns the CLO component (Scheduler, dispatcher, DAO) wise health check result. Service specific result will include the state of the service (healthy or unhealthy) and additional details.
      operationId: getHealth
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetHealthRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetHealthResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/listEnvironments:
    post:
      summary: List environments.
      description: Returns the list of environments along with the CLO Data Hub details if it's enabled.
      operationId: listEnvironments
      x-mutating: false
      x-paging-default-max-items: 100
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ListEnvironmentsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/ListEnvironmentsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getDatahubCrn:
    post:
      summary: Fetches Data Hub CRN for an environment.
      description: Fetches Data Hub CRN for an environment.
      operationId: getDatahubCrn
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetDatahubCrnRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetDatahubCrnResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getCloDatahub:
    post:
      summary: Fetches CLO Data Hub for an environment.
      description: Fetches CLO Data Hub for an environment.
      operationId: getCloDatahub
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetCloDatahubRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetCloDatahubResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/listPolicies:
    post:
      summary: Lists policies.
      description: Lists policies across all namespaces or a particular namespace.
      operationId: listPolicies
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ListPoliciesRequest'
      responses:
        200:
          description: Policy list response
          schema:
            $ref: '#/definitions/ListPoliciesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getPolicy:
    post:
      summary: Fetches the policy details.
      description: Fetches policy details like version IDs, policy actions, scope of the policy, status and associations.
      operationId: getPolicy
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetPolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetPolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/downloadPolicy:
    post:
      summary: Downloads the policy definition for a particular policy version.
      description: Downloads the policy scripts and/or arguments for a particular policy version. Version is identified by a unique ID.
      operationId: downloadPolicy
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/DownloadPolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/DownloadPolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getNamespaces:
    post:
      summary: Get all namespaces.
      description: Get all namespaces in a catalog.
      operationId: getNamespaces
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetNamespacesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetNamespacesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getTableNames:
    post:
      summary: Get table names in a namespace.
      description: Get table names in a namespace.
      operationId: getTableNames
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetTableNamesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetTableNamesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/listTables:
    post:
      summary: List tables in a namespace.
      description: list tables in a namespace.
      operationId: listTables
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ListTablesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/ListTablesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getTablePolicies:
    post:
      summary: get policies of a table in a namespace.
      description: get policies of a table in a namespace.
      operationId: getTablePolicies
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetTablePoliciesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetTablePoliciesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getPolicyNames:
    post:
      summary: get all policy names associated with a namespace.
      description: get policy names associated with a namespace.
      operationId: getPolicyNames
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetPolicyNamesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetPolicyNamesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/createTablePoliciesAssociations:
    post:
      summary: create associations of a table and policies.
      description: create associations of a table and policies.
      operationId: createTablePoliciesAssociations
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/CreateTablePoliciesAssociationsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/CreateTablePoliciesAssociationsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getScripts:
    post:
      summary: Get scripts.
      description: Get scripts which are default or defined at catalog level.
      operationId: getScripts
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetScriptsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetScriptsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getAssociations:
    post:
      summary: Get policy to table associations.
      description: Get list of tables associated per namespace for a policy.
      operationId: getAssociations
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetAssociationsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetAssociationsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/createAssociations:
    post:
      summary: Create policy to table associations.
      description: Associate set of tables per namespace to a policy.
      operationId: createAssociations
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/CreateAssociationsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/CreateAssociationsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/createPolicy:
    post:
      summary: Create a new policy.
      description: Create a new policy with a name.
      operationId: createPolicy
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/CreatePolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/CreatePolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/updatePolicy:
    post:
      summary: Update an existing policy.
      description: Update an existing policy.
      operationId: updatePolicy
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/UpdatePolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/UpdatePolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/unsubscribePolicy:
    post:
      summary: Unsubscribe a policy from the table.
      description: Remove a policy associated with the table.
      operationId: unsubscribePolicy
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/UnsubscribePolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/UnsubscribePolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/pauseTable:
    post:
      summary: Pause a table.
      description: Pause all maintenance actions on a table.
      operationId: pauseTable
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/PauseTableRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/PauseTableResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/unpauseTable:
    post:
      summary: Unpause a table.
      description: Resume maintenance actions on a table.
      operationId: unpauseTable
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/UnpauseTableRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/UnpauseTableResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/listTasks:
    post:
      summary: Retrieves CLO maintenance tasks.
      description: Retrieves CLO maintenance tasks for a given namespace.
      operationId: listTasks
      x-paging-default-max-items: 100
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ListTasksRequest'
      responses:
        200:
          description: List of tasks.
          schema:
            $ref: '#/definitions/ListTasksResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/changeTablePolicy:
    post:
      summary: Perform policy change operations on a table.
      description: Perform operations on a table to associate new policies, remove existing policies, replace existing policies.
      operationId: changeTablePolicy
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ChangeTablePolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/ChangeTablePolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/deletePolicy:
    post:
      summary: Delete a policy definition for a resource.
      description: Delete a policy definition which is applicable on a provided resource. Resource could be a namespace or a table. If ''*'' is provided for namespace, then it deletes all policies across all namespaces. Otherwise, namespace and table must be provided.
      operationId: deletePolicy
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/DeletePolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/DeletePolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getTimezones:
    post:
      summary: Get all supported timezones.
      description: Return all supported timezones to schedule the policy.
      operationId: getTimezones
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetTimezonesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetTimezonesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getAssociatedTables:
    post:
      summary: Get all associated tables for a policy
      description: Return tables per namespaces along with a flag to indicate if they are associated to the policy.
      operationId: getAssociatedTables
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetAssociatedTablesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetAssociatedTablesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getAssociatedNamespaces:
    post:
      summary: Get all associated namespaces for a policy.
      description: Get all namespaces along with a flag to indicate if they are associated to the policy.
      operationId: getAssociatedNamespaces
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetAssociatedNamespacesRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetAssociatedNamespacesResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getTableStatusDetails:
    post:
      summary: Get table status details.
      description: Get details on table's current status.
      operationId: getTableStatusDetails
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetTableStatusDetailsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetTableStatusDetailsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/executePolicy:
    post:
      summary: Execute a policy on a table.
      description: Execute a policy on a table. If dryRun flag is set to true, then it will only do the policy evaluation without actually performing any action on the table.
      operationId: executePolicy
      x-mutating: true
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/ExecutePolicyRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/ExecutePolicyResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
  /api/v1/lakehouseopt/getAssociationDetails:
    post:
      summary: Get policy association details.
      description: Get details about policy association. It contains directAssociation and starAssociation. 'directAssociation' will provide details on set of policies which are associated with individual tables and 'starAssociation" will provide details on policies which are associated at namespace level.
      operationId: getAssociationDetails
      x-mutating: false
      parameters:
        - name: input
          in: body
          required: true
          schema:
            $ref: '#/definitions/GetAssociationDetailsRequest'
      responses:
        200:
          description: Expected response to a valid request.
          schema:
            $ref: '#/definitions/GetAssociationDetailsResponse'
        default:
          description: The default response on an error.
          schema:
            $ref: '#/definitions/Error'
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.
  GetHealthRequest:
    type: object
    description: Request object for health check.
    required:
      - datahubCrn
    properties:
      datahubCrn:
        type: string
        description: The CRN of the CLO Data Hub.
      scope:
        type: string
        description: Health check scope. The supported values are "Full" and "Partial". The "Full" performs a deep health check along with livy session creation. The "Partial" performs a shallow health check which doesn't involve session creation.
        enum:
          - Full
          - Partial
        default: Partial
  GetHealthResponse:
    type: object
    description: Response object for health check.
    required:
      - result
    properties:
      result:
        type: object
        description: Map containing the service wise health check result.
        additionalProperties:
          $ref: '#/definitions/HealthCheckResult'
      action:
        type: string
        description: Action performed. For example, READ or NOOP or CREATE.
  GetDatahubCrnRequest:
    type: object
    description: Request object to get CLO Data Hub CRN.
    required:
      - environmentCrn
    properties:
      environmentCrn:
        type: string
        description: The CRN of the environment.
  GetDatahubCrnResponse:
    type: object
    description: Response object containing the CLO Data Hub CRN.
    required:
      - datahubCrn
    properties:
      datahubCrn:
        type: string
        description: The CRN of the CLO Data Hub.
  GetCloDatahubRequest:
    type: object
    description: Request object to get CLO Data Hub.
    required:
      - environmentCrn
    properties:
      environmentCrn:
        type: string
        description: The CRN of the environment.
  GetCloDatahubResponse:
    type: object
    description: Response object containing the CLO Data Hub details.
    properties:
      environmentName:
        type: string
        description: The name of the environment.
      environmentCrn:
        type: string
        description: The CRN of the environment.
      datahubName:
        type: string
        description: The name of the CLO Data Hub.
      datahubCrn:
        type: string
        description: The CRN of the CLO Data Hub.
      cloudPlatform:
        type: string
        description: The cloud platform of the environment, possible values are AZURE or AWS.
      status:
        type: string
        description: The CLO Data Hub status.
  ListPoliciesRequest:
    type: object
    description: Request object to get list of policies across all namespaces or a particular namespace.
    required:
      - datahubCrn
    properties:
      datahubCrn:
        type: string
        description: The CRN of the CLO Data Hub.
      namespace:
        type: string
        description: The namespace name. If set, then it will list policies from this namespace. Omitting it, will list policies across all namespaces.
  ListPoliciesResponse:
    type: object
    description: Response object containing the list of policies.
    properties:
      policies:
        type: array
        description: List of all policies for a particular namespace or across all namespaces.
        items:
          $ref: '#/definitions/PolicyObject'
  DownloadPolicyRequest:
    type: object
    description: Request object to get a particular policy version.
    required:
      - policyName
      - policyVersion
      - datahubCrn
    properties:
      policyName:
        type: string
        description: The name of the policy.
      policyVersion:
        type: string
        description: The policy version.
      datahubCrn:
        type: string
        description: The CRN of the CLO Data Hub.
  DownloadPolicyResponse:
    type: object
    description: Response object containing the policy script and arguments.
    properties:
      script:
        type: string
        format: byte
        description: The policy script.
        x-skip-logging: true
      arguments:
        type: string
        format: byte
        description: The policy arguments.
        x-skip-logging: true
  GetPolicyRequest:
    type: object
    description: Request object to fetch the details of a policy.
    required:
      - policyName
      - datahubCrn
    properties:
      policyName:
        type: string
        description: The name of the policy.
      datahubCrn:
        type: string
        description: The CRN of the CLO Data Hub.
  GetPolicyResponse:
    type: object
    description: Response object containing the policy detail which includes version IDs, associations, scope and status.
    properties:
      versions:
        type: array
        description: List of all version IDs of the policy.
        items:
          type: string
      policyDetail:
        type: object
        description: Policy detail corresponding to a unique policy version.
        properties:
          version:
            type: string
            description: The policy version which is a UUID.
          arguments:
            type: string
            format: byte
            description: JSON containing the action specific arguments and other user defined arguments.
            x-skip-logging: true
          scope:
            type: string
            description: The scope of the policy. It can be Catalog or Namespace.
          associations:
            type: array
            description: The list containing table associations for each namespace.
            items:
              $ref: '#/definitions/NamespaceAssociation'
          tableCount:
            type: integer
            format: int32
            description: The count of associated tables.
          creationTime:
            type: integer
            format: int64
            description: The policy creation time in epoch milliseconds.
          lastExecutionTime:
            type: integer
            format: int64
            description: The recent policy execution epoch time in milliseconds.
  NamespaceAssociation:
    type: object
    description: The table associations per namespace.
    properties:
      namespace:
        type: string
        description: The name of the namespace.
      status:
        type: string
        description: The namespace status. Possible values are ERROR, SUCCESS, PAUSED, AUTO_PAUSED, USER_PAUSED, UNAVAILABLE and WARNING. PAUSED indicated that namespace is paused for maintenance actions, AUTO_PAUSED indicates namespace is paused automatically due to errors, USER_PAUSED indicates paused by user, ERROR indicates that recent task has failed or a table is in paused state due to exceptions, WARNING if a table is paused by user, SUCCESS if there are no recent task failures or paused tables, UNAVAILABLE if no tasks have run yet.
        enum:
          - ERROR
          - SUCCESS
          - AUTO_PAUSED
          - USER_PAUSED
          - PAUSED
          - UNAVAILABLE
          - WARNING
        default: UNAVAILABLE
      tableAssociations:
        type: array
        description: The list of associated tables and their details for a namespace.
        items:
          $ref: '#/definitions/TableAssociation'
  HealthCheckResult:
    type: object
    description: Health check result.
    properties:
      isHealthy:
        type: boolean
        description: Service health status. The supported values are true or false. "true" represents the service is healthy and "false" represents the service is in an unhealthy state.
      message:
        type: string
        description: Service health check message.
      error:
        type: string
        description: Exception during health checks.
      details:
        type: object
        description: Map with additional service specific details.
        additionalProperties:
          type: string
          description: 'Additional service details encoded as a string (Example: "Tasks": "[]", "Dispatched count": "5", "Scheduled count": "2")'
      time:
        type: integer
        format: int64
        description: Time when the health check was performed. It will be in milliseconds.
      duration:
        type: integer
        format: int64
        description: Health check duration in millis.
  PolicyObject:
    type: object
    description: The policy object containing name, status and other details.
    properties:
      status:
        type: string
        description: The policy status.
        enum:
          - ERROR
          - SUCCESS
          - PAUSED
          - UNAVAILABLE
      policyName:
        type: string
        description: The policy name.
      taskCount:
        type: integer
        format: int32
        description: The number of tasks ran for this policy.
      tableCount:
        type: integer
        format: int32
        description: The number of tables associated with this policy.
      creationTime:
        type: integer
        format: int64
        description: The policy creation time in epoch milliseconds.
      lastExecutionTime:
        type: integer
        format: int64
        description: The recent task execution time in epoch milliseconds.
      isDefault:
        type: boolean
        description: Flag to indicate if the policy is a default one provided by Cloudera. Policy is default if true else false.
  TableAssociation:
    type: object
    description: The object containing information about a table to policy association.
    properties:
      name:
        type: string
        description: The table name.
      namespace:
        type: string
        description: The namespace name.
      taskCount:
        type: integer
        format: int32
        description: The count of CLO tasks ran for the table.
      lastExecutionTime:
        type: integer
        format: int64
        description: The time in epoch milliseconds of recent CLO task that ran for the table.
      version:
        type: string
        description: The policy version applicable to this table.
      status:
        type: string
        description: The table status.
        enum:
          - ERROR
          - SUCCESS
          - PAUSED
          - UNAVAILABLE
  ListEnvironmentsRequest:
    type: object
    description: The request object to get environments.
    properties:
      pageSize:
        type: integer
        format: int32
        minimum: 1
        maximum: 100
        x-paging-page-size: true
        description: The page size.
      pageToken:
        type: string
        x-paging-input-token: true
        description: The page token. If the token value is 'ALL' then it will list all existing environments irrespective of pageSize.
  ListEnvironmentsResponse:
    type: object
    description:

# --- truncated at 32 KB (61 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/cloudera/refs/heads/main/openapi/cloudera-lakehouseopt-openapi.yml