Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5C531076D for ; Sat, 31 May 2014 06:19:01 +0000 (UTC) Received: (qmail 31732 invoked by uid 500); 31 May 2014 06:19:01 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 31700 invoked by uid 500); 31 May 2014 06:19:01 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 31692 invoked by uid 99); 31 May 2014 06:19:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 May 2014 06:19:01 +0000 Date: Sat, 31 May 2014 06:19:01 +0000 (UTC) From: "Siddharth Wagle (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-5981) Hosts API should provide count of filtered hosts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Siddharth Wagle created AMBARI-5981: --------------------------------------- Summary: 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: Siddharth Wagle 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)