Project

General

Profile

Actions

User story #13654

closed

Add rudder server version to the Rest API (system/info endpoint)

Added by Thomas CAILHE about 6 years ago. Updated almost 6 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Hi,

A few day ago I have a discussion on gitter on the possibility to add something in the API for get the version of the rudder server.

Here the chat:

@Oyabi
oct. 11 17:33
So i've got another question. Is it possible to get the rudder server version via the API?
Francois Armand
@fanf
oct. 11 17:55
hum no. This is not very smart
@Oyabi would you mind opening a ticket (user story) with that? And if you have other ideas of information that you may need: https://www.rudder-project.org/redmine/projects/rudder/issues/new
Oyabi
@Oyabi
oct. 11 17:58
well... there is the version number (4.3) on the login screen so I think it's not completly useless :D
ok i'll do it tomorrow
i try to write an interface for made autoregistration of our machine available
actually i've got 2 thing, my interface (nodejs) and a bash script
the bash script is executed on servers and install rudder agent
it can be cool if i can use something like that
echo "deb http://www.rudder-project.org/apt-$rudder_version/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/rudder.list
where $rudder_version is the same as the server version
i must go i'll be back tomorrow if you have question or suggestion
Francois Armand
@fanf
oct. 11 18:03
bye
I need to go too
Oyabi
@Oyabi
oct. 11 18:03
;) bye
Oyabi
@Oyabi
oct. 12 08:54
Hi, I'm back. So it's not possible I guess but I don't really know why. Usage of the API is limited by the identification token. If you don't have token you can't have access to information. If you have access to API you can delete node, rules, directives, etc. I guess get the server version is not to bad with this environment :)
Nicolas Charles
@ncharles
oct. 12 09:34
we are missing the version in the API
however, command 'rudder agent info' gives the version
you can use and parse this info
Oyabi
@Oyabi
oct. 12 09:38
ok i will do that, but do you planning on add this to the api in future version ?
Nicolas Charles
@ncharles
oct. 12 09:43
this would make a lot of sense to add it - can you create a ticket explaining the use case (and which format would be best) ?
Oyabi
@Oyabi
oct. 12 09:44
ok no problem ;)
Nicolas Charles
@ncharles
oct. 12 09:56
thank you !@

I think you understand but if it is not the case do not hesitate to ask me other information.

Regards.


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #13934: Missing documentation for API "version info"ReleasedVincent MEMBRÉActions
Actions #1

Updated by François ARMAND about 6 years ago

  • Translation missing: en.field_tag_list set to community

This is very small since we have all information in RudderConfig.{rudderMajorVersion, rudderFullVersion, currentYear, builtTimestamp} (since 4.1). We just need to know where to put it.

Actions #2

Updated by François ARMAND about 6 years ago

  • Tracker changed from Question to User story
  • Status changed from New to In progress
  • Assignee set to François ARMAND
  • Target version changed from Ideas (not version specific) to 4.3.7

Let's do that in 4.3!

Actions #3

Updated by François ARMAND about 6 years ago

curl -H "X-API-Token:  001vl4eL8p3YqvwefVbaJLdy8DyEt7Vw" -X GET 'https://..../rudder/api/latest/system/info'  | jq .
{
  "action": "getSystemInfo",
  "result": "success",
  "data": {
    "rudder": {
      "major-version": "4.3",
      "full-version": "4.3.7-SNAPSHOT",
      "build-time": "2018-11-13T10:51:59Z" 
    }
  }
}
Actions #4

Updated by François ARMAND about 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/2070
Actions #5

Updated by Rudder Quality Assistant about 6 years ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND
Actions #6

Updated by François ARMAND about 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by Vincent MEMBRÉ almost 6 years ago

  • Subject changed from [API] Can you add rudder server version to the API ? to Add rudder server version to the Rest API (system/info endpoint)
Actions #8

Updated by Vincent MEMBRÉ almost 6 years ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog
Actions #9

Updated by François ARMAND almost 6 years ago

  • Related to Bug #13934: Missing documentation for API "version info" added
Actions

Also available in: Atom PDF