We should document how to use the :query management CLI operation. The only place we mention it is in the table of management CLI commands and the description "Query a resource." is not very helpful.
Let's add a section on how to construct a proper query. There may be a better description of it somewhere, but it seems that it is useful for retrieving information from the management API when there isn't a nice operation for the information that you want, or perhaps for scripting.
One example, below, is for querying the status of a batch job. The batch-processing quickstart can be used to make this query work.
/deployment=batch-chunk.war/subsystem=batch-jberet/job=*/execution=*:query(where=["batch-status","COMPLETED"])
- blocks
-
JBEAP-4962 EAP7 Management CLI Guide issues tracker
- Closed