license methods

get_license_info (EE only)

get_license_info(apiuser)

Returns the RhodeCode Enterprise license information.

Parameters:apiuser (AuthUser) – This is filled automatically from the Authentication Token.

Example output:

id : <id_given_in_input>
result : {
  'rhodecode_version': <rhodecode version>,
  'token': <license token>,
  'issued_to': <license owner>,
  'issued_on': <license issue date>,
  'expires_on': <license expiration date>,
  'type': <license type>,
  'users_limit': <license users limit>,
  'key': <license key>
}
error :  null

set_license_key (EE only)

set_license_key(apiuser, key)

Sets the RhodeCode Enterprise license key.

Parameters:
  • apiuser (AuthUser) – This is filled automatically from the Authentication Token.
  • key (str) – This is the license key to be set.

Example output:

id : <id_given_in_input>
result: {
          "msg" : "updated license information",
          "key": <key>
        }
error:  null

Example error output:

id : <id_given_in_input>
result : null
error :  {
  "license key is not valid"
  or
  "trial licenses cannot be uploaded"
  or
  "error occurred while updating license"
}