Manage2 API Function - List Package Information
Last modified: September 5, 2024
Description
This function returns the Manage2 account’s packages.
Examples
Browser-based calls
Note:
To see the expanded returns, add the
expand
parameter to the end of each browser-based call.
XML
http://manage2.cpanel.net/XMLpackageInfo.cgi
JSON
http://manage2.cpanel.net/XMLpackageInfo.cgi?output=json
YAML
http://manage2.cpanel.net/XMLpackageInfo.cgi?output=yaml
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
Without the expand
parameter:
|
|
With the expand
parameter:
|
|
Output (JSON)
Without the expand
parameter:
|
|
With the expand
parameter:
|
|
Output (YAML)
Without the expand
parameter:
|
|
With the expand
parameter:
|
|
Parameters
This function accepts the following parameters:
Parameter | Type | Description | Example |
---|---|---|---|
expand |
string | Display the following additional package information returns:
|
expand |
Returns
This function’s output changes depending on the use of expand
return:
Without the expand parameter
This function returns the following values when you do not call the expand
parameter:
Parameter | Type | Description | Example |
---|---|---|---|
packages |
object | A list of package IDs and their assigned package. | "P2": "2-HOUR-DEPLOYMENT" |
reason |
string | Information about the operation. | OK |
status |
Boolean | Whether the function succeeded:
|
1 |
version |
float | Internal information that the Manage2 API uses to identify the version. | 0.3 |
With the expand parameter
This function returns the following values when you call the expand
parameter:
Return | Type | Description | Example |
---|---|---|---|
package |
array of objects | An array of objects containing each package and its information. | |
autoscale_target |
Boolean | Whether the package is an option for licenses with prices that scale with account volume (Auto-Scale):
package object. |
1 |
base_price |
numeric | The base rate of billing, in US dollars. The function returns this value in the package object. |
17.50 |
bulk_charge |
numeric | A non-discountable charge for blocks of additional accounts, in US dollars. The function returns this value in the package object. |
2.00 |
discountable |
Boolean | Whether the package qualifies for a discount:
package object. |
1 |
external |
Boolean | Whether the partner’s hardware hosts the package (external).
package object. |
0 |
host_type |
string | The host type (virtual or dedicated) the license requires:
package object. |
virtual |
hosted_sites |
integer | The total number of hosted sites on a Sitejet Studio license.
Note:
The function only returns this value for Sitejet Studio licenses.
package object. |
1 |
is_autoscale |
Boolean | Whether the package’s price scales with the license’s account volume:
package object. |
1 |
koaproj |
integer | The total number of projects for a koality license.
Note:
The function only returns this value for koality licenses.
package object. |
30 |
max_accounts |
integer | The maximum number of accounts allowed on the license.
package object. |
30 |
name |
string | The name of the cPanel package. The function returns this value in the package object. |
cPanel Autoscale Cloud (Internal) |
packageid |
integer | The ID number of the package. The function returns this value in the package object. |
31369 |
producttype |
integer | The product type ID:
package object. |
1 |
product_name |
string | The cPanel product’s name:
package object. |
cPanel/WHM |
products_included |
string | The total number of products you can display in the web stores you create with a Sitejet Commerce license.
Note:
The function only returns this value for Sitejet Commerce licenses.
package object. |
100 |
servers |
integer | The number of server monitors in the 360 Monitoring license.
Note:
The function only returns this value for 360 Monitoring and WP Guardian licenses.
package object. |
1 |
sites |
integer | The number of site monitors in the 360 Monitoring license.
Note:
The function only returns this value for 360 Monitoring licenses.
package object. |
20 |
self_hosted_sites |
integer | The total number of self-hosted sites on a Sitejet Studio license.
Note:
The function only returns this value for Sitejet Studio licenses.
package object. |
1 |
term |
integer | The license billing frequency, in months:
Note:
The
term and term_seconds returns are mutually exclusive.
package object. |
12 |
term_seconds |
integer | The number of seconds before the license expires:
Note:
The
term and term_seconds returns are mutually exclusive.
package object. |
120000 |
trial |
Boolean | Whether the package is a trial license:
package object. |
0 |
user_billing_rate |
integer | The billing rate for each account over the user_billing_threshold value. The function returns this value in the package object. |
0 |
user_billing_threshold |
integer | The number of accounts included with the license. Additional accounts that exceed this value will be billed at the user_billing_rate value.
package object. |
30 |
valid |
Boolean | Whether the package is valid:
package object. |
1 |
reason |
string | Information about the operation. | OK |
status |
Boolean | Whether the function succeeded:
|
1 |
version |
float | Internal information that the Manage2 API uses to identify the version. | 0.3 |