Operation addAllowedUsers add user to list of users allowed to log into CNode-slave.
If CNde is working in slave mode, user can run copy of his application on it, but before he has to get permission from CNode-master.
CNode-master can permit user to use slave using addAllowedUsers. When user gets permission from CNode-master
he will be able to log on slaves connected to this CNode-master.
Example SOAP request:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="ns1">
<soapenv:Header/>
<soapenv:Body>
<ns1:addAllowedUsers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<newAllowedUsers xsi:type="ns1:allowedUserList">
<!--Zero or more repetitions:-->
<item xsi:type="ns1:allowedUser">
<username xsi:type="xsd:string">user1</username>
</item>
<item xsi:type="ns1:allowedUser">
<username xsi:type="xsd:string">user2</username>
</item>
</newAllowedUsers>
</ns1:addAllowedUsers>
</soapenv:Body>
</soapenv:Envelope>
Request parameters:
Parameter | Type | Description | Required? |
---|---|---|---|
newAllowedUsers | usernameList | list of user logins which are to be added to list of users permitted to log into CNode-slave | Yes |
Response parameters:
name | type | description |
---|---|---|
requestStatus | string | result of request |
requestStatusDescription | string | status description |
Possible errors:
error | description |
---|---|
ERR_OPERATION_NOT_ALLOWED_IN_NORMAL_MODE | operation is not allowed when CNode is in normal mode. CNode must be in master mode |
ERR_OPERATION_NOT_ALLOWED_IN_SLAVE_MODE | operation is not allowed when CNode is in slave mode. CNode must be in normal or master mode |
ERR_INVALID_ALLOWED_USER_LIST | user list is invalid |