Sitejet
13 functions, invoked through the cpanel_uapi tool.
cpanel_uapi(service_id, module="Sitejet", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.add_api_token GET#
Add an existing Sitejet API token.
This function adds an existing Sitejet API token to a cPanel user.
Note:
You can create a Sitejet API token with the Sitejet:create_account function.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
can_create_domains GET#
Return Domain Availability
This function returns whether a cPanel account can create new subdomains or addon domains.
Note:
Creating a new addon domain is dependent on the creation of subdomains. If the cPanel account has reached its limit for subdomains, you cannot create a new addon domain, even if the limit for addon domains has not been reached.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Whether the cPanel user can create a new subdomin or addon domain. 1 - The cPanel user can create a new subdomain or addon domain. 0 - The cPanel user can not create a new subdomain or addon domain.
create_account GET#
Generate a Sitejet API key.
This function creates a Sitejet API token for a cPanel account.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
create_restore_point GET#
Create a restore point.
This function creates a restore point for a domain's document root and removes the domain's files.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
create_website GET#
Create Sitejet domain ID
This function creates a Sitejet ID for the specified domain.
Note:
A unique Sitejet ID is assigned to each domain on the cPanel account.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
get_all_user_sitejet_info GET#
Return Sitejet domains
This function returns the Sitejet domains' information for the cPanel account.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
get_api_token GET#
Return Sitejet API token
This function returns the cPanel account's Sitejet API token.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
The cPanel account's Sitejet API token.
get_preview_url GET#
Return Sitejet preview URL
This function returns a Sitejet website's preview URL.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
The Sitejet website's preview URL.
get_sso_link GET#
Return Sitejet SSO URL
This function returns a Sitejet website's SSO URL.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
The SSO link to the Sitejet CMS.
get_templates GET#
Return Sitejet templates
This function fetches the list of available Sitejet templates.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
restore_document_root GET#
Restore a domain from the restore point.
This function reverts a document root to the restore point.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
set_template GET#
Update Sitejet template
This function sets a Sitejet website's template.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
start_publish GET#
Publish Sitejet domain
This function publishes a domain's Sitejet website.
Response — normalized as { ok, data, errors[], warnings[] }; data contains: