ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-985) Support OR in API query
Date Thu, 08 Nov 2012 00:00:12 GMT
Tom Beerbower created AMBARI-985:
------------------------------------

             Summary: Support OR in API query
                 Key: AMBARI-985
                 URL: https://issues.apache.org/jira/browse/AMBARI-985
             Project: Ambari
          Issue Type: Sub-task
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


Support queries like the following ...
{code}
/api/clusters/mycluster/services/HDFS/components?ServiceComponentInfo/component_name=NAMENODE|ServiceComponentInfo/component_name=DATANODE
{code}

This should return the components where the name is NAMENODE or DATANODE ...
{code}
{
  "href" : "http://localhost:8080/api/clusters/mycluster/services/HDFS/components?ServiceComponentInfo/component_name=NAMENODE|ServiceComponentInfo/component_name=DATANODE",
  "items" : [
    {
      "href" : "http://localhost:8080/api/clusters/mycluster/services/HDFS/components/NAMENODE",
      "ServiceComponentInfo" : {
        "cluster_name" : "mycluster",
        "component_name" : "NAMENODE",
        "service_name" : "HDFS"
      }
    },
    {
      "href" : "http://localhost:8080/api/clusters/mycluster/services/HDFS/components/DATANODE",
      "ServiceComponentInfo" : {
        "cluster_name" : "mycluster",
        "component_name" : "DATANODE",
        "service_name" : "HDFS"
      }
    }
  ]
}{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message