Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API Examples

Reply

Get license expiry date

Techie
Posts: 4
311     0

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 userSmiley Tongueass -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

Community Manager
Community Manager
Posts: 180
312     0

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"
  }
]'

 

 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You