Last modified November 7, 2024

listAccountPackages

This function returns a list of User or Reseller Packages on the Panel.
Parameters
Parameter name Type Description Possible values Example
type Integer List User Packages or Reseller Packages. NOTE: Implementation varies by Panel. 1 (User Packages), 2 (Reseller Packages) type=1
all Boolean List all package types when true. 1, 0 all=1
Returns
Parameter name Type Description Possible values Examples
items List [] The list of user and/or reseller packages.    
total Integer Total number of user and/or reseller packages.   20

Example Call JETAPI

jetbackup5api -F listAccountPackages -D 'type=1&all=1'
success: 1 message: system: version: 5.3.3 version_panel: 5.3.3 tier: EDGE type: cPanel retry_ms: 0 disableui: dr: agreement_panel: agreement: licenseIssue: data: packages: 0: name: Default Domain type: 1

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=listAccountPackages&all=1