Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to get license information from the linux command line?

Kent Anderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 29, 2021

I'm trying to get license information (serial #, version, # users, ...) from the linux command line.  Is this possible?

1 answer

1 accepted

0 votes
Answer accepted
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 29, 2021

@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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events