Versions Compared

Key

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

...

The information on this page refers to License Statistics v6.14 and newer, which introduced stable API v3.   If you are using a version previous to v6.14, see documentation for previous versions

...

Code Block
languagebash
#!/bin/sh

curl -X POST "https://licstat-demo.x-formation.com/api/v3/admin/license-server/40/import?gather=Denials&from=2021-01-10%2015%3A10%3A00&to=2021-02-10%2019%3A13%3A23" \
-H "accept: application/json" \
-H "X-Auth-token: e765ee9c3ded6ca6e5e7f4d0d01189d0" \
-H "Content-Type: multipart/form-data" \
-F "file=@license-server.log"

Response

Import The import operation is asynchronous, and all above examples are adding the examples given above add a new task to the queue. In The "tid" key in the success response you can find unique identified contains the unique identifier of the task available under "tid" key

Code Block
{
    "success": true,
    "msg": null,
    "data": {
        "sst": "SCHEDULED",
        "ti": {
            "data": null,
            "sbtr": "Administrator",
            "sbtd": "2021-12-20 11:47:35",
            "tid": "import_527ddd6f-d7de-4854-bc99-839b5afd458e",
            "sts": "PENDING",
            "err": null
        }
    }
}

...

You can either check the status of the task periodically in the script periodically until it 's processed successfully has completed processing successfully, or simply close the script execution and wait for some time for the import allow the task to be processed completed in the background.

Task status request

...