Skip to content

func-api-devices-get

Description

Returns all registered device records from the firefly-devices DynamoDB table. Powers the Registered Devices page in the management console.

Access is restricted to super users. Non-super-user callers receive 403 Forbidden.

Invocation

Invoked by API Gateway on an HTTP GET /devices request, authenticated via the Cognito JWT authorizer.

API Endpoints

MethodPathAuthDescription
GET/devicesCognito JWT (super users only)List all registered devices

Response Body

json
{
  "devices": [
    {
      "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "product_id": "FFC0806-2505",
      "product_hex": "0x08062505",
      "device_class": "controller",
      "registration_date": "2025-04-01T12:00:00Z",
      "registering_application": "Hardware-Registration-and-Configuration",
      "registering_version": "2025.04.01",
      "mcu": { ... },
      "network": [ ... ],
      "partitions": [ ... ]
    }
  ]
}

Results are sorted ascending by registration_date.

Response Codes

CodeReason
200 OKList returned (may be empty)
403 ForbiddenCaller is not in the super_users group
500 Internal Server ErrorUnhandled exception

See the API Reference for full schema documentation.

Deployment

See the deployment workflow documentation for workflow steps, infrastructure dependencies, and failure scenarios.