IBM WebSphere · Capability

WebSphere Liberty Collective Controller REST API — Scaling

WebSphere Liberty Collective Controller REST API — Scaling. 5 operations. Lead operation: List Scaling Policies. Self-contained Naftiko capability covering one Websphere business surface.

Run with Naftiko WebsphereScaling

What You Can Do

GET
Listscalingpolicies — List Scaling Policies
/v1/scaling/policies
POST
Createscalingpolicy — Create a Scaling Policy
/v1/scaling/policies
GET
Getscalingpolicy — Get Scaling Policy Details
/v1/scaling/policies/{policyname}
PUT
Updatescalingpolicy — Update a Scaling Policy
/v1/scaling/policies/{policyname}
DELETE
Deletescalingpolicy — Delete a Scaling Policy
/v1/scaling/policies/{policyname}

MCP Tools

list-scaling-policies

List Scaling Policies

read-only idempotent
create-scaling-policy

Create a Scaling Policy

get-scaling-policy-details

Get Scaling Policy Details

read-only idempotent
update-scaling-policy

Update a Scaling Policy

idempotent
delete-scaling-policy

Delete a Scaling Policy

idempotent

Capability Spec

liberty-collective-controller-rest-scaling.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WebSphere Liberty Collective Controller REST API — Scaling
  description: 'WebSphere Liberty Collective Controller REST API — Scaling. 5 operations. Lead operation: List Scaling Policies.
    Self-contained Naftiko capability covering one Websphere business surface.'
  tags:
  - Websphere
  - Scaling
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEBSPHERE_API_KEY: WEBSPHERE_API_KEY
capability:
  consumes:
  - type: http
    namespace: liberty-collective-controller-rest-scaling
    baseUri: https://localhost:9443/ibm/api/collective
    description: WebSphere Liberty Collective Controller REST API — Scaling business capability. Self-contained, no shared
      references.
    resources:
    - name: scaling-policies
      path: /scaling/policies
      operations:
      - name: listscalingpolicies
        method: GET
        description: List Scaling Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createscalingpolicy
        method: POST
        description: Create a Scaling Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: scaling-policies-policyName
      path: /scaling/policies/{policyName}
      operations:
      - name: getscalingpolicy
        method: GET
        description: Get Scaling Policy Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyName
          in: path
          type: string
          description: Scaling policy name
          required: true
      - name: updatescalingpolicy
        method: PUT
        description: Update a Scaling Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyName
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletescalingpolicy
        method: DELETE
        description: Delete a Scaling Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyName
          in: path
          type: string
          required: true
    authentication:
      type: basic
      username: '{{env.WEBSPHERE_USER}}'
      password: '{{env.WEBSPHERE_PASS}}'
  exposes:
  - type: rest
    namespace: liberty-collective-controller-rest-scaling-rest
    port: 8080
    description: REST adapter for WebSphere Liberty Collective Controller REST API — Scaling. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/scaling/policies
      name: scaling-policies
      description: REST surface for scaling-policies.
      operations:
      - method: GET
        name: listscalingpolicies
        description: List Scaling Policies
        call: liberty-collective-controller-rest-scaling.listscalingpolicies
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createscalingpolicy
        description: Create a Scaling Policy
        call: liberty-collective-controller-rest-scaling.createscalingpolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/scaling/policies/{policyname}
      name: scaling-policies-policyname
      description: REST surface for scaling-policies-policyName.
      operations:
      - method: GET
        name: getscalingpolicy
        description: Get Scaling Policy Details
        call: liberty-collective-controller-rest-scaling.getscalingpolicy
        with:
          policyName: rest.policyName
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatescalingpolicy
        description: Update a Scaling Policy
        call: liberty-collective-controller-rest-scaling.updatescalingpolicy
        with:
          policyName: rest.policyName
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletescalingpolicy
        description: Delete a Scaling Policy
        call: liberty-collective-controller-rest-scaling.deletescalingpolicy
        with:
          policyName: rest.policyName
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: liberty-collective-controller-rest-scaling-mcp
    port: 9090
    transport: http
    description: MCP adapter for WebSphere Liberty Collective Controller REST API — Scaling. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-scaling-policies
      description: List Scaling Policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: liberty-collective-controller-rest-scaling.listscalingpolicies
      outputParameters:
      - type: object
        mapping: $.
    - name: create-scaling-policy
      description: Create a Scaling Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: liberty-collective-controller-rest-scaling.createscalingpolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-scaling-policy-details
      description: Get Scaling Policy Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: liberty-collective-controller-rest-scaling.getscalingpolicy
      with:
        policyName: tools.policyName
      outputParameters:
      - type: object
        mapping: $.
    - name: update-scaling-policy
      description: Update a Scaling Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: liberty-collective-controller-rest-scaling.updatescalingpolicy
      with:
        policyName: tools.policyName
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-scaling-policy
      description: Delete a Scaling Policy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: liberty-collective-controller-rest-scaling.deletescalingpolicy
      with:
        policyName: tools.policyName
      outputParameters:
      - type: object
        mapping: $.