Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DTPDEVEL and version 5.4.3

...

You can right-click on an endpoint to copy the URL and use it in a script. You can also query the endpoint in your browser to quickly view the data. For example: 

  1. Paste the URL into a browser bar and add any additional queries.

    Image Removed
    No Format
    http://<host>/licenseserver/usage/api/v1.0/toolsUsage?startDate=<yyyy-MM-dd>&endDate=<yyyy-MM-dd>
  2. Press the Return key to query the endpoint.

...

Send a POST request to the login page and capture the cookie. Include your credentials in the payload using the  j_username and j_password parameters. Basic authentication (-u) is not supported. 

No Format
curl -v --data 'j_username=<your_username>&j_password=<your_password>' https://<host>/grs/pst_login_request --cookie-jar cookies.txt

Pass the cookie in your GET request to the API endpoint.

No Format
curl -https://<host>/licenseserver/usage/api/v1.0/toolsUsage --cookie-jar cookies.txt