Our Licensing APIs are designed to interact with the Members Account licensing system allowing you to get, activate, and transfer Iguana licenses programmatically, providing you have access and licenses available to do so.
License Activation
Get the Iguana ID of your target Iguana instance
There are two methods which can be used to obtain the Iguana ID:
...
title | Option A: Use the --id command line flag |
---|
The Iguana ID can be obtained using the command line --id
flag. If you need to target a unique working directory, you can optionally use --id --working_dir <working_directory>
to point to a specific Iguana working directory and return the Iguana ID.
Windows:
Code Block |
---|
iguana --id --working_dir "C:\ProgramData\IguanaX" |
...
Linux:
Code Block |
---|
./iguana --id |
...
title | Option B: Use the IguanaX API to get license details |
---|
/license/get
Call the Members Account Licensing APIs to register your Iguana ID to generate a license code
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Members Account Licensing API base URL: Get an Authentication Token This API method returns a JSON object containing a session token which will be used with the subsequent license API calls. Parameters:
Response:
Example curl command calling the API and parsing the Token from the response:
|
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Members Account Licensing API base URL: Get a List of Entitlements This API method returns a JSON object containing a list of license types and select the ID for the type you want to activate. Parameters:
Response:
Example curl command calling the API and parsing the selected license entitlement id from the response:
|
...
title | 3 - Register your Iguana ID to activate a license code |
---|
Members Account Licensing API base URL: https://my.interfaceware.com
...
This API method returns a JSON object containing the license description and activated license code.
Parameters:
product: The product you want licenses for -
IguanaX
stringtoken: Your authentication token string (from the first call)
method: The API method
license.activate
stringdescription: A description to pair with the license (test, prod, etc.) string
entitlementid: The ID of the license you want to activate string
instanceid: The Iguana ID of the instance that you want to apply the license to string
Response:
Code Block | ||
---|---|---|
| ||
{
"data": {
"description": "Test",
"code": "4492A1B5CDA25D79DFCC5DC3GHS4448B9D8A3CCC98",
"license_expiry": "2025-08-13",
"name": "IguanaX Test",
"instanceid": "THSWPRHMUXTT7MRR",
"log_search": 365,
"num_components": 50
},
"status": "ok" |
Example curl command calling the API and parsing the license code from the response:
Code Block | ||
---|---|---|
| ||
IguanaLicenseCode=`curl -k -X POST "https://my.interfaceware.com/api?method=license.activate&product=IguanaX&token=$IguanaToken&description=IguanaLicense&entitlementid=$EntitlementID&instanceid=<IguanaID>" | jq -r '.data.code'` |
Apply the license code to the new Iguana instance
There are two possible methods to apply the generated license code to the new Iguana instance:
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Windows:
Linux:
|
Expand | ||
---|---|---|
| ||
/license/set API |
License Transfer
Expand |
---|
See step 1 above in Activate a License for how to get the Iguana ID. |
...
Gain access to the Iguana ID used to transfer to.
...
Obtain Authentication Token.
...
Gain Access to the Entitlement ID.
...
Gain access to the Activation ID of the current Iguana Instance.
...
Gain access to the new code and transfer the new Iguana Instance.
...