Red Hat · Capability

Red Hat OpenShift Cluster Manager API — Clusters

Red Hat OpenShift Cluster Manager API — Clusters. 5 operations. Lead operation: Red Hat List Clusters. Self-contained Naftiko capability covering one Red Hat business surface.

Run with Naftiko Red HatClusters

What You Can Do

GET
Listclusters — Red Hat List Clusters
/v1/api/clusters-mgmt/v1/clusters
POST
Createcluster — Red Hat Create a Cluster
/v1/api/clusters-mgmt/v1/clusters
GET
Getcluster — Red Hat Get a Cluster
/v1/api/clusters-mgmt/v1/clusters/{cluster-id}
PATCH
Updatecluster — Red Hat Update a Cluster
/v1/api/clusters-mgmt/v1/clusters/{cluster-id}
DELETE
Deletecluster — Red Hat Delete a Cluster
/v1/api/clusters-mgmt/v1/clusters/{cluster-id}

MCP Tools

red-hat-list-clusters

Red Hat List Clusters

read-only idempotent
red-hat-create-cluster

Red Hat Create a Cluster

red-hat-get-cluster

Red Hat Get a Cluster

read-only idempotent
red-hat-update-cluster

Red Hat Update a Cluster

idempotent
red-hat-delete-cluster

Red Hat Delete a Cluster

idempotent

Capability Spec

openshift-cluster-manager-clusters.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Red Hat OpenShift Cluster Manager API — Clusters
  description: 'Red Hat OpenShift Cluster Manager API — Clusters. 5 operations. Lead operation: Red Hat List Clusters. Self-contained
    Naftiko capability covering one Red Hat business surface.'
  tags:
  - Red Hat
  - Clusters
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RED_HAT_API_KEY: RED_HAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: openshift-cluster-manager-clusters
    baseUri: https://api.openshift.com
    description: Red Hat OpenShift Cluster Manager API — Clusters business capability. Self-contained, no shared references.
    resources:
    - name: api-clusters_mgmt-v1-clusters
      path: /api/clusters_mgmt/v1/clusters
      operations:
      - name: listclusters
        method: GET
        description: Red Hat List Clusters
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcluster
        method: POST
        description: Red Hat Create a Cluster
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-clusters_mgmt-v1-clusters-cluster_id
      path: /api/clusters_mgmt/v1/clusters/{cluster_id}
      operations:
      - name: getcluster
        method: GET
        description: Red Hat Get a Cluster
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecluster
        method: PATCH
        description: Red Hat Update a Cluster
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecluster
        method: DELETE
        description: Red Hat Delete a Cluster
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.RED_HAT_API_KEY}}'
  exposes:
  - type: rest
    namespace: openshift-cluster-manager-clusters-rest
    port: 8080
    description: REST adapter for Red Hat OpenShift Cluster Manager API — Clusters. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/clusters-mgmt/v1/clusters
      name: api-clusters-mgmt-v1-clusters
      description: REST surface for api-clusters_mgmt-v1-clusters.
      operations:
      - method: GET
        name: listclusters
        description: Red Hat List Clusters
        call: openshift-cluster-manager-clusters.listclusters
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcluster
        description: Red Hat Create a Cluster
        call: openshift-cluster-manager-clusters.createcluster
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/clusters-mgmt/v1/clusters/{cluster-id}
      name: api-clusters-mgmt-v1-clusters-cluster-id
      description: REST surface for api-clusters_mgmt-v1-clusters-cluster_id.
      operations:
      - method: GET
        name: getcluster
        description: Red Hat Get a Cluster
        call: openshift-cluster-manager-clusters.getcluster
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecluster
        description: Red Hat Update a Cluster
        call: openshift-cluster-manager-clusters.updatecluster
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecluster
        description: Red Hat Delete a Cluster
        call: openshift-cluster-manager-clusters.deletecluster
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openshift-cluster-manager-clusters-mcp
    port: 9090
    transport: http
    description: MCP adapter for Red Hat OpenShift Cluster Manager API — Clusters. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: red-hat-list-clusters
      description: Red Hat List Clusters
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openshift-cluster-manager-clusters.listclusters
      outputParameters:
      - type: object
        mapping: $.
    - name: red-hat-create-cluster
      description: Red Hat Create a Cluster
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openshift-cluster-manager-clusters.createcluster
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: red-hat-get-cluster
      description: Red Hat Get a Cluster
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openshift-cluster-manager-clusters.getcluster
      outputParameters:
      - type: object
        mapping: $.
    - name: red-hat-update-cluster
      description: Red Hat Update a Cluster
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: openshift-cluster-manager-clusters.updatecluster
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: red-hat-delete-cluster
      description: Red Hat Delete a Cluster
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openshift-cluster-manager-clusters.deletecluster
      outputParameters:
      - type: object
        mapping: $.