An operation getAllowedUsers returns a list of users authorized to log into CNode-slave. CNode to which request is sent must work in Master mode.
Example SOAP request:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="ns1"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getAllowedUsers> </ns:getAllowedUsers> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Example SOAP response:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="ns1"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getAllowedUsersResponse> <return> <allowedUsersList> <item>username1</item> <item>username2</item> </allowedUsersList> <requestStatus>SUCCESS</requestStatus> <requestStatusDescription>Request succeeded.</requestStatusDescription> </return> </ns:getAllowedUsersResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
The message does not require parameters.
Response parameters:
Name | Type | Description |
allowedUsersList | usernameList | the list of the users that have permissions to CNode-slaves |
Possible errors:
Error | Description |
ERR_OPERATION_NOT_ALLOWED_IN_NORMAL_MODE | the operation is not allowed in the normal mode |
ERR_OPERATION_NOT_ALLOWED_IN_SLAVE_MODE | the operation is not allowed in the slave mode |