1. Home
  2. Corporate Node
  3. SOAP requests
  4. addAllowedUsers

addAllowedUsers

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:

ParameterTypeDescriptionRequired?
newAllowedUsersusernameListlist of user logins which are to be added to list of users permitted to log into CNode-slaveYes

 

Response parameters:

nametypedescription
requestStatusstringresult of request
requestStatusDescriptionstringstatus description

 

Possible errors:

errordescription
ERR_OPERATION_NOT_ALLOWED_IN_NORMAL_MODEoperation is not allowed when CNode is in normal mode. CNode must be in master mode
ERR_OPERATION_NOT_ALLOWED_IN_SLAVE_MODEoperation is not allowed when CNode is in slave mode. CNode must be in normal or master mode
ERR_INVALID_ALLOWED_USER_LISTuser list is invalid
Was this article helpful to you? Yes No

How can we help?