Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
firstline1
linenumberstrue
{
success: true, 
messagemsg: ${message}, 
data: [{
  uid: ${userId}, 
  un: ${userName},
  hn: ${hostName},
  sst: ${sessionStartTime},
  set: ${sessionEndTime},
  il: ${hasUserLdapDetails}
}]
}

...

FieldTypeDescription
uidintegerUser Id.
unstringUsername.
hnstringHostname.
sststringDate returned in YYYY-MM-DD HH:MM format; for example, 2016-01-20 11:00.
setstringDate returned in YYYY-MM-DD HH:MM format (for example, 2016-01-20 11:00), "Unknown", or "Still in use".
ilbooleanThis field indicates whether user details have been imported from LDAP directory. Note that you cannot filter and order data by this field.
messagemsgstringError message returned on failure.
successbooleanThis field indicates that the API request was successfully processed.

...

Code Block
languagejs
firstline1
linenumberstrue
  curlcurl --data "limit=100" --data "offset=0" --data-urlencode "sdt=2015-10-30 00:00" -H "X-Auth-token: token" "http://yourdomain/api/report/user-history/3/json"

...

Code Block
languagejs
firstline1
linenumberstrue
{success: true, messagemsg: ${message}, data: [
  uid: ${userId}, 
  un: ${userName},
  hn: ${hostName},
  sst: ${sessionStartTime},
  set: ${sessionEndTime},
  il: ${hasUserLdapDetails}
]}

...

FieldTypeDescription
uidintegerUser Id.
unstringUsername.
hnstringHostname.
sststringDate returned in YYYY-MM-DD HH:MM format; for example, 2016-01-20 11:00.
setstringDate returned in YYYY-MM-DD HH:MM format (for example, 2016-01-20 11:00), "Unknown", or "Still in use".
ilbooleanThis field indicates whether user details have been imported from LDAP directory. Note that you cannot filter and order data by this field.
messagemsgstringError message returned on failure. 

...