• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question API - Get a customers service plan

intervations-au

New Pleskian
Server operating system version
Microsoft Windows Server 2012 R2
Plesk version and microupdate number
18.0.56 Update #4
Hi everyone,

I am new here so please be kind ))

I am working on implementing a little integration between my website (coldfusion code-base) and plesk.
I can manage to get basic requests to work, but I am trying to find out how to get a customers subscription or service plan to display some basic data like a list of domains, sub-domains, disk usage, traffic, number of email accounts, etc.

I also want to add a link/button where they can click and they are automatically logged-in to the control panel.

Can anyone guide me what calls/endpoints I need to use to the API to get this information?
I can store locally in a local database anything relevant that would be needed on an initial call, like client_id, etc.

I really want to get this working and all help/advice is appreciated.

Thanks in advance.
 
Hi welcome, have a look at REST API reference and playground on you Plesk server in Tools & Settings. Alternatively there is the XML-RPC API, which has more options but also has a stronger learning curve.
 
I’ve been delving around the reference and playground, but it’s not giving me what I would consider the basics of what I’m looking for. It’s almost there, but there doesn’t seem to be anything that remotely indicates getting subscriptions or plans per client.

Thanks for the recommendation about the XML-RPC api. Do you have any hints on where to start looking?
 
I’ve been delving around the reference and playground, but it’s not giving me what I would consider the basics of what I’m looking for. It’s almost there, but there doesn’t seem to be anything that remotely indicates getting subscriptions or plans per client.
Subscriptions can retrieved using the /domain endpoint of the REST API. For the Service Plans you'll probably need to use the /cli endpoint and run the CLI service_plan command that way. With the /cli endpoint you can run Plesk CLI commands, which greatly increases the REST API options.

Thanks for the recommendation about the XML-RPC api. Do you have any hints on where to start looking?
It all depends on what you are looking for. Give the search function a go on the documentation page for finding specific topics. But if you are planning on using the XML-RPC API it might not be a bad idea to go over the whole documentation. Granted, it's a lot. But it's probably the best way to see what options/functions are available.

Tip: there is an API explorer extension you can install on your Plesk server. Which can greatly help you exploring the API options.
 
Back
Top