Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

@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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,785 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you