530

Product support

Get help in the plugin support forum.

Categories

Plesk Integration plugin

This plugin allows developers to make connections with Plesk-managed servers easily and quickly.

By just modifying the connection data you can create databases, users, domains, subdomains, change versions of PHP, etc.. from October CMS.

The XML API protocol was designed to support interaction between Plesk and third-party software remotely.

Plesk receives the message, transforms the message into operation instructions, attempts to perform the operations, and returns operation statuses and details

API errors are generally returned in the language that is selected as default in Plesk. However, not all error messages were translated, so some messages may be returned in English.

Thanks

Thanks Nickurt for his Laravel Plugin

For more information, you can access to official Plesk Docs website: Plesk API Docs

Installation

  • Use October Marketplace and Add to project button.
  • Use October backend area Settings > System > Updates & Plugins > Install Plugins and type MarcRO.Plesk
  • Use php artisan plugin:install MarcRO.Plesk command.

After that, add the Plesk credentials to your .env file

PLESK_DEFAULT_URI=
PLESK_DEFAULT_USERNAME=
PLESK_DEFAULT_PASSWORD=

Usage

You can find the required params on this page

Aps

\Plesk::aps()->all()
\Plesk::aps()->download(array $params)
\Plesk::aps()->import_config(array $params)
\Plesk::aps()->import_package(array $params)
\Plesk::aps()->install(array $params)
\Plesk::aps()->task(array $params)

Certificates

\Plesk::certificates()->delete(array $params)
\Plesk::certificates()->domain(array $params)
\Plesk::certificates()->generate(array $params)
\Plesk::certificates()->install(array $params)

Customers

\Plesk::customers()->all()
\Plesk::customers()->create(array $params)
\Plesk::customers()->delete(array $params)
\Plesk::customers()->get(array $params)

Databases

\Plesk::databases()->all()
\Plesk::databases()->create(array $params)
\Plesk::databases()->delete(array $params)
\Plesk::databases()->get(array $params)
\Plesk::databases()->users(array $params)

Databases Servers

\Plesk::databasesservers()->all()
\Plesk::databasesservers()->create(array $params)
\Plesk::databasesservers()->delete(array $params)
\Plesk::databasesservers()->get(array $params)
\Plesk::databasesservers()->types()
\Plesk::databasesservers()->local(array $params)

Dns

\Plesk::dns()->all(array $params)
\Plesk::dns()->create(array $params)
\Plesk::dns()->delete(array $params)

Extensions

\Plesk::extensions()->all()
\Plesk::extensions()->get(array $params)
\Plesk::extensions()->install(array $params)
\Plesk::extensions()->uninstall(array $params)

Ftp

\Plesk::ftp()->all()
\Plesk::ftp()->create(array $params)
\Plesk::ftp()->delete(array $params)
\Plesk::ftp()->get(array $params)
\Plesk::ftp()->update(array $params)

Git

\Plesk::git()->all()
\Plesk::git()->create(array $params)
\Plesk::git()->delete(array $params)
\Plesk::git()->deploy(array $params)
\Plesk::git()->fetch(array $params)
\Plesk::git()->update(array $params)

Ip

\Plesk::ip()->all()
\Plesk::ip()->create(array $params)
\Plesk::ip()->delete(array $params)

Locales

\Plesk::locales()->all()
\Plesk::locales()->disable(array $params)
\Plesk::locales()->enable(array $params)
\Plesk::locales()->get(array $params)

LogRotations

\Plesk::logrotations()->all()
\Plesk::logrotations()->disable(array $params)
\Plesk::logrotations()->enable(array $params)
\Plesk::logrotations()->get(array $params)
\Plesk::logrotations()->status(array $params)

Mail

\Plesk::mail()->create(array $params)
\Plesk::mail()->delete(array $params)
\Plesk::mail()->disable(array $params)
\Plesk::mail()->enable(array $params)
\Plesk::mail()->get(array $params)
\Plesk::mail()->prefs(array $params)

NodeJS

\Plesk::nodejs()->all()
\Plesk::nodejs()->disable(array $params)
\Plesk::nodejs()->enable(array $params)

Php

\Plesk::php()->all()
\Plesk::php()->disable(array $params)
\Plesk::php()->enable(array $params)
\Plesk::php()->get(array $params)
\Plesk::php()->usage(array $params)

Plesk

\Plesk::plesk()->additional_key()
\Plesk::plesk()->information()
\Plesk::plesk()->install_key(array $params)
\Plesk::plesk()->key()
\Plesk::plesk()->rollback_key()
\Plesk::plesk()->services()

Resellers

\Plesk::resellers()->all()
\Plesk::resellers()->create(array $params)
\Plesk::resellers()->delete(array $params)
\Plesk::resellers()->domains(array $params)
\Plesk::resellers()->get(array $params)
\Plesk::resellers()->limits(array $params)
\Plesk::resellers()->permissions(array $params)

Resellers Plans

\Plesk::resellersplans()->all()
\Plesk::resellersplans()->create(array $params)
\Plesk::resellersplans()->delete(array $params)
\Plesk::resellersplans()->get(array $params)

SecretKeys

\Plesk::secretkeys()->all()
\Plesk::secretkeys()->create(array $params)
\Plesk::secretkeys()->delete(array $params)
\Plesk::secretkeys()->get(array $params)

ServicePlans

\Plesk::serviceplans()->all()
\Plesk::serviceplans()->create(array $params)
\Plesk::serviceplans()->delete(array $params)
\Plesk::serviceplans()->get(array $params)

ServicePlans Addons

\Plesk::serviceplansaddons()->all()
\Plesk::serviceplansaddons()->get(array $params)

Sessions

\Plesk::sessions()->all()
\Plesk::sessions()->create(array $params)
\Plesk::sessions()->terminate(array $params)

Sites

\Plesk::sites()->all()
\Plesk::sites()->create(array $params)
\Plesk::sites()->delete(array $params)
\Plesk::sites()->get(array $params)
\Plesk::sites()->traffic(array $params)

SitesAliases

\Plesk::sitesaliases()->all()
\Plesk::sitesaliases()->create(array $params)
\Plesk::sitesaliases()->delete(array $params)
\Plesk::sitesaliases()->get(array $params)

Subdomains

\Plesk::subdomains()->all()
\Plesk::subdomains()->create(array $params)
\Plesk::subdomains()->delete(array $params)
\Plesk::subdomains()->get(array $params)

Subscriptions

\Plesk::subscriptions()->all()
\Plesk::subscriptions()->create(array $params)
\Plesk::subscriptions()->delete(array $params)
\Plesk::subscriptions()->get(array $params)
\Plesk::subscriptions()->hosting(array $params)
\Plesk::subscriptions()->limits(array $params)
\Plesk::subscriptions()->permissions(array $params)
\Plesk::subscriptions()->traffic(array $params)
1.0.1

First version of Plesk Integration.

Jul 12, 2019