Setting Reseller Plan Properties

The set operation is used to modify reseller plans.

 

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet which changes settings for a specified reseller plan includes the set operation node:

<packet version="1.6.3.0">
<reseller-plan>
   <set>
   ...
   </set>
</reseller-plan>
</packet>

 

The set node is presented by the ResellerTemplateSetInputType complex type (reseller_template.xsd). Its graphical representation is as follows:

 

 

Response Packet Structure

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

 

Samples

The following set request packet changes IP pool settings for two reseller plans, one specified by the ID and another by name.

<packet version="1.6.3.0">
<reseller-plan>
<set>
   <filter>
      <id>12</id>
   </filter>
   <ip-pool>
      <ip-address>192.0.2.121</ip-address>
      <ip-address>192.0.2.122</ip-address>
      <allocate-ip>2</allocate-ip>
   </ip-pool>
</set>
<set>
   <filter>
      <name>base_plan</name>
   </filter>
   <ip-pool>
      <ip-address>192.0.2.121</ip-address>
      <ip-address>192.0.2.122</ip-address>
      <allocate-ip>3</allocate-ip>
   </ip-pool>
</set>
</reseller-plan>
</packet>

Response:

<packet version="1.6.3.0">
  <reseller-plan>
    <set>
      <result>
        <status>ok</status>
        <id>81</id>
      </result>
    </set>
  </reseller-plan>
</packet>