Previous page

Next page

Locate page in Contents

Print this page

clone

Summary:

Creates the specified number of exact copies of the specified Virtuozzo Container on the same Hardware Node.

Request specification:

Name

Min/Max

Type

Description

clone

1..1

 

 

{

 

 

 

eid

1..1

eid_type

The ID of the Container to clone.

count

1..1

int

The number of copies to create.

options

0..1

clone_optionsType

Cloning options.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

eid_list

1..1

eid_listType

A list containing the Server IDs of the created Containers.

Description:

In general, you can clone a running or a stopped Container. If, for any reason, a running Container cannot be cloned, you will receive an error message advising you to stop the Container first.

Example:

The following example creates three copies of the specified Container.

Input

<packet xmlns:ns4="http://www.swsoft.com/webservices/vza/4.0.0/vzatypes" xmlns:ns5="http://www.swsoft.com/webservices/vza/4.0.0/vzarelocator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.0.0">

<target>vzarelocator</target>

<data>

<vzarelocator>

<clone>

<eid>642e422d-94e8-5a4b-8a58-805f539ffb6e</eid>

<count>3</count>

<options xsi:type="ns5:clone_optionsType">

<config xsi:type="ns4:venv_configType">

<ve_root>/vz/root/$VEID</ve_root>

<ve_private>/vz/private/$VEID</ve_private>

</config>

<veid>500</veid>

<veid>501</veid>

<veid>502</veid>

</options>

</clone>

</vzarelocator>

</data>

</packet>

Output

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:ns2="http://www.swsoft.com/webservices/vza/4.0.0/vzarelocator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="6cc4656b607t5f49rd64" time="2007-05-22T15:00:31+0000" priority="4000" version="4.0.0">

<ns1:origin>vzarelocator</ns1:origin>

<ns1:target>vzclient17-1df4b04e-0d55-f246-b718-89bbc62fd371</ns1:target>

<ns1:dst>

<ns1:director>gend</ns1:director>

</ns1:dst>

<ns1:data>

<ns2:vzarelocator>

<ns2:eid_list>

<ns2:eid>c92e5d4d-6c2f-6746-a8f5-802e954f8412</ns2:eid>

<ns2:eid>466cf488-0f95-8240-be7a-d005bcbc47ed</ns2:eid>

<ns2:eid>14b9b439-16f6-eb46-9d19-4b8939a22f78</ns2:eid>

</ns2:eid_list>

</ns2:vzarelocator>

</ns1:data>

<ns1:src>

<ns1:director>gend</ns1:director>

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page