- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Need help using wapi 2.9 - retrieve only on extensible attribute
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2022 01:14 PM
Hello Group,
I have been looking everywhere, but have yet to find the answer. I can get all extattrs for a device by using this in Postman:
https://192.168.1.100/wapi/v2.9.5/record:host?name=cis-3-44-rtr1.happy.net&_return_fields=extattrs
I would like to return only one attribute, like City, etc. I would like to do it using postmand, and in python. How can I grab a single value from the attributes? I do not yet need to POST or change a value (yet...)
Thanks for a great source of info
eholz1 NIOS semi-knowledgeable
Solved! Go to Solution.
Re: Need help using wapi 2.9 - retrieve only on extensible attribute
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 04:47 AM
Hi,
You can not return specific extensible attributes - all the extensible attributes will be returned when mentioned as part of the _return_fields argument. You can filter it using python if required.
Regards,
Krishna
Re: Need help using wapi 2.9 - retrieve only on extensible attribute
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 08:38 AM
Hello,
Thanks for the reply - I can use python as you suggest.
eholz1