ServerMania logo

Get List of Whitelist IPs

To get the list of IPs entered to the list, use the following request:

GET /users/:user_id/user_white_lists.xml
GET /users/:user_id/user_white_lists.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/users/8/user_white_lists.xml 

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/users/8/user_white_lists.json 

XML Output Example

      <description>My IP</description>


created_at - the date when this record in DB was created

description - an optional description

id - the record ID

ip - the IP from which this user can log in to CP

updated_at - the date when this record in DB was updated

user_id - the ID of a user for whom this whitelist was created