403 Forbidden


Disable Functions:
Path : /usr/local/share/man/man3/
File Upload :
Command :
Current File : //usr/local/share/man/man3/cPanel::PublicAPI::WHM::JSONAPI.3pm

.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.13)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
.    if \nF \{
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
.    \" fudge factors for nroff and troff
.if n \{\
.    ds #H 0
.    ds #V .8m
.    ds #F .3m
.    ds #[ \f1
.    ds #] \fP
.\}
.if t \{\
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
.    ds #V .6m
.    ds #F 0
.    ds #[ \&
.    ds #] \&
.\}
.    \" simple accents for nroff and troff
.if n \{\
.    ds ' \&
.    ds ` \&
.    ds ^ \&
.    ds , \&
.    ds ~ ~
.    ds /
.\}
.if t \{\
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
.    \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
.    \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
.    \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
.    ds : e
.    ds 8 ss
.    ds o a
.    ds d- d\h'-1'\(ga
.    ds D- D\h'-1'\(hy
.    ds th \o'bp'
.    ds Th \o'LP'
.    ds ae ae
.    ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "cPanel::PublicAPI::WHM::JSONAPI 3"
.TH cPanel::PublicAPI::WHM::JSONAPI 3 "2011-03-03" "perl v5.10.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
cPanel::PublicAPI::WHM::API \- Legacy interface for querying the xml\-api.
.PP
NOTE: This module is provided for legacy purposes, cPanel::PublicAPI should be used instead
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
This module provides legacy compatibility support between cPanel::PublicAPI and Cpanel::Accounting (distributed with cPanel).
This should never be used unless there is a very good reason to use it (such as having a script that uses Cpanel::Accounting).
.PP
Every method contained within this object can be queried using \fIcPanel::publicAPI::whm_api()\fR instead.
.PP
For more information on the calls within the methods contained here and what the parameter names mean, please read the documentation at: <http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/XmlApi>
.SH "functions"
.IX Header "functions"
.ie n .SS """jsonapi_listaccts()"""
.el .SS "\f(CWjsonapi_listaccts()\fP"
.IX Subsection "jsonapi_listaccts()"
Used to list the accounts on a server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listaccts( $search, $searchtype );
.Ve
.ie n .SS """jsonapi_createacct()"""
.el .SS "\f(CWjsonapi_createacct()\fP"
.IX Subsection "jsonapi_createacct()"
Create a new cPanel account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_createacct( $username, $domain, $password, $plan );
.Ve
.ie n .SS """jsonapi_removeacct()"""
.el .SS "\f(CWjsonapi_removeacct()\fP"
.IX Subsection "jsonapi_removeacct()"
Terminate an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_removeacct( $user );
.Ve
.ie n .SS """jsonapi_showversion()"""
.el .SS "\f(CWjsonapi_showversion()\fP"
.IX Subsection "jsonapi_showversion()"
Get the version of cPanel running on the server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_showversion(  );
.Ve
.ie n .SS """jsonapi_version()"""
.el .SS "\f(CWjsonapi_version()\fP"
.IX Subsection "jsonapi_version()"
Get the version of cPanel running on the server (as as showversion)
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_version(  );
.Ve
.ie n .SS """jsonapi_applist()"""
.el .SS "\f(CWjsonapi_applist()\fP"
.IX Subsection "jsonapi_applist()"
List out the available xml-api calls.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_applist(  );
.Ve
.ie n .SS """jsonapi_generatessl()"""
.el .SS "\f(CWjsonapi_generatessl()\fP"
.IX Subsection "jsonapi_generatessl()"
Generate an ssl certificate.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_generatessl( $host, $pass, $country, $state, $city, $co, $cod, $email, $xemail );
.Ve
.ie n .SS """jsonapi_generatessl_noemail()"""
.el .SS "\f(CWjsonapi_generatessl_noemail()\fP"
.IX Subsection "jsonapi_generatessl_noemail()"
Generate an \s-1SSL\s0 certificate without an email.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_generatessl_noemail( $noemail=1 );
.Ve
.ie n .SS """jsonapi_listcrts()"""
.el .SS "\f(CWjsonapi_listcrts()\fP"
.IX Subsection "jsonapi_listcrts()"
List out the certificates that exist on the server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listcrts(  );
.Ve
.ie n .SS """jsonapi_setresellerlimits()"""
.el .SS "\f(CWjsonapi_setresellerlimits()\fP"
.IX Subsection "jsonapi_setresellerlimits()"
Set the limits for a single reseller account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setresellerlimits(  );
.Ve
.ie n .SS """jsonapi_setresellerpackagelimit()"""
.el .SS "\f(CWjsonapi_setresellerpackagelimit()\fP"
.IX Subsection "jsonapi_setresellerpackagelimit()"
Set which packages a reseller account can use.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setresellerpackagelimit( $user, $package, $allowerd, $number, $no_limit );
.Ve
.ie n .SS """jsonapi_setresellermainip()"""
.el .SS "\f(CWjsonapi_setresellermainip()\fP"
.IX Subsection "jsonapi_setresellermainip()"
Set a reseller's main \s-1IP.\s0
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setresellermainip( $user, $ip );
.Ve
.ie n .SS """jsonapi_setresellerips()"""
.el .SS "\f(CWjsonapi_setresellerips()\fP"
.IX Subsection "jsonapi_setresellerips()"
Set the \s-1IP\s0 that a reseller has available to it.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setresellerips( $user, $delegate, $ips );
.Ve
.ie n .SS """jsonapi_setresellernameservers()"""
.el .SS "\f(CWjsonapi_setresellernameservers()\fP"
.IX Subsection "jsonapi_setresellernameservers()"
Set the nameservers that a reseller uses by default.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setresellernameservers( $user, $nameservers );
.Ve
.ie n .SS """jsonapi_suspendreseller()"""
.el .SS "\f(CWjsonapi_suspendreseller()\fP"
.IX Subsection "jsonapi_suspendreseller()"
Suspend a reseller and all of their accounts.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_suspendreseller( $user, $reason, $disallow );
.Ve
.ie n .SS """jsonapi_unsuspendreseller()"""
.el .SS "\f(CWjsonapi_unsuspendreseller()\fP"
.IX Subsection "jsonapi_unsuspendreseller()"
Unsuspend a reseller and all of their accounts.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_unsuspendreseller( $user );
.Ve
.ie n .SS """jsonapi_addzonerecord()"""
.el .SS "\f(CWjsonapi_addzonerecord()\fP"
.IX Subsection "jsonapi_addzonerecord()"
Add a record to a zone.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_addzonerecord( @args );
.Ve
.ie n .SS """jsonapi_editzonerecord()"""
.el .SS "\f(CWjsonapi_editzonerecord()\fP"
.IX Subsection "jsonapi_editzonerecord()"
Edit a zone record.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_editzonerecord(@args );
.Ve
.ie n .SS """jsonapi_removezonerecord()"""
.el .SS "\f(CWjsonapi_removezonerecord()\fP"
.IX Subsection "jsonapi_removezonerecord()"
Remove a line from a zone.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_removezonerecord( $domain, $Line );
.Ve
.ie n .SS """jsonapi_getzonerecord()"""
.el .SS "\f(CWjsonapi_getzonerecord()\fP"
.IX Subsection "jsonapi_getzonerecord()"
Get a record from a zone.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_getzonerecord( $domain, $Line );
.Ve
.ie n .SS """jsonapi_servicestatus()"""
.el .SS "\f(CWjsonapi_servicestatus()\fP"
.IX Subsection "jsonapi_servicestatus()"
Get the status of various services running on a system.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_servicestatus( $service );
.Ve
.ie n .SS """jsonapi_configureservice()"""
.el .SS "\f(CWjsonapi_configureservice()\fP"
.IX Subsection "jsonapi_configureservice()"
Enable/Disable various services.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_configureservice( $service, $enabled, $monitored );
.Ve
.ie n .SS """jsonapi_acctcounts()"""
.el .SS "\f(CWjsonapi_acctcounts()\fP"
.IX Subsection "jsonapi_acctcounts()"
Get the number of accounts on a system/that belong to a reseller.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_acctcounts( $user );
.Ve
.ie n .SS """jsonapi_domainuserdata()"""
.el .SS "\f(CWjsonapi_domainuserdata()\fP"
.IX Subsection "jsonapi_domainuserdata()"
Get the information about a specific domain's virtualhost.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_domainuserdata( $domain );
.Ve
.ie n .SS """jsonapi_editquota()"""
.el .SS "\f(CWjsonapi_editquota()\fP"
.IX Subsection "jsonapi_editquota()"
Edit a user's quota.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_editquota( $user, $quota );
.Ve
.ie n .SS """jsonapi_nvget()"""
.el .SS "\f(CWjsonapi_nvget()\fP"
.IX Subsection "jsonapi_nvget()"
Get non-volatile data.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_nvget( $key );
.Ve
.ie n .SS """jsonapi_nvset()"""
.el .SS "\f(CWjsonapi_nvset()\fP"
.IX Subsection "jsonapi_nvset()"
Set non-volatile data.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_nvset( $key, $value );
.Ve
.ie n .SS """jsonapi_myprivs()"""
.el .SS "\f(CWjsonapi_myprivs()\fP"
.IX Subsection "jsonapi_myprivs()"
See what privileges are available to your user.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_myprivs(  );
.Ve
.ie n .SS """jsonapi_listzones()"""
.el .SS "\f(CWjsonapi_listzones()\fP"
.IX Subsection "jsonapi_listzones()"
List all the zones available to a user.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listzones(  );
.Ve
.ie n .SS """jsonapi_sethostname()"""
.el .SS "\f(CWjsonapi_sethostname()\fP"
.IX Subsection "jsonapi_sethostname()"
Set the hostname of a system.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_sethostname( $hostname );
.Ve
.ie n .SS """jsonapi_setresolvers()"""
.el .SS "\f(CWjsonapi_setresolvers()\fP"
.IX Subsection "jsonapi_setresolvers()"
Set the resolvers a system uses.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setresolvers( $nameserver1, $nameserver2, $nameserver3 );
.Ve
.ie n .SS """jsonapi_addip()"""
.el .SS "\f(CWjsonapi_addip()\fP"
.IX Subsection "jsonapi_addip()"
Add a new \s-1IP\s0 to a server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_addip( $ip, $netmask );
.Ve
.ie n .SS """jsonapi_delip()"""
.el .SS "\f(CWjsonapi_delip()\fP"
.IX Subsection "jsonapi_delip()"
Remove an \s-1IP\s0 from a server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_delip( $ip, $ethernetdev, $skipifshutdown );
.Ve
.ie n .SS """jsonapi_listips()"""
.el .SS "\f(CWjsonapi_listips()\fP"
.IX Subsection "jsonapi_listips()"
List the IPs on a server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listips(  );
.Ve
.ie n .SS """jsonapi_dumpzone()"""
.el .SS "\f(CWjsonapi_dumpzone()\fP"
.IX Subsection "jsonapi_dumpzone()"
Get the contents of a zone file.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_dumpzone( $domain );
.Ve
.ie n .SS """jsonapi_listpkgs()"""
.el .SS "\f(CWjsonapi_listpkgs()\fP"
.IX Subsection "jsonapi_listpkgs()"
List the packages available to your user.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listpkgs(  );
.Ve
.ie n .SS """jsonapi_limitbw()"""
.el .SS "\f(CWjsonapi_limitbw()\fP"
.IX Subsection "jsonapi_limitbw()"
Limit the amount of bandwidth available to an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_limitbw( $user, $bwlimit );
.Ve
.ie n .SS """jsonapi_showbw()"""
.el .SS "\f(CWjsonapi_showbw()\fP"
.IX Subsection "jsonapi_showbw()"
Show the amount of \s-1BW\s0 used by an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_showbw( $month, $year, $showres, $search, $searchtype );
.Ve
.ie n .SS """jsonapi_killdns()"""
.el .SS "\f(CWjsonapi_killdns()\fP"
.IX Subsection "jsonapi_killdns()"
Remove a \s-1DNS\s0 zone.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_killdns( $domain );
.Ve
.ie n .SS """jsonapi_adddns()"""
.el .SS "\f(CWjsonapi_adddns()\fP"
.IX Subsection "jsonapi_adddns()"
Add a dns zone.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_adddns( $domain, $ip, $trueowner );
.Ve
.ie n .SS """jsonapi_changepackage()"""
.el .SS "\f(CWjsonapi_changepackage()\fP"
.IX Subsection "jsonapi_changepackage()"
Change an Account's Package.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_changepackage( $user, $pkg );
.Ve
.ie n .SS """jsonapi_modifyacct()"""
.el .SS "\f(CWjsonapi_modifyacct()\fP"
.IX Subsection "jsonapi_modifyacct()"
Modify an Account's limits.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_modifyacct( $user, $domain, $HASCGI, $CPTHEME, $LANG, $MAXPOP, $MAXFTP, $MAXLST, $MAXSUB, $MAXPARK, $MAXADDON, $MAXSQL, $shell );
.Ve
.ie n .SS """jsonapi_suspendacct()"""
.el .SS "\f(CWjsonapi_suspendacct()\fP"
.IX Subsection "jsonapi_suspendacct()"
Suspend an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_suspendacct( $user, $reason );
.Ve
.ie n .SS """jsonapi_unsuspendacct()"""
.el .SS "\f(CWjsonapi_unsuspendacct()\fP"
.IX Subsection "jsonapi_unsuspendacct()"
Unsuspend an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_unsuspendacct( $user );
.Ve
.ie n .SS """jsonapi_listsuspended()"""
.el .SS "\f(CWjsonapi_listsuspended()\fP"
.IX Subsection "jsonapi_listsuspended()"
List the suspended accounts on a server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listsuspended(  );
.Ve
.ie n .SS """jsonapi_addpkg()"""
.el .SS "\f(CWjsonapi_addpkg()\fP"
.IX Subsection "jsonapi_addpkg()"
Add a new package.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_addpkg( $pkgname, $quota, $ip, $cgi, $frontpage, $cpmod, $maxftp, $maxsql, $maxpop, $maxlst, $maxsub, $maxpark, $maxaddon, $featurelist, $hasshell, $bwlimit );
.Ve
.ie n .SS """jsonapi_killpkg()"""
.el .SS "\f(CWjsonapi_killpkg()\fP"
.IX Subsection "jsonapi_killpkg()"
Remove a package.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_killpkg( $pkg );
.Ve
.ie n .SS """jsonapi_editpkg()"""
.el .SS "\f(CWjsonapi_editpkg()\fP"
.IX Subsection "jsonapi_editpkg()"
Edit a package.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_editpkg( $pkgname, $quota, $ip, $cgi, $frontpage, $cpmod, $maxftp, $maxsql, $maxpop, $maxlst, $maxsub, $maxpark, $maxaddon, $featurelist, $hasshell, $bwlimit );
.Ve
.ie n .SS """jsonapi_setacls()"""
.el .SS "\f(CWjsonapi_setacls()\fP"
.IX Subsection "jsonapi_setacls()"
Change features available to a reseller.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setacls( $reseller, $acllist );
.Ve
.ie n .SS """jsonapi_terminatereseller()"""
.el .SS "\f(CWjsonapi_terminatereseller()\fP"
.IX Subsection "jsonapi_terminatereseller()"
Remove a reseller.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_terminatereseller( $reseller, $verify );
.Ve
.ie n .SS """jsonapi_resellerstats()"""
.el .SS "\f(CWjsonapi_resellerstats()\fP"
.IX Subsection "jsonapi_resellerstats()"
Get statistics on a specific reseller.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_resellerstats( $reseller );
.Ve
.ie n .SS """jsonapi_setupreseller()"""
.el .SS "\f(CWjsonapi_setupreseller()\fP"
.IX Subsection "jsonapi_setupreseller()"
Make a cPanel account a Reseller account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setupreseller( $user, $makeowner );
.Ve
.ie n .SS """jsonapi_lookupnsip()"""
.el .SS "\f(CWjsonapi_lookupnsip()\fP"
.IX Subsection "jsonapi_lookupnsip()"
Get the \s-1IP\s0 for a nameserver.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_lookupnsip( $nameserver );
.Ve
.ie n .SS """jsonapi_listresellers()"""
.el .SS "\f(CWjsonapi_listresellers()\fP"
.IX Subsection "jsonapi_listresellers()"
List all the resellers on a system.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listresellers(  );
.Ve
.ie n .SS """jsonapi_listacls()"""
.el .SS "\f(CWjsonapi_listacls()\fP"
.IX Subsection "jsonapi_listacls()"
List all of the \s-1ACL\s0 lists available.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_listacls(  );
.Ve
.ie n .SS """jsonapi_saveacllist()"""
.el .SS "\f(CWjsonapi_saveacllist()\fP"
.IX Subsection "jsonapi_saveacllist()"
Save a new \s-1ACL\s0 list.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_saveacllist( $acllist );
.Ve
.ie n .SS """jsonapi_unsetupreseller()"""
.el .SS "\f(CWjsonapi_unsetupreseller()\fP"
.IX Subsection "jsonapi_unsetupreseller()"
Remove reseller permissions from an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_unsetupreseller( $user );
.Ve
.ie n .SS """jsonapi_gethostname()"""
.el .SS "\f(CWjsonapi_gethostname()\fP"
.IX Subsection "jsonapi_gethostname()"
Get the hostname of the server currently being queried.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_gethostname(  );
.Ve
.ie n .SS """jsonapi_fetchsslinfo()"""
.el .SS "\f(CWjsonapi_fetchsslinfo()\fP"
.IX Subsection "jsonapi_fetchsslinfo()"
Get information on a specific \s-1SSL\s0 certificate.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_fetchsslinfo( $domain, $crtdata );
.Ve
.ie n .SS """jsonapi_installssl()"""
.el .SS "\f(CWjsonapi_installssl()\fP"
.IX Subsection "jsonapi_installssl()"
Install a new \s-1SSL\s0 certificate.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_installssl( $domain, $user, $cert, $key, $cab, $ip );
.Ve
.ie n .SS """jsonapi_passwd()"""
.el .SS "\f(CWjsonapi_passwd()\fP"
.IX Subsection "jsonapi_passwd()"
Change an account's password.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_passwd( $user, $pass );
.Ve
.ie n .SS """jsonapi_getlanglist()"""
.el .SS "\f(CWjsonapi_getlanglist()\fP"
.IX Subsection "jsonapi_getlanglist()"
Get a list of languages available on a system.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_getlanglist(  );
.Ve
.ie n .SS """jsonapi_reboot()"""
.el .SS "\f(CWjsonapi_reboot()\fP"
.IX Subsection "jsonapi_reboot()"
Reboot the server.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_reboot( $force );
.Ve
.ie n .SS """jsonapi_accountsummary_user()"""
.el .SS "\f(CWjsonapi_accountsummary_user()\fP"
.IX Subsection "jsonapi_accountsummary_user()"
Get a summary of an account.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_accountsummary_user( $user );
.Ve
.ie n .SS """jsonapi_accountsummary_domain()"""
.el .SS "\f(CWjsonapi_accountsummary_domain()\fP"
.IX Subsection "jsonapi_accountsummary_domain()"
Get the summary of an account by specifying the domain.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_accountsummary_domain( $domain );
.Ve
.ie n .SS """jsonapi_loadavg()"""
.el .SS "\f(CWjsonapi_loadavg()\fP"
.IX Subsection "jsonapi_loadavg()"
Get the loadavg on the system.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_loadavg(  );
.Ve
.ie n .SS """jsonapi_restartservice()"""
.el .SS "\f(CWjsonapi_restartservice()\fP"
.IX Subsection "jsonapi_restartservice()"
Restart a service.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_restartservice( $service );
.Ve
.ie n .SS """jsonapi_setsiteip_user()"""
.el .SS "\f(CWjsonapi_setsiteip_user()\fP"
.IX Subsection "jsonapi_setsiteip_user()"
Set the \s-1IP\s0 for a specific user.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setsiteip_user( $user, $ip );
.Ve
.ie n .SS """jsonapi_setsiteip_domain()"""
.el .SS "\f(CWjsonapi_setsiteip_domain()\fP"
.IX Subsection "jsonapi_setsiteip_domain()"
Set the \s-1IP\s0 for a specific domain.
.PP
Syntax:
.PP
.Vb 1
\&  $pubapi\->jsonapi_setsiteip_domain( $domain, $ip );
.Ve
.SH "Bugs"
.IX Header "Bugs"
see http://rt.cpan.org to report and view bugs
.SH "License"
.IX Header "License"
Copyright (c) 2011, cPanel, Inc.
All rights reserved.
http://cpanel.net
.PP
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.
     * Neither the name of cPanel, Inc. nor the
       names of its contributors may be used to endorse or promote products
       derived from this software without specific prior written permission.
.PP
\&\s-1THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \*(L"AS IS\*(R" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL  BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
\&\s0(\s-1INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES\s0;
\&\s-1LOSS OF USE, DATA, OR PROFITS\s0; \s-1OR BUSINESS INTERRUPTION\s0) \s-1HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
\&\s0(\s-1INCLUDING NEGLIGENCE OR OTHERWISE\s0) \s-1ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\s0

404 Not Found
[ LogOut ]