[
https://issues.apache.org/jira/browse/AMBARI-5981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmytro Sen reopened AMBARI-5981:
--------------------------------
Assignee: Dmytro Sen (was: Siddharth Wagle)
> Hosts API should provide count of filtered hosts
> ------------------------------------------------
>
> Key: AMBARI-5981
> URL: https://issues.apache.org/jira/browse/AMBARI-5981
> Project: Ambari
> Issue Type: Task
> Components: controller
> Affects Versions: 1.6.1
> Reporter: Siddharth Wagle
> Assignee: Dmytro Sen
> Fix For: 1.6.1
>
>
> We need the number of filtered hosts in response of query to Hosts API.
> The number should be affected by all filter properties, except "from" and
> "page_size".
> For example,
> following query:
> {noformat}
> /api/v1/clusters/c/hosts?from=0&page_size=25&Hosts/host_name.matches(host.*)
> {noformat}
> should return number of filtered hosts by host_name, but ignoring "from" and
> "page_size" parameters.
--
This message was sent by Atlassian JIRA
(v6.2#6252)