The duplicate operation is used to create a copy of the specified add-on plan.
A request XML packet creating a copy of the specified plan includes the duplicate operation node:
<packet>
<service-plan-addon>
<duplicate>
...
</duplicate>
</service-plan-addon>
</packet>
The duplicate
node is presented by type DomainAddonTemplateDuplicateInputType (domain_addon_template.xsd
). Its graphical representation is as follows:
domain_template.xsd
). See the Available Filters section for details on this node.
Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.
The duplicate node of the output XML packet is of type DomainAddonTemplateAddOutputType (domain_addon_template.xsd
) which has the following presentation:
common.xsd
). This packet creates the copy of the add-on plan with id 1234 owned by user with login name JDoe and assigns the name Add-on copy to the copy.
<packet>
<service-plan-addon>
<duplicate>
<filter>
<id>1234</id>
</filter>
<owner-login>JDoe</owner-login>
<duplicate-name>Add-on copy</duplicate-name>
</duplicate>
</service-plan-addon>
</packet>
Response:
<packet>
<service-plan-addon>
<duplicate>
<result>
<status>ok</status>
<id>17</id>
<guid>dea4315c-a1da-2ea7-4142-ddc42d0902f9</guid>
</result>
</duplicate>
</service-plan>
</packet>