Greg Hill created AMBARI-8169:
---------------------------------

             Summary: Cluster configuration API response does not follow API 
standards
                 Key: AMBARI-8169
                 URL: https://issues.apache.org/jira/browse/AMBARI-8169
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 1.7.0
            Reporter: Greg Hill


The API response for the cluster configurations returns the object's details as 
part of the top-level data structure rather than as part of the Config:

{noformat}
GET 
http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/configurations?type=cluster-env&tag=1
 
{
  "href" : 
"http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/configurations?type=cluster-env&tag=1";,
  "items" : [
    {
      "href" : 
"http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/configurations?type=cluster-env&tag=1";,
      "tag" : "1",
      "type" : "cluster-env",
      "version" : 1,
      "Config" : {
        "cluster_name" : "testcluster"
      },
      "properties" : {
        "ignore_groupsusers_create" : "false",
        "kerberos_domain" : "EXAMPLE.COM",
        "security_enabled" : "false",
        "smokeuser" : "ambari-qa",
        "smokeuser_keytab" : "/etc/security/keytabs/smokeuser.headless.keytab",
        "user_group" : "hadoop"
      }
    }
  ]
}
{noformat}

In all other cases, the details are part of the named dictionary, in this case 
that would mean the 'tag', 'type', 'version', and 'properties' keys should be 
moved to the 'Config' value.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to