The SLA's defined in the configuration can be listed with this handler. The response is a map of key-value, with the key being used in the assets to reference the given entry.
You can check the details of each SLA entry using the /<sla id> handler.
Get a list of Service Level Agreement information in the form of a list of property entries.
# Request GET /api/inventory/sla HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 200 OK Content-Type: application/json { "0": "", "1": "Drucker Hauptverwaltung", "2": "Hauptverwaltung", "3": "Zweigstelle", "4": "Entwicklung" }
# Browser access http://127.0.0.1:9000/api/inventory/sla # Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/inventory/sla" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/inventory/sla"