<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=["rest-resource-paths"])</font></div><div><font face="monospace, monospace">{</font></div><div><font face="monospace, monospace"> "outcome" => "success",</font></div><div><font face="monospace, monospace"> "result" => [{</font></div><div><font face="monospace, monospace"> "address" => [</font></div><div><font face="monospace, monospace"> ("deployment" => "batch-chunk.war"),</font></div><div><font face="monospace, monospace"> ("subsystem" => "jaxrs"),</font></div><div><font face="monospace, monospace"> ("rest-resource" => "org.jboss.example.batch.rest.BatchResource")</font></div><div><font face="monospace, monospace"> ],</font></div><div><font face="monospace, monospace"> "outcome" => "success",</font></div><div><font face="monospace, monospace"> "result" => {"rest-resource-paths" => [</font></div><div><font face="monospace, monospace"> {</font></div><div><font face="monospace, monospace"> "resource-path" => "batch/jobs",</font></div><div><font face="monospace, monospace"> "consumes" => undefined,</font></div><div><font face="monospace, monospace"> "produces" => ["application/json"],</font></div><div><font face="monospace, monospace"> "java-method" => "javax.ws.rs.core.Response org.jboss.example.batch.rest.BatchResource.listBatchJobs()",</font></div><div><font face="monospace, monospace"> "resource-methods" => ["GET /batch-chunk/rest/batch/jobs"]</font></div><div><font face="monospace, monospace"> },</font></div><div><font face="monospace, monospace"> {</font></div><div><font face="monospace, monospace"> "resource-path" => "batch/jobs/{status}",</font></div><div><font face="monospace, monospace"> "consumes" => undefined,</font></div><div><font face="monospace, monospace"> "produces" => ["application/json"],</font></div><div><font face="monospace, monospace"> "java-method" => "javax.ws.rs.core.Response org.jboss.example.batch.rest.BatchResource.listBatchJobs(@PathParam java.lang.String status)",</font></div><div><font face="monospace, monospace"> "resource-methods" => ["GET /batch-chunk/rest/batch/jobs/{status}"]</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"><<a href="mailto:lgao@redhat.com" target="_blank">lgao@redhat.com</a>></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 'query()' to filter resources according to the condition passed by 'selector' and 'where' parameters, however it does not work for complex attributes.<br>
<br>
2 example of complex attributes:<br>
<br>
- 'query()' operation cannot find which 'possible-capabilities' provides the capability with name 'org.wildfly.data-source'<br>
- It cannot find which 'rest-resource-paths' provides the REST endpoint 'resource-path=/helloworld' 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>