Official Plugins (Kuzzle v2.x)
Device Manager v0.x
2

importCatalog #

Creates entries in the provisioning catalog via CSV import


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_/device-manager/devices/_catalog[?refresh=wait_for]
Method: POST

Other protocols #

Copied to clipboard!
{
  "controller": "device-manager/device",
  "action": "importCatalog",
  "body": {
    "csv": "deviceId,authorized\nDummyTemp-imported,false"
  }
}

Kourou #

Copied to clipboard!
kourou device-manager/device:importCatalog --body '{ "csv": "deviceId,authorized\nDummyTemp-imported,false" }'

Body properties #

  • csv: a csv syntax compatible containing at least this two headers deviceId,authorized with their corresponding values

Optional: #

  • refresh: if set to wait_for, Kuzzle will not respond until the documents are indexed

Response #

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "index": "<index>",
  "controller": "device-manager/device",
  "action": "importCatalog",
  "requestId": "<unique request identifier>",
  "result": {}
}