...
If your request is successful, you should see a response similar to the following:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
success: true,
msg: ${message},
data: [{
"un": ${userName},
"hn": ${hostName},
"ldt": ${licenseDenialTime},
"ldtc": ${licenseDenialTotalCount}
}]
} |
where the response fields can be explained as follows:
Field | Type | Description |
---|---|---|
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
curl --data "sd=2015-01-01" --data "ed=2015-01-02" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/3/json" |