Hide Forgot
Hello, we would like to know the version number of Pulp server, because we often run into issues when using incompatible API. Is there any way to get the version number from the API call? If not the status call would be nice place to add it. Thanks
This is a great suggestion, however we do not support backward compatibility of Pulp API yet. Marking this as RFE.
This feature would be great for our pulp tooling. We'd like to check if our client will work with the major and minor version of the server so we can ask our users in operations to update before attempting any API calls. Example REST call: GET /pulp/api/v2/status/ Sample 200 Response Body: {"api_version": "2.3.0"} An alternative would be to return more keys - possibly {api_version_major: "2"}, {"api_version_minor": "3"}.
I'm also hitting up against some tooling issues trying to find the right version (2.1,2.2,2.3) of REST API calls to make. Versioning the API and/or returning the version supported by the server would be very helpful.
I am working on this as part of a different story.
https://github.com/pulp/pulp/pull/1404
fixed in 2.6.0-0.4.beta
verified [root@gizmo ~]# curl -k -u admin:admin https://localhost/pulp/api/v2/status/{"known_workers": [{"last_heartbeat": "2015-01-29T13:58:18Z", "name": "scheduler.lab.eng.bos.redhat.com"}, {"last_heartbeat": "2015-01-29T13:59:02Z", "name": "reserved_resource_worker-1.lab.eng.bos.redhat.com"}, {"last_heartbeat": "2015-01-29T13:59:03Z", "name": "reserved_resource_worker-0.lab.eng.bos.redhat.com"}, {"last_heartbeat": "2015-01-29T13:59:03Z", "name": "resource_manager.lab.eng.bos.redhat.com"}], "messaging_connection": {"connected": true}, "database_connection": {"connected": true}, "api_version": "2", "versions": {"platform_version": "2.6.0"}}[root@gizmo ~]# [root@gizmo ~]# [root@gizmo ~]#
Moved to https://pulp.plan.io/issues/161