• 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.

Issue Plesk api login

Tamas Gerstner

New Pleskian
Hello

i have a problem.

server:
CentOS: 7.4.17.08
Plesk: 17.5.3#37

I want to create an FTP user with Plesk Api.
If i login the ADMINISTRATOR the response is: „error 1023 Unable to create Ftp_UserManager_Abstract object: This object can be created only in a subscription.”
if i login a other user, the response is: „error 1006 Permission denied.”

Can you help me?

regards
Tamas
 
With admin credentials, you have to use API request like

Code:
<packet>
<ftp-user>
<add>
   <name>ftpuser1</name>
   <password>jdnHHbe6Gc</password>
   <home/>
   <webspace-id>1</webspace-id>
</add>
</ftp-user>
</packet>

Just define correct webspace id there.
 
Yes, i tested it.

<packet>
<ftp-user>
<add>
<name>testusertest</name>
<password>aEaUeOkK#Ddd</password>
<quota>-1</quota>
<home/>
<webspace-id>2</webspace-id>
</add>
</ftp-user>
</packet>

i looked at, the domain's sql table.

error message: "Element 'home': This element is not expected. Expected is one of ( permissions, webspace-id, webspace-name ). "
 

Attachments

  • pic.jpg
    pic.jpg
    301.4 KB · Views: 2
quota should be after home:

Code:
<packet>
<ftp-user>
<add>
<name>testusertest</name>
<password>aEaUeOkK#Ddd</password>
<home/>
<quota>-1</quota>
<webspace-id>1</webspace-id>
</add>
</ftp-user>
</packet>
 
ok. thx, but now error message is "access denied".

I have an domain. xxx.co.uk
and subdomain: yyy.xxx.co.uk

i' trying connect to xxx.co.uk with my username and password,
but the webspace_id of the yyy.xxx.co.uk

i think, my autentication is the problem. Can i set security key in the Plesk admin?
 
What do you mean "i' trying connect to"? Do you mean connect to already created ftp account or connect for API tequest?
Anyway, you have to use admin account for sending any API requests.
 
sorry. I speak low in English.

I trying create a new FTP account with API request.
I used an Plesk account with administrator access. :(

thanx for help
 
Back
Top