Creating New Subscriptions

Forward the webspace packet to Plesk API to create a subscription at one of the service nodes.

Creating a Subscription at a Specified Service Node

Specify the service node for the new subscription using node-id or node-ip parameters.

<packet>
  <request-settings>
    <setting>
      <name>plesk_rpc_forwarding_to_ext</name>
      <value>plesk-multi-server</value>
    </setting>
    <setting>
      <name>ext-plesk-multi-server:node-id</name>  <!-- or node-ip -->
      <value>3</value>
    </setting>
    <setting>
      <name>ext-plesk-multi-server:ipv4</name>
      <value>shared</value>
    </setting>
  </request-settings>
  <webspace>
    <add>
      <gen_setup>
        <name>sample.com</name>
        <owner-id>9</owner-id>
      </gen_setup>
      <hosting>
        <vrt_hst>
          <property>
            <name>ftp_login</name>
            <value>ftp16se4fdf0</value>
          </property>
          <property>
            <name>ftp_password</name>
            <value>qweqwe</value>
          </property>
        </vrt_hst>
      </hosting>
      <plan-name>Default domain</plan-name>
    </add>
  </webspace>
</packet>

Creating a Subscription at a Service Node Selected Automatically

Omit specifying a select service node in the request to have the new subscription placed at one of the service node automatically.

<packet>
  <request-settings>
    <setting>
      <name>plesk_rpc_forwarding_to_ext</name>
      <value>plesk-multi-server</value>
    </setting>
    <setting>
      <name>ext-plesk-multi-server:ipv4</name>
      <value>shared</value>
    </setting>
    <setting>
      <name>ext-plesk-multi-server:ipv6</name>
      <value>shared</value>
    </setting>
  </request-settings>
  <webspace>
    <add>
      <gen_setup>
        <name>sample2.com</name>
        <owner-id>3</owner-id>
      </gen_setup>
      <hosting>
        <vrt_hst>
          <property>
            <name>ftp_login</name>
            <value>faatp16se4fdf0</value>
          </property>
          <property>
            <name>ftp_password</name>
            <value>qweqwe</value>
          </property>
        </vrt_hst>
      </hosting>
      <plan-name>Default domain</plan-name>
    </add>
  </webspace>
</packet>