Comments (9)
@DaanHoogland filters are used only for list/get API or any sync API - https://github.com/apache/cloudstack-cloudmonkey/wiki/Usage#output
from cloudstack-cloudmonkey.
I know, and that could be im[proved, couldn´t it, @rohityadavcloud ?
from cloudstack-cloudmonkey.
@DaanHoogland can you suggest your use-case? we can of course keep it as feature/improvement request.
workaround - Maybe you can grab the VM's uuid and call the list API subsequently to filter stuff (I'm not sure if the deploy vm response sends the entire list VM response as expected, incl things like details etc).
from cloudstack-cloudmonkey.
I am doing a test in which I want to make sure that not all of the deploy VM commands succeed and want to get only the name and id of those VMs that do succeed. At the same time I want to see the error output of those that fail without feeding those into a grep command.
I think the second command syntax I gave in the description would be the best intuitive way to deal with this, but the first one would be the most consistent with the list APIs.
from cloudstack-cloudmonkey.
Hi guys, +1 on the improvement request
from cloudstack-cloudmonkey.
@DaanHoogland I'm working on the milestone for 6.3.0 and I'm wondering should we add this improvement. Do you have any idea how much effort it is going to take, are you willing to work on it?
from cloudstack-cloudmonkey.
@DaanHoogland to look for exact estimate and come back
from cloudstack-cloudmonkey.
So I had a look, and this will require the filter() method from the output module to be converted into a small module and to add knowledge of the possible structures of the response to be filtered. This might have to be extendible if more possible response structures come up. but initially it just needs to distinct list-responses from the requested deployVirtualMachine response. a middle sized project probably.
from cloudstack-cloudmonkey.
Guys, I will prefer that filter is supported and used only for list/get APIs as originally intended and documented - https://github.com/apache/cloudstack-cloudmonkey/wiki/Usage#output
CloudStack has 100s of async APIs, to support all of those APIs by a simple CLI would be too much of a task both in terms of implementation and testing. Perhaps filter autocompletion can be made such that it's not available for any async APIs to restrict that. cc @borisstoyanov @nvazquez
from cloudstack-cloudmonkey.
Related Issues (20)
- Log File Config Option? HOT 1
- associatednetworkid= does not autocomplete HOT 7
- verifycert option does not disable certificate signed by unknown authority error HOT 4
- Migrate to Github Actions HOT 2
- Create Role Permission Deny Rule Fails! HOT 1
- Provide "NOT" option when querying with cmk HOT 3
- Allow for CTRL-C to break the current operation HOT 6
- Allow cmk to pass * as parameter value HOT 2
- Readline issues when line goes beyond screen width HOT 1
- In CLI mode, cmk calls sync and doesn't cache it HOT 1
- Support POST method
- In CLI mode getting error: failed to authenticate, please check the credentials HOT 3
- How to run a cross-platform build? HOT 3
- hour value in the startdate,enddate parameter for command list usagerecords is ignored HOT 2
- Explore template/iso file upload from cmk
- Add support for 2FA in cmk HOT 3
- Validation for set cmd attributes (profile, url, etc)
- serviceofferingid autocomplete in deploy virtualmachine api cmd doesn't list the offering ids, instead picks some integer id
- Reverse parameter filtering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudstack-cloudmonkey.