Hi Chris,
This is an open issue ...
https://issues.apache.org/jira/browse/AMBARI-1401
Currently, the query string can only be applied to the top level
resource. I think that until this issue is resolved you either need to
make multiple queries or query for all the tasks and filter the response
yourself.
--Tom
On 10/2/13 3:57 PM, Chris Mildebrandt wrote:
Hello,
I'm trying to get all the tasks that failed. Here's what I'd like to do:
curl --user admin:admin
http://localhost:8080/api/v1/clusters/cluster06/requests/?tasks/Tasks/status=FAILED
I get the following error when I do that:
"The properties [tasks/Tasks/status] specified in the request or
predicate are not supported for the resource type Request."
However, I found that this works to display the status of all the tasks:
curl --user admin:admin
http://localhost:8080/api/v1/clusters/cluster06/requests/?fields=tasks/Tasks/status
I would have thought that if I can specify the field to display, that
I can also filter on that field. If I drill down into the specific
request, I can filter on the status field:
curl --user admin:admin
http://localhost:8080/api/v1/clusters/cluster06/requests/1/tasks?Tasks/status=FAILED
Am I doing it wrong? Is there something additional I can specify in
the URL to get this to work?
Thanks,
-Chris
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.