I'm trying to get license information (serial #, version, # users, ...) from the linux command line. Is this possible?
@Kent Anderson
Hi Kent
have you already checked the REST APi
As a user with Admin permission you could use the
/rest/api/1.0/admin/license method described at
https://docs.atlassian.com/bitbucket-server/rest/7.4.1/bitbucket-rest.html#idp46
and get a result like
{ "creationDate": 1331038800000, "purchaseDate": 1331038800000, "expiryDate": 1372493732817, "numberOfDaysBeforeExpiry": 0, "maintenanceExpiryDate": 1372493732817, "numberOfDaysBeforeMaintenanceExpiry": 0, "gracePeriodEndDate": 1372493732817, "numberOfDaysBeforeGracePeriodExpiry": 0, "maximumNumberOfUsers": 12, "unlimitedNumberOfUsers": false, "serverId": "<server ID embedded in license>", "supportEntitlementNumber": "<support entitlement number embedded in license>", "license": "<encoded license text>", "status": { "serverId": "<actual server ID>", "currentNumberOfUsers": 2 } }
Cheers
Kurt
It looks like you're new here. Sign in or register to get started.