How do I check license status for Xray, and remove trial licenses?

How do I check license status for Xray, and remove trial licenses?

AuthorFullName__c
Matthew Wang
articleNumber
000005082
ft:sourceType
Salesforce
FirstPublishedDate
2021-06-29T19:46:46Z
lastModifiedDate
2024-03-10T07:43:54Z
VersionNumber
8

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”}