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

Also available in: Atom PDF