Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
title2 d) Transfer the activation ID to the new Iguana Instance and capture the license code

Members Account Licensing API base URL: https://my.interfaceware.com

Transfer a License POST /api

This API method returns a JSON object containing the license information about the Iguana you've transferred the license to. This in

Parameters:

  • product: The product you want licenses for - IguanaX string

  • token: Your authentication token string

  • method: The API method license.UpdateActivationInfo string

  • description: A description to pair with the license (test, prod, etc.) string

  • activationid: The Activation ID of the Iguana you're transferring the license from string

  • instance_id: The Iguana ID of the instance that you want to transfer the license to string

Response:

Code Block
languagejson
{
    "data": {
        "log_search": "60",
        "num_components": "50",
        "description": "New IguanaX",
        "code": "E33F6E672A5239A200F300SDSF23FF6E673C596E1322DC83379C3F63DC0446",
        "license_type": "IguanaX Test",
        "country": "",
        "license_expiry": "2025-08-13 16:04:10",
        "date_modified": "2024-08-13 18:57:29",
        "state": "",
        "site": "",
        "city": "",
        "date_issued": "2024-08-13 16:04:10",
        "last_modified_by": "Admin",
        "tracking_id": "",
        "activation_id": "210",
        "instance_id": "THSWPRHMUXTT7MRR"
    },
    "status": "ok"
}

Example curl command calling the API and parsing the license code from the response:

Code Block
languagebash
OldIguanaActivationIDNewLicenseCode=`curl -k -X POST "https://my.interfaceware.com/api?method=license.UpdateActivationInfo&product=IguanaX&token=<IguanaToken>&description=<NewIguanaX>&activationid=<activationID>&instance_id=<newIguanaID>" | jq -r '.data.code'`

...