Previous page

Next page

Locate page in Contents

Print this page

add_group

Summary:

Adds a group to a server.

Request specification:

Name

Min/Max

Type

Description

add_group

0..[]

 

 

{

 

 

 

group

1..1

 

Group to add.

{

 

 

 

name

1..1

string

Group name.

}

 

 

 

min_gid

0..1

int

Linux Lower bound of the GID (group ID) range.

This element, together with the max_gid element (below), specifies the GID range. If there is an unused ID in the range then it will be used for the new group.

max_gid

0..1

int

Linux Upper bound of the GID range.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

group

0..[]

groupType

The new group information.

Linux Example:

Creating a new group named "TestGroup" in the specified server. The group ID will be selected from the specified GID range.

Input

<packet version="4.0.0">

<dst>

<host>9bafbeb7-85f7-499e-a210-40e00850a5f3</host>

</dst>

<target>userm</target>

<data>

<userm>

<add_group>

<group>

<name>TestGroup</name>

</group>

<min_gid>100</min_gid>

<max_gid>200</max_gid>

<create_initial_group/>

</add_group>

</userm>

</data>

</packet>

Output

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/userm" xmlns:ns3="http://www.swsoft.com/webservices/vzl/4.0.0/types" xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="0" id="2c46012676t18berf08" time="2007-03-16T22:12:46+0000" priority="0" version="4.0.0">

<ns1:origin>9bafbeb7-85f7-499e-a210-40e00850a5f3</ns1:origin>

<ns1:dst>

<director>gend</director>

<target>vzclient3</target>

</ns1:dst>

<ns1:data>

<ns2:userm>

<ns2:group xsi:type="ns3:groupType">

<ns3:gid>102</ns3:gid>

<ns3:name>TestGroup</ns3:name>

</ns2:group>

</ns2:userm>

</ns1:data>

<ns1:src>

<ns1:director>vpsd</ns1:director>

<ns1:target>userm</ns1:target>

</ns1:src>

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

</ns1:packet>

Please send us your feedback on this help page