Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Einzelnen Port auslesen

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 2 Posters 730 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      RKA
      last edited by

      Eine Liste aller Ports eines Patchfeldes (id = 118) lese ich bekanntlich aus:

      
      {"method":"cmdb.category","id":"34","params":{"apikey":"xxxx","objID":"118","category":"C__CATG__CONNECTOR"},"version":"2.0"}
      
      

      Wie aber kann ich einen einzelnen Port (hier id = 17) auslesen? Filtern scheint in der Catagory nicht zu klappen oder mache ich etwas falsch?

      
      {"method":"cmdb.category","id":"34","params":{"apikey":"xxxx","objID":"118","category":"C__CATG__CONNECTOR","filter":{"id":"17"}},"version":"2.0"}
      
      

      Die id neben der objId zu schreiben bringt nichts - wird kommentarlos ignoriert. Ohne objId kommt ein Fehler, dass eben diese fehlt.

      Viele Grüße
      René

      1 Reply Last reply Reply Quote 0
      • creissC Offline
        creiss i-doit Kenner
        last edited by

        Hallo René,

        soweit ich weiß (und soweit ich es in der Dokumentation sehen konnte), gibt es keine Abfrage nach einzelnen Einträgen innerhalb von Multi-Value-Kategorien. Der Filter wird auch nicht für die Read-Methode bei Kategorien unterstützt. Du musst also selber in deinem Code das Result filtern.

        Lieben Gruß
        Christian

        NEU - i-doit und IT-Dokumentation bei YouTube: https://www.youtube.com/@donamic_de
        Komplett-Strategie: https://i-doit-trainings.de/it-dokumentation-komplett-strategie/
        i-doit Mastery – https://i-doit-trainings.de/i-doit-mastery

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post