Retrieving Information on Reseller Accounts

The get operation is used to retrieve information on reseller account settings. 

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet retrieving information on reseller accounts from Plesk database includes the get operation node:

<packet>
<reseller>
   <get>
   ...
   </get>
</reseller>
</packet>

 

The get node is presented by the ResellerGetInput type (reseller.xsd). Its graphical representation is as follows:

 

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The get node of the response packet is structured as follows:

ResellerGetOutput

The data node is structured as follows:

The stat node is structured as follows:

 

 

Samples

To retrieve information on reseller account, specify the packet as follows:

<packet version="1.6.0.0">
<reseller>
   <get>
      <filter>
          <id>1324</id>
      </filter>
      <dataset>
          <gen-info/>
          <stat/>
          <permissions/>
          <limits/>
          <ippool/>
      </dataset>
   </get>
</reseller>
</packet>

Response:

<packet version="1.6.3.0">
  <reseller>
    <get>
      <result>
        <status>ok</status>
        <filter-id>2</filter-id>
        <id>2</id>
        <data>
	       <subscriptions>
            <subscription>
              <locked>false</locked>
              <synchronized>true</synchronized>
              <plan>
                <plan-guid>b9808ead-875a-c30f-d9bf-eb03ad12c89c</plan-guid>
              </plan>
              <plan>
                <plan-guid>f42428e7-9078-5ed8-50de-fd5ecfb5ecc6</plan-guid>
              </plan>
            </subscription>
          </subscriptions>

        </data>
      </result>
    </get>
  </reseller>
</packet>

To send a similar packet for multiple reseller accounts, use the packet as follows:

<packet version="1.6.0.0">
<reseller>
   <get>
      <filter>
          <id>1324</id>
          <id>1325</id>
      </filter>
      <dataset>
          <gen-info/>
          <stat/>
          <permissions/>
          <limits/>
          <ippool/>
      </dataset>
   </get>
</reseller>
</packet>