You can check if your Xray instance has a trial license with the below API:
For 3.x:
curl -u<username>:<password> http://<jfrog-url>/xray/api/v1/license
{"id":"<id>","key":"<key>","license_to":"JFrog","valid_until":"UTC","license_type":"Trial"}
For 2.x:
curl -u<username>:<password> http://<xray_URL>/api/v1/license
{"id":"<id>","key":"<key>","license_to":"JFrog","valid_until":"UTC","license_type":"Trial"}
No trial license will return no data.
You can run the below to remove a trial license via API:
For 7.x:
curl -u<username>:<password> -X DELETE http://<jfrog-url>/xray/api/v1/license
{"info":"License deleted successfully"}
For 6.x:
curl -u<username>:<password> -X DELETE http://<xray_URL>/api/v1/license
{"info":"License deleted successfully"}
You can run the below API to check the license status:
For 7.x
curl -u<username>:<password> http://<jfrog-url>/xray/api/v1/license/status
{“status”:“Enterprise”}
For 6.x:
curl -u<username>:<password> http://<xray_URL>/api/v1/license/status {“status”:“Enterprise”}