Versions Compared

Key

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

...

If your request is successful, you should see a response similar to the following: 

Code Block
languagejs
firstline1
linenumberstrue
  {
      success: true,
      msg: ${message},
      data: [{
        "un": ${userName},
        "hn": ${hostName},
        "ldt": ${licenseDenialTime},
        "ldtc": ${licenseDenialTotalCount}
      }]
  }


where the response fields can be explained as follows:


FieldTypeDescription

uid

integer

User Id.

un

string

Username.

hn

string

Hostname.

ldt

string

License denial time in YYYY-MM-DD HH:MM format

ldtc

string

License denial total count

msg

string

Error message returned on failure.

success

boolean

This field indicates that the API request was successfully processed.


Example 1

For example, say you would like to view denials for feature 3 over some period of time. To generate such data, enter a command that is similar to the following:

 

Code Block
languagejs
firstline1
linenumberstrue
curl --data "sd=2015-01-01" --data "ed=2015-01-02" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/3/json"