THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

How to check License Expiry Date on DDI Members via WAPI

New Member
Posts: 1
2837     0

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

New Member
Posts: 8
2838     0

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

New Member
Posts: 8
2838     0

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

New Member
Posts: 3
2838     0

Dear Team,

 

Is there any articleto perform DDI health check.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You