Einzelnen Port auslesen
-
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é -
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
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