naftiko: 1.0.0-alpha2 info: label: Aruba Central API — Devices description: 'Aruba Central API — Devices. 4 operations. Lead operation: Associate Devices to a Site. Self-contained Naftiko capability covering one Aruba business surface.' tags: - Aruba - Devices created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ARUBA_API_KEY: ARUBA_API_KEY capability: consumes: - type: http namespace: central-devices baseUri: https://apigw-prod2.central.arubanetworks.com description: Aruba Central API — Devices business capability. Self-contained, no shared references. resources: - name: central-v2-sites-site_id-associate path: /central/v2/sites/{site_id}/associate operations: - name: associatedevicestosite method: POST description: Associate Devices to a Site outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: site_id in: path type: integer description: The unique identifier of the site. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: platform-device_inventory-v1-devices path: /platform/device_inventory/v1/devices operations: - name: getdevices method: GET description: List All Devices outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sku_type in: query type: string description: Filter by device type (IAP for access points, HP for switches, CONTROLLER for gateways). - name: macaddr in: query type: string description: Filter by device MAC address. - name: serial in: query type: string description: Filter by device serial number. - name: model in: query type: string description: Filter by device model name. - name: platform-device_inventory-v1-devices-serial path: /platform/device_inventory/v1/devices/{serial} operations: - name: getdevicebyserial method: GET description: Get Device by Serial Number outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: serial in: path type: string description: The serial number of the device. required: true - name: deletedevice method: DELETE description: Remove Device From Inventory outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: serial in: path type: string description: The serial number of the device to remove. required: true authentication: type: bearer token: '{{env.ARUBA_API_KEY}}' exposes: - type: rest namespace: central-devices-rest port: 8080 description: REST adapter for Aruba Central API — Devices. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/central/v2/sites/{site-id}/associate name: central-v2-sites-site-id-associate description: REST surface for central-v2-sites-site_id-associate. operations: - method: POST name: associatedevicestosite description: Associate Devices to a Site call: central-devices.associatedevicestosite with: site_id: rest.site_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/platform/device-inventory/v1/devices name: platform-device-inventory-v1-devices description: REST surface for platform-device_inventory-v1-devices. operations: - method: GET name: getdevices description: List All Devices call: central-devices.getdevices with: sku_type: rest.sku_type macaddr: rest.macaddr serial: rest.serial model: rest.model outputParameters: - type: object mapping: $. - path: /v1/platform/device-inventory/v1/devices/{serial} name: platform-device-inventory-v1-devices-serial description: REST surface for platform-device_inventory-v1-devices-serial. operations: - method: GET name: getdevicebyserial description: Get Device by Serial Number call: central-devices.getdevicebyserial with: serial: rest.serial outputParameters: - type: object mapping: $. - method: DELETE name: deletedevice description: Remove Device From Inventory call: central-devices.deletedevice with: serial: rest.serial outputParameters: - type: object mapping: $. - type: mcp namespace: central-devices-mcp port: 9090 transport: http description: MCP adapter for Aruba Central API — Devices. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: associate-devices-site description: Associate Devices to a Site hints: readOnly: false destructive: false idempotent: false call: central-devices.associatedevicestosite with: site_id: tools.site_id body: tools.body outputParameters: - type: object mapping: $. - name: list-all-devices description: List All Devices hints: readOnly: true destructive: false idempotent: true call: central-devices.getdevices with: sku_type: tools.sku_type macaddr: tools.macaddr serial: tools.serial model: tools.model outputParameters: - type: object mapping: $. - name: get-device-serial-number description: Get Device by Serial Number hints: readOnly: true destructive: false idempotent: true call: central-devices.getdevicebyserial with: serial: tools.serial outputParameters: - type: object mapping: $. - name: remove-device-inventory description: Remove Device From Inventory hints: readOnly: false destructive: true idempotent: true call: central-devices.deletedevice with: serial: tools.serial outputParameters: - type: object mapping: $.