You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "serverchief (via GitHub)" <gi...@apache.org> on 2023/03/01 19:50:21 UTC

[GitHub] [cloudstack-cloudmonkey] serverchief opened a new issue, #125: Provide "NOT" option when querying with cmk

serverchief opened a new issue, #125:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/125

   Lets take listHosts as an example, when running list hosts resourcestate=Enabled state=Up, requires for end user to memorize (or lookup) and separately query other states.
   
   Perhaps we can use NOT (!) operand and do something like this?
   
   > list hosts zoneid=33333-4444-5555-1111-2222222 resourcestate=!Enabled state=!Up
   
   this would print all hosts that are NOT Enabled and NOT Up... 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] DaanHoogland commented on issue #125: Provide "NOT" option when querying with cmk

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #125:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/125#issuecomment-1451580113

   I think this is most definately an API request and not a cmk one. If to be implemented in cmk it would be part of an extension on the filter option. There is anothe request for the filter option open (also a larger feature)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] rohityadavcloud commented on issue #125: Provide "NOT" option when querying with cmk

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #125:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/125#issuecomment-1510718184

   Based on the discussion, it won't be possible to implement this feature in cmk. It's possible only if the API server (mgmt server) allow for such a feature, for now workaround may be possible by piping the cmk output to something like jq etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] rohityadavcloud closed issue #125: Provide "NOT" option when querying with cmk

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud closed issue #125: Provide "NOT" option when querying with cmk
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/125


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] rohityadavcloud commented on issue #125: Provide "NOT" option when querying with cmk

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #125:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/125#issuecomment-1451370387

   `cmk` is fundamentally a dumb CLI that just calls an API and processes the API response, and for API requests it doesn't know what a non-Enabled resourcestate could be. Instead, you can use something like jq to filter out hosts you don't need from the json response. Something like this would be a very large feature (implemented in the backend or frontend). Any PRs and other ideas are welcome!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org