Previous page

Next page

Locate page in Contents

Print this page

get_user

Summary:

Retrieves the specified user information.

Request specification:

Name

Min/Max

Type

Description

get_user

0..[]

 

 

{

 

 

 

user

0..1

 

The user to get the info for. If this element is omitted, the information about all existing users will be retrieved.

{

 

 

 

uid

0..1

int

User ID.

name

0..1

string

User name.

}

 

 

 

}

 

 

 

Returns:

Name

Min/Max

Type

Description

user

0..[]

userType

User information.

Example:

Retrieving the user root details from the specified server.

Input:

<packet version="4.0.0" id="2">

<dst>

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

</dst>

<target>userm</target>

<data>

<userm>

<get_user>

<user>

<name>root</name>

</user>

</get_user>

</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="4c46012874t4ae1rf08" time="2007-03-16T22:18:22+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:user xsi:type="ns3:userType">

<ns3:uid>0</ns3:uid>

<ns3:name>root</ns3:name>

<ns3:initial_group>

<ns3:gid>0</ns3:gid>

<ns3:name>root</ns3:name>

</ns3:initial_group>

<ns3:group>

<ns3:gid>0</ns3:gid>

<ns3:name>root</ns3:name>

</ns3:group>

<ns3:group>

<ns3:gid>1</ns3:gid>

<ns3:name>bin</ns3:name>

</ns3:group>

<ns3:group>

<ns3:gid>2</ns3:gid>

<ns3:name>daemon</ns3:name>

</ns3:group>

<ns3:group>

<ns3:gid>3</ns3:gid>

<ns3:name>sys</ns3:name>

</ns3:group>

<ns3:group>

<ns3:gid>4</ns3:gid>

<ns3:name>adm</ns3:name>

</ns3:group>

<ns3:group>

<ns3:gid>6</ns3:gid>

<ns3:name>disk</ns3:name>

</ns3:group>

<ns3:group>

<ns3:gid>10</ns3:gid>

<ns3:name>wheel</ns3:name>

</ns3:group>

<ns3:shell>/bin/bash</ns3:shell>

<ns3:home_dir>/root</ns3:home_dir>

<ns3:comment>root</ns3:comment>

</ns2:user>

</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