/
Automating License Activation
Automating License Activation
The following steps provide an example license activation workflow using the license APIs:
Try it yourself by modifying the below sample script. This is designed to help you build your own customized automation script. To implement, please provide the appropriate parameters for your use case:
The following sample script is for IguanaX v1.10.103
## ---- LICENSE ACTIVATION ---- ##
InterfacewareUser="<MembersAccountUsername>"
InterfacewarePassword="<MembersAccountPassword>"
LicenseName="<EntitlementName>"
# STEP 1 - Get the Iguana ID
IguanaID=`/home/iguanauser/iguana --id`
echo "IguanaID: $IguanaID"
# STEP 2 - Call Members Account API get activated license code:
# Get Authentication Token
IguanaToken=`curl -k -X POST "https://my.interfaceware.com/api?username=$InterfacewareUser&password=$InterfacewarePassword&method=session.login" | jq -r '.data.Token'`
echo "IguanaToken: $IguanaToken"
# Get EntitlementID of license type
EntitlementID=`curl -k -X POST "https://my.interfaceware.com/api?method=license.listentitlements&product=IguanaX&token=$IguanaToken" | jq -r --arg name "$LicenseName" '.data[] | select(.name==$name) | .id'`
echo "EntitlementID: $EntitlementID"
# Register IguanaID to activate the license code
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'`
echo "IguanaLicenseCode: $IguanaLicenseCode"
# STEP 3 - Write the IguanaLinceseCode to the IguanaLicense file in the working directory
echo $IguanaLicenseCode > /home/iguanauser/.IguanaX/config/other/IguanaLicense;
, multiple selections available,
Related content
Automating License Transfers
Automating License Transfers
More like this
Get an Activated License Code
Get an Activated License Code
More like this
Programmatically apply a License Code
Programmatically apply a License Code
More like this
Activate a License
Activate a License
More like this
Transfer a License Code
Transfer a License Code
More like this
How to Build Iguana License Automation
How to Build Iguana License Automation
More like this