Creating a Copy of a Service Plan

The duplicate operation is used to create a copy of the specified service plan.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet creating a copy of the specified service plan includes the duplicate operation node:

<packet>
<service-plan>
   <duplicate>
   ...
   </duplicate>
</service-plan>
</packet>

The duplicate node is presented by type DomainTemplateDuplicateInputType (domain_template.xsd). Its graphical representation is as follows:

duplicate 1650

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

 

Response Packet Structure

The duplicate node of the output XML packet is of type DomainTemplateAddOutputType (domain_template.xsd)which has the following presentation:

duplicate-output 1650

 

Samples

This packet creates the copy of the service plan with id 1234 owned by user with login name JDoe and assigns the name Plan copy to the copy.

<packet>
<service-plan>
   <duplicate>
      <filter>
         <id>1234</id>
      </filter>
      <owner-login>JDoe</owner-login>
      <duplicate-name>Plan copy</duplicate-name>
   </duplicate>
</service-plan>
</packet>

Response:

<packet>
  <service-plan>
    <duplicate>
      <result>
        <status>ok</status>
        <id>17</id>
        <guid>dea4315c-a1da-2ea7-4142-ddc42d0902f9</guid>
      </result>
    </duplicate>
  </service-plan>
</packet>