Univention Bugzilla – Bug 31362
direct use of UMC API
Last modified: 2024-04-17 13:19:06 CEST
RESTful, umc-command, umc-client, JSON should be documented <https://billy.knut.univention.de/websvn/filedetails.php?repname=dev&path=%2Fbranches%2Fucs-3.1%2Fucs-3.1-2%2Fmanagement%2Funivention-management-console%2Fdoc%2Fhttp.rst> <http://jenkins.knut.univention.de:8080/job/UCS-3.1-2%20Handbook%20Developer/ws/webroot/developer-reference-3.1.html#www:rest>
umc-command, umc-client should be removed - not documented.
(In reply to Florian Best from comment #1) > umc-command, umc-client should be removed - not documented. These tools are currently used by - management/univention-management-console-module-udm/umc/test-commands - test/ucs-test/tests/ - base/univention-updater/tests/test_umc-commands.sh So they SHOULD be documented UNLESS you name a replacement CLI tool INCLUDING documentation for it!
(In reply to Philipp Hahn from comment #2) > (In reply to Florian Best from comment #1) > > umc-command, umc-client should be removed - not documented. > > These tools are currently used by > - management/univention-management-console-module-udm/umc/test-commands > - test/ucs-test/tests/ > - base/univention-updater/tests/test_umc-commands.sh # git grep -n -e umc-client -e umc-command -- ':!**/debian/*' | wc -l 46
(In reply to Philipp Hahn from comment #2) > (In reply to Florian Best from comment #1) > > umc-command, umc-client should be removed - not documented. > > These tools are currently used by > - management/univention-management-console-module-udm/umc/test-commands > - test/ucs-test/tests/ > - base/univention-updater/tests/test_umc-commands.sh can be dropped. The only relevant one which we should and need to replace are: base/univention-system-setup/usr/lib/univention-system-setup/cleanup-post.d/08_activate_license: /usr/sbin/umc-command -r -U "$hostname\$" -y /etc/machine.secret udm/request_new_license -f license-request -o email="$email" services/univention-samba/scripts/addmachine.sh:/usr/sbin/umc-command -s "$ldap_master" -y /etc/machine.secret -U "$hostname$" selectiveudm/create_windows_computer -o name="$name" -o samba3_mode=True; rc=$ > So they SHOULD be documented UNLESS you name a replacement CLI tool > INCLUDING documentation for it! Here is a replacement which doesn't use UMCP but univention.lib.umc.Client: https://git.knut.univention.de/univention/ucs/-/blob/fbest/43633-unify-umc-server/management/univention-management-console/scripts/univention-management-console-client
This bug hasn't seen any update for several years. I close it. If you still see a need for it, you can reopen the bug. Please add an argumentation about why it's important to take care of it.