Portainer · Capability

PortainerCE API — resource_controls

PortainerCE API — resource_controls. 3 operations. Lead operation: Create a new resource control. Self-contained Naftiko capability covering one Portainer business surface.

Run with Naftiko Portainerresource_controls

What You Can Do

POST
Resourcecontrolcreate — Create a new resource control
/v1/resource-controls
DELETE
Resourcecontroldelete — Remove a resource control
/v1/resource-controls/{id}
PUT
Resourcecontrolupdate — Update a resource control
/v1/resource-controls/{id}

MCP Tools

create-new-resource-control

Create a new resource control

remove-resource-control

Remove a resource control

idempotent
update-resource-control

Update a resource control

idempotent

Capability Spec

portainer-resource-controls.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PortainerCE API — resource_controls
  description: 'PortainerCE API — resource_controls. 3 operations. Lead operation: Create a new resource control. Self-contained
    Naftiko capability covering one Portainer business surface.'
  tags:
  - Portainer
  - resource_controls
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTAINER_API_KEY: PORTAINER_API_KEY
capability:
  consumes:
  - type: http
    namespace: portainer-resource-controls
    baseUri: ''
    description: PortainerCE API — resource_controls business capability. Self-contained, no shared references.
    resources:
    - name: resource_controls
      path: /resource_controls
      operations:
      - name: resourcecontrolcreate
        method: POST
        description: Create a new resource control
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: string
          description: Resource control details
          required: true
    - name: resource_controls-id
      path: /resource_controls/{id}
      operations:
      - name: resourcecontroldelete
        method: DELETE
        description: Remove a resource control
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Resource control identifier
          required: true
      - name: resourcecontrolupdate
        method: PUT
        description: Update a resource control
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Resource control identifier
          required: true
        - name: body
          in: body
          type: string
          description: Resource control details
          required: true
  exposes:
  - type: rest
    namespace: portainer-resource-controls-rest
    port: 8080
    description: REST adapter for PortainerCE API — resource_controls. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/resource-controls
      name: resource-controls
      description: REST surface for resource_controls.
      operations:
      - method: POST
        name: resourcecontrolcreate
        description: Create a new resource control
        call: portainer-resource-controls.resourcecontrolcreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/resource-controls/{id}
      name: resource-controls-id
      description: REST surface for resource_controls-id.
      operations:
      - method: DELETE
        name: resourcecontroldelete
        description: Remove a resource control
        call: portainer-resource-controls.resourcecontroldelete
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: resourcecontrolupdate
        description: Update a resource control
        call: portainer-resource-controls.resourcecontrolupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portainer-resource-controls-mcp
    port: 9090
    transport: http
    description: MCP adapter for PortainerCE API — resource_controls. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-new-resource-control
      description: Create a new resource control
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: portainer-resource-controls.resourcecontrolcreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-resource-control
      description: Remove a resource control
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: portainer-resource-controls.resourcecontroldelete
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-resource-control
      description: Update a resource control
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: portainer-resource-controls.resourcecontrolupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.