Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. frafu
    3. Topics
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    Topics

    • F

      API Addon Installieren - Error: package.json was not found.

      Watching Ignoring Scheduled Pinned Locked Moved Betrieb
      4
      0 Votes
      4 Posts
      358 Views
      MartinVM
      Das ist eigentlich Teil der (manuellen) Installation, z.B. für Debian oder Ubuntu cd /var/www/html/i-doit/ sudo chown www-data:www-data -R . sudo find . -type d -name \* -exec chmod 775 {} \; sudo find . -type f -exec chmod 664 {} \; sudo chmod 774 controller *.sh setup/*.sh Bei Dir natürlich /var/www/idoit statt /var/www/html/idoit
    • F

      REST API - Parent oder Children finden

      Watching Ignoring Scheduled Pinned Locked Moved Entwicklung
      3
      0 Votes
      3 Posts
      434 Views
      LFischerL
      Hallo zusammen, @MartinV hatte es richtig erkannt - um die zugewiesenen Standorte eines Objekts zu erhalten braucht man die Methode cmdb.location_tree.read hier kann man mittels Parameter id entscheiden wessen "children" man sehen möchte. Also z.B. { "version": "2.0", "method": "cmdb.location_tree.read", "params": { "id": 1234, "apikey": "<key>" }, "id": 1 } Im Ergebnis erhält man dann ein Array mit allen direkt zugewiesenen Objekten, die Daten schauen dabei so aus (pro Objekt): [ { "id": 302, "title": "0.01 Office", "sysid": "ROOM_00000302", "type": 26, "type_title": "Room", "status": 2, "cmdb_status": 6, "cmdb_status_title": "in operation" }, { "id": 1073, "title": "pool.ntp.org", "sysid": "CLOUD_0001073", "type": 39, "type_title": "Host", "status": 2, "cmdb_status": 6, "cmdb_status_title": "in operation" }, ... ] Viele Grüße Leo