Manage2 API Function - Look Up a License ID
Last modified: 2023 August 11
Description
This function returns an IP address’s license ID.
Examples
Browser-based calls
XML
https://manage2.cpanel.net/XMLlookup.cgi?ip=192.0.2.0&packageid=123&all=1JSON
https://manage2.cpanel.net/XMLlookup.cgi?output=json&ip=192.0.2.0&packageid=123&all=1YAML
https://manage2.cpanel.net/XMLlookup.cgi?output=yaml&ip=192.0.2.0&packageid=123&all=1
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
|
|
Output (JSON)
|
|
Output (YAML)
|
|
Parameters
This function accepts the following parameters:
| Return | Type | Description | Example |
|---|---|---|---|
ip |
string | Required The IP address. | 192.0.2.0 |
packageid |
integer | The package’s ID. This parameter defaults to an empty string. | 123 |
all |
Boolean | Whether to return all of the licenses that are currently associated with the IP address.
0. |
0 |
Returns
This function returns the following values:
| Return | Type | Description | Example |
|---|---|---|---|
licenseid |
string | The IP address’s license ID. | 5388377 |
reason |
string | Information about the package listing operation. | OK |
status |
Boolean | Whether the call succeeded:
|
1 |
version |
integer | Internal information that the Manage2 API uses to identify the version. | 0.3 |