Reply

Get license expiry date

Member
Posts: 2
98     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: 155
99     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