Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4190

Management CLI guide: Document how to use the query operation

XMLWordPrintable

      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"])
      

            dmichael@redhat.com David Michael (Inactive)
            rhn-support-ahoffer Andrea Hoffer
            Petr Kremensky Petr Kremensky (Inactive)
            Petr Kremensky Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: