• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

rest api

  1. J

    Question Getting current HSTS setting status via API

    Hi, I'm looking for a way to check via the API (REST or XML) if a domain has HSTS enabled. Either I'm missing it completely or the value is just not available in any call. I know I can set it via "plesk bin extension --call sslit --hsts -enable ...", but what I'm looking for is the current...
  2. M

    Resolved Error 1014 Creating FTP User REST API

    Hi there, I want to make a user using the REST API, but I get following message { "code" : 1014, "message" : "Parser error: Request is invalid. Error in line 1: Element 'webspace-id': '0' is not a valid value of the atomic type 'id_type'." } I'm sending following data to endpoint -X...
  3. stevland

    Question Using curl to get a specific value from Remote API (REST)

    I use curl to get a DNS record from my Plesk server: curl -X GET -H 'authorization: Basic xxx' -H 'accept: application/json' 'https://example.com:8443/api/v2/dns/records/15781/' result: { "id": 15781, "type": "A", "host": "home.example.com", "value": "123.123.123.123"...
  4. V

    Issue plesk rest api client's domain

    i am using plesk rest api with php . i can creating client and i can creating subdomain . But when i check on panel my client doesn't have my created domain and when i check domain details it isn't belong my created client . How can i resolve this ?
  5. K

    Resolved How to get service plan list via REST API

    Hi, I have looked around and can't find the answer anywhere. I need to find how to list the service plans vis REST API (PHP). Anyone able to help? Thanks
  6. O

    Question Is possible delete all mailboxes at once using REST API v2?

    Hi, dear plesk community, please tell me how can i delete all mailboxes at once using REST API v2? This is the correct way to delete one mailbox but I need to delete all created mailboxes one time. # curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept...
  7. flexer88

    Question API return 401, 403 error with reseller's api key

    Hello, I'm building an application for server automation. I don't want to use admin (root) credential to create api key (too risky), so, I created a reseller for that. 1. If I using reseller's credential, I can not create API key (got 403 error) 2. If I using admin credential, I can create...
  8. A

    Resolved REST API /api/v2/cli/* returns 404

    Hi, Since I migrated my Plesk vm to a new IP, I realized the REST API calls to CLI returns 404: https://<IP_ADDRESS>:8443/api/v2/cli/commands/ returns 404 https://<host.domain.tld>:8443/api/v2/cli/commands/ returns 404 command curl -k -u 'admin:password' -X GET...
  9. M

    Question REST API One time login with redirect url

    I am trying to create an one time login that logins as an system user or redirect to a specific client or domain. In the XML API it can be done with server -> create_session, but how can i do it with the rest api (somewhere in cli??) Is it even possible??
  10. M

    Question Rest API

    Is there an possibility where i can get the traffic usage per server, customer, domain/subscription. I cannot find a way to view the traffic statistics from the last 10 minutes for example. I hope somebody has an answer for me. Kind regards, Arthur
  11. P

    Question Extend Plesk rest API with custom extension?

    Hi everyone, I am developing a Plesk extension which analyses some data of our customers. This data should be transferred to another application using an API. So as Plesk provides the v2 rest API with swagger files this is the way I want to use. The Plesk SDK gives some hint that there is a...
  12. A

    Resolved Need help adding a customer with a service plan using with REST Api/CLI method

    Hello, so I am in the process of creating a hosting website. I'm fairly new to using APIs but I have managed to successfully connect and create a user using PHP/curl. I'll just show my code as its probably a better way to show you where I am up to: So that above bit works fine, I can create a...
  13. F

    Question REST API

    Hi. Is it possible to release the REST API function to clients? Thanks
  14. B

    Issue Restrict Access to REST API

    I have an NodeJS REST API running on Ubuntu Server on port 8080 I have used ```ProxyPass``` and ```ProxyPassReverse``` to **api.domain.tdl** Can anyone help to restrict the access to ``localhost`` and Server's IP I have tried nginx conf ``` allow xx.xx.xx.xx; allow 127.0.0.1; deny all; ```...
  15. P

    Question Сhange subscription expire date via REST API

    Hi! How to change subscription expire date via REST API? Via XML - found it, via REST - no. I searched in CLI gate entry points, but there is nothing.
  16. P

    Question Plesk RESTful API. Database <---> Site

    Hi! Using the REST API, I created a customer, created a site. ### GET https://ххх.хххххх.ххх:8443/api/v2/domains X-API-Key: *******-*****-****-****-********* //Authorization: Content-Type: application/json Accept: application/json {} --- ... { "id": 23, "created": "2021-03-29"...
  17. S

    Question [REST API] Getting ERR::Connection Refused PHP

    Hello, I am trying to create a new domain through the REST API in PHP but although the call successfully creates the domain, I get ERR::Connection refused after 2-3 seconds when sending the POST Request. Since the domain gets successfully created I assume that all the parameters and json format...
Back
Top