...
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:
Paste the URL into a browser bar and add any additional queries.
No Format http://<host>/licenseserver/usage/api/v1.0/toolsUsage?startDate=<yyyy-MM-dd>&endDate=<yyyy-MM-dd>
- 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>:<port>/grs/pst_login_request --cookie-jar cookies.txt |
Pass the cookie in your GET request to the API endpoint.
No Format |
---|
curl -https://<host>:8443/licenseserver/usage/api/v1.0/toolsUsage --cookie-jar cookies.txt |