Article ID: 125009, created on Mar 24, 2015, last review on Mar 24, 2015

  • Applies to:
  • Plesk Automation 11.5

Symptoms

Subscription creation via using API fails with error like:

[root@machine ~]# curl -k -d@create_subscription.xml https://admin:<PPA_ADMIN_PASSWORD>@<PPA_MANAGEMENT_NODE_IP>:8440
curl: (35) SSL connect error

Where is create_subscription.xml contains following information:

<?xml version="1.0"?> 
<methodCall> 
  <methodName>pem.activateSubscription</methodName> 
  <params>  
    <param> 
      <value> 
         <struct>  
          <member>  
            <name>service_template_id</name> 
            <value><int>4</int></value> 
          </member> 
          <member>  
            <name>account_id</name> 
            <value><int>4</int></value> 
          </member>         
         </struct> 
      </value>  
    </param>  
  </params> 
</methodCall> 

Cause

PPA is configured to accept API connections only from allowed networks.

Resolution

Add source node IP address to the Allowed networks list:

System > Settings > Public API > Allowed Networks > Add

Search Words

pem.activateSubscription

API

Subscription creation

API does not work

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF