Previous page

Next page

Locate page in Contents

Print this page

add

Summary:

Adds a Hardware Node to a Virtuozzo group.

Request specification:

Name

Min/Max

Type

Description

add

 

 

 

{

 

 

 

conn_info

1..1

connection_infoType

The Slave Node connection information.

master

0..1

connectivity_infoType

The Master Node connection information.

This parameter should be used when master node has more than one IP address. For example, this parameter should be set when the master and the Slave Nodes are located in the same private network and should communicate using IP addresses other than those exposed to the external network.

If Master Node has more than one IP address but this parameter is not set, the Master will select the address randomly.

force

0..1

none

Forcibly add a Node to the group even if it's already registered with another group.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

eid

1..1

eid_type

The Server ID of the Node that you just added to the Virtuozzo group.

Description:

The call adds a Slave Node to the Virtuozzo group by registering it with the Master Node. The call must be executed on the Master Node.

The server_group interface does not have a separate call that creates a Virtuozzo group. A group is created and configured automatically as soon as you execute at least one successful add request. The Node on which you execute the call becomes the Master Node. To add more Nodes to the Group, execute the add request for each one of them. There can be only one Master Node in a Virtuozzo group.

Example:

Input

<packet version="4.0.0">

<target>server_group</target>

<data>

<server_group>

<add>

<conn_info>

<protocol>SSL</protocol>

<address>192.168.0.250</address>

<login>

<name>dnphZG1pbg==</name>

</login>

<password>MXEzNl</password>

<port>4434</port>

</conn_info>

</add>

</server_group>

</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/vzl/4.0.0/server_group" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ec45d1b013t26e9rd54" time="2007-02-12T06:26:17+0000" priority="0" version="4.0.0">

<ns1:origin>server_group</ns1:origin>

<ns1:target>vzclient3</ns1:target>

<ns1:dst>

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

</ns1:dst>

<ns1:data>

<ns2:server_group>

<ns1:ok/>

</ns2:server_group>

</ns1:data>

<ns1:src>

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

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page