ServerMania logo

Get Whitelist IP Details

To get details for a particular whitelist, use the following request:

GET /users/:user_id/user_white_lists/:id.xml
GET /users/:user_id/user_white_lists/:id.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/2.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/2.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