- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to check License Expiry Date on DDI Members via WAPI
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 11:40 AM
Tried to use CLI testing script like below:
curl -k1 -u admin:infoblox -X GET 'https://[GM]/wapi/v2.10.3/member:license/b25lLnZpcnR1YWxfbm9kZSQxMw:dhcp/Static'
But received errors like below. Unable to get additional help from the API Object manual with respect to member type etc:
{ "Error": "AdmConDataError: .com.infoblox.one.virtual_node has no member type",
"code": "Client.Ibap.Data",
"text": ".com.infoblox.one.virtual_node has no member type" }
Please advise.
Re: How to check License Expiry Date on DDI Members via WAPI
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2021 03:52 PM
Hi Mlu,
Please find the below API call and check if this works:
curl -H "Content-Type: application/json" -k1 -u user:pass -X GET https://1.2.3.4/wapi/v2.5/member:license?_return_fields=hwid,type,limit,kind,key,expiry_date,expiration_status
Below is an sample output:
[ { "_ref": "member:license/xxxxxA:GRID/Static", "expiration_status": "EXPIRED", "expiry_date": 1617235199, "hwid": "1108201010xxxxx", "key": "xxxxx=", "kind": "Static", "limit": "0", "type": "GRID" },
-In the output, you should see the expiration date(EPOCH time) and status.
]root@b0c6773b4bb4:~# date -d@1617235199 Thu Apr 1 05:29:59 IST 2021
Hope this helps.
Re: How to check License Expiry Date on DDI Members via WAPI
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2021 03:59 PM
To add to above, below is a sample WAPI call to individual DHCP license:
curl -H "Content-Type: application/json" -k1 -u admin:infoblox -X GET https://10.34.214.201/wapi/v2.5/member:license/b25lLnByb2R1Y3RfbGljZW5zZSQwLGRoY3AsMA:DHCP/Static?_return_fields=hwid,type,limit,kind,key,expiry_date,expiration_status { "_ref": "member:license/b25lLnByb2R1Y3RfbGljZW5zZSQwLGRoY3AsMA:DHCP/Static", "expiration_status": "PERMANENT", "expiry_date": 2147483647, "hwid": "110820xxxxxxx", "key": "EgAAAIoxxxxxxx==", "kind": "Static", "limit": "0", "type": "DHCP" }
The above was tesed on a Standalone GM (Non MGM grid) running NIOS 8.5.2.
Health Check for DDI
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:42 PM
Dear Team,
Is there any articleto perform DDI health check.