- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Get license expiry date
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 01:30 PM
Hi All,
I am new to using WAPI
I use the following API endpoint to get license expiry date
curl -H "Content-Type: application/json" -k1 -u userass -X GET https://1.2.3.4/wapi/v2.5/member:license?_return_fields=hwid,type,limit,kind,key,expiry_date,expirat...
This does not get me the hostname or ip address of the device. Is there a way to get that using WAPI along with the license expiry date? This api is called in the grid master by the way
Thanks in advance!
Re: Get license expiry date
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2022 09:04 AM
The information you're looking for is in different sub-objects unfortunately.
You can group calls together, into a multibody request like this. But you will need to line up the data on your own.
curl -k1 -u admin:infoblox -X POST 'https:///192.168.1.2/wapi/v2.10/request' -H "Content-Type: application/json" -d \ '[ { "method":"GET", "object":"member", "args": { "_return_fields+":"node_info" } }, { "method": "STATE:DISPLAY" }, { "method":"GET", "object":"member:license", "args": { "_return_fields+":"hwid,type,limit,kind,key,expiry_date,expiration_status" } }, { "method": "STATE:DISPLAY" } ]'