<div dir="ltr">The second case worked for me without an issue.<div><div><font face="monospace, monospace">[standalone@localhost:9990 /] /deployment=batch-chunk.war/subsystem=jaxrs/rest-resource=*:query(select=[&quot;rest-resource-paths&quot;])</font></div><div><font face="monospace, monospace">{</font></div><div><font face="monospace, monospace">    &quot;outcome&quot; =&gt; &quot;success&quot;,</font></div><div><font face="monospace, monospace">    &quot;result&quot; =&gt; [{</font></div><div><font face="monospace, monospace">        &quot;address&quot; =&gt; [</font></div><div><font face="monospace, monospace">            (&quot;deployment&quot; =&gt; &quot;batch-chunk.war&quot;),</font></div><div><font face="monospace, monospace">            (&quot;subsystem&quot; =&gt; &quot;jaxrs&quot;),</font></div><div><font face="monospace, monospace">            (&quot;rest-resource&quot; =&gt; &quot;org.jboss.example.batch.rest.BatchResource&quot;)</font></div><div><font face="monospace, monospace">        ],</font></div><div><font face="monospace, monospace">        &quot;outcome&quot; =&gt; &quot;success&quot;,</font></div><div><font face="monospace, monospace">        &quot;result&quot; =&gt; {&quot;rest-resource-paths&quot; =&gt; [</font></div><div><font face="monospace, monospace">            {</font></div><div><font face="monospace, monospace">                &quot;resource-path&quot; =&gt; &quot;batch/jobs&quot;,</font></div><div><font face="monospace, monospace">                &quot;consumes&quot; =&gt; undefined,</font></div><div><font face="monospace, monospace">                &quot;produces&quot; =&gt; [&quot;application/json&quot;],</font></div><div><font face="monospace, monospace">                &quot;java-method&quot; =&gt; &quot;javax.ws.rs.core.Response org.jboss.example.batch.rest.BatchResource.listBatchJobs()&quot;,</font></div><div><font face="monospace, monospace">                &quot;resource-methods&quot; =&gt; [&quot;GET /batch-chunk/rest/batch/jobs&quot;]</font></div><div><font face="monospace, monospace">            },</font></div><div><font face="monospace, monospace">            {</font></div><div><font face="monospace, monospace">                &quot;resource-path&quot; =&gt; &quot;batch/jobs/{status}&quot;,</font></div><div><font face="monospace, monospace">                &quot;consumes&quot; =&gt; undefined,</font></div><div><font face="monospace, monospace">                &quot;produces&quot; =&gt; [&quot;application/json&quot;],</font></div><div><font face="monospace, monospace">                &quot;java-method&quot; =&gt; &quot;javax.ws.rs.core.Response org.jboss.example.batch.rest.BatchResource.listBatchJobs(@PathParam java.lang.String status)&quot;,</font></div><div><font face="monospace, monospace">                &quot;resource-methods&quot; =&gt; [&quot;GET /batch-chunk/rest/batch/jobs/{status}&quot;]</font></div><div><font face="monospace, monospace">            }</font></div><div><font face="monospace, monospace">        ]}</font></div><div><font face="monospace, monospace">    }]</font></div><div><font face="monospace, monospace">}</font></div></div><div><br></div><div>The read-resource operation really does the same thing though in this case.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 12:51 AM, Lin Gao <span dir="ltr">&lt;<a href="mailto:lgao@redhat.com" target="_blank">lgao@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
  Each management resource has an operation named &#39;query()&#39; to filter resources according to the condition passed by &#39;selector&#39; and &#39;where&#39; parameters, however it does not work for complex attributes.<br>
<br>
  2 example of complex attributes:<br>
<br>
     - &#39;query()&#39; operation cannot find which &#39;possible-capabilities&#39; provides the capability with name &#39;org.wildfly.data-source&#39;<br>
     - It cannot find which &#39;rest-resource-paths&#39; provides the REST endpoint &#39;resource-path=/helloworld&#39; in jaxrs subsystem of a war deployment either.<br>
<br>
  Especially for the second case in above examples, it will be helpful for users when doing troubleshooting in case of large deployment.<br>
<br>
  Actually, it does not limit to the complex attributes, it would be good to be able to filter resources by condition specified by attribute value of nested child resources(not only by the first level of child resource).<br>
<br>
  WDYT?<br>
<br>
Best Regards<br>
<br>
--<br>
Lin Gao<br>
Software Engineer<br>
JBoss by Red Hat<br>
______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div>