You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2012/11/08 01:06:11 UTC

[jira] [Updated] (AMBARI-985) Support OR in API query

     [ https://issues.apache.org/jira/browse/AMBARI-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Beerbower updated AMBARI-985:
---------------------------------

    Attachment: AMBARI-985.patch
    
> 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
>         Attachments: AMBARI-985.patch
>
>
> 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