-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of Advanced Software Management #216
Comments
I started integrating it (not timeline just yet), but ran into the following thing that I don't like too much, mainly regarding the deletion of software (e.g. To delete a software item both the So my problems are:
|
@ButKor I've been playing around with this recently and this is the current interface that I put together, can you give feedback on it? Current implementationThe following shows the current implementation to give an idea of the upcoming feature. Set/replace software listc8y devices software set --device 129203 --name app --version 1.0.0 --url "http://example.com" --type apt Note: The command does not have any output Software list afterwards
List softwarec8y devices software list --device 129203
# Filtering is also supported
c8y devices software list --device 129203 --name "a*" --version "*" Output
Add software packagesAdd a single package to the existing software list on a device. c8y devices software add --device 129203 --name customApp1 --version 2.0.1 --url "http://example.com" --type apt Note: The command does not have any output Software list afterwards
Delete software packagesDelete a single package from the existing software list on a device. c8y devices software delete --device 129203 --name customApp1 --version "2.0.1" Note: The command does not have any output Software list afterwards
Open questionsHandling multiple packages is not so niceAt the moment the commands only work for a single package as it relies on Option 1: Accept csv values for a flag, and allow it be provided multiple times Support a c8y devices software set --device 12345 --software "app1,1.0.0" --software "app2,2.0.0,,apt" The only thing I don't like about this is that it is not very explicit. |
Thanks for looking into it - I like it! Just few comments:
|
Yes, the microservice seems to work fine with also using the
I would avoid this if possible as other commands don't currently do this (with the exception of delete commands). However no response does not always indicate that something was done. For example in the Also I just tested the
Ok I will put together something along those lines. The csv field order |
With 10.14 the 'Advanced Software Management Microservice' got introduced to Cumulocity. It can be used to:
GET /service/advanced-software-mgmt/software?deviceId=<deviceId>
POST /service/advanced-software-mgmt/software?deviceId=<deviceId>
PUT /service/advanced-software-mgmt/software?deviceId=<deviceId>
DELETE /service/advanced-software-mgmt/software?deviceId=<deviceId>
See details in docs here: https://cumulocity.com/guides/reference/device-management-library/#advanced-software-management.
=> Would be benefitial to support this new service in go-c8y-cli. Maybe with a c8y devices software sub-command?
The text was updated successfully, but these errors were encountered: