如何检查x射线的许可证状态,并删除试用许可证?
你可以用下面的API检查你的Xray实例是否有试用许可证:
为3。x: curl -u: http:// /xray/api/v1/license {"id":" ","key":" ","license_to":"JFrog","valid_until":"UTC","license_type":"Trial"} For 2.x: curl -u : http:// /api/v1/license {"id":" ","key":" ","license_to":"JFrog","valid_until":"UTC","license_type":"Trial"} No trial license will return no data.您可以运行以下命令,通过API删除试用许可:
为7。x: curl -u: -X DELETE http:// /xray/api/v1/license {"info":"License deleted successfully"}
为6。x: curl -u: -X DELETE http:// /api/v1/license {"info":"License deleted successfully"}您可以运行以下API来检查license状态:
为7。xcurl -u: http:// /xray/api/v1/license/status {“status”:“Enterprise”} For 6.x: curl -u : http:// /api/v1/license/status {“status”:“Enterprise”}
