• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Suspend/Unsuspend domain API RPC

L

lolpopl

Guest
Hi,
i can't find how to suspend or unsuspend with the API RPC on PHP.
What is the XML structure?

Thanks a lot.
 
It is allowed in overusage aspect. More details in API RPC 1.6.3.4 Reference Guide.
 
So i would to setup in webspace something like



<limits>
<overuse>block</overuse>
<limit>
????????
</limit>
<limits>

but what in place of ????????? ?
If i want to immediate suspend domain without change of it's settings.
 
unable to find suspend / unsuspend option

I too am interested in a solution. Concerns plesk 10.4.4 Update #12 and API version 1.6.3. You should be able to use the API to just suspend a user or a domain. As an alternative set allowed traffic to zero?

Rik
 
set traffic to zero?

to suspend a domain account this should work, setting traffic to zero? OK is returned but domain status unlimited traffic does not help. What am I missing here?

<packet version="1.6.3.0">
<webspace>
<set_traffic>
<dom_id>55</dom_id>
<date>2012-01-18</date>
<smtp_in>0</smtp_in>
<smtp_out>0</smtp_out>
<pop3_imap_in>0</pop3_imap_in>
<pop3_imap_out>0</pop3_imap_out>
</set_traffic>
</webspace>
</packet>
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<webspace>
<set_traffic>
<result>
<status>ok</status>
<id>55</id>
</result>
</set_traffic>
</webspace>
</packet>
 
Back
Top