You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Nahappan Somasundaram (JIRA)" <ji...@apache.org> on 2016/10/29 01:48:58 UTC

[jira] [Created] (AMBARI-18744) Ambari-server: REST API changes to GET and PUT credential store information

Nahappan Somasundaram created AMBARI-18744:
----------------------------------------------

             Summary: Ambari-server: REST API changes to GET and PUT credential store information
                 Key: AMBARI-18744
                 URL: https://issues.apache.org/jira/browse/AMBARI-18744
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.4.2
            Reporter: Nahappan Somasundaram
            Assignee: Nahappan Somasundaram
             Fix For: 2.5.0


*REST API support is required to GET _credential_store_supported_ and _credential_store_enabled_ values for a service:*

{quote}api/v1/clusters/<cluster_name>/services?fields=ServiceInfo/service_name,ServiceInfo/credential_store_supported,ServiceInfo/credential_store_enabled{quote}

*REST API support is required to PUT _credential_store_enabled_ value for a service:*

{quote}api/v1/clusters/<cluster_name>/services?ServiceInfo/service_name.in(RANGER,HIVE)
{
 ServiceInfo: {
  credential_store_enabled: “true”
 }
}{quote}
{quote}api/v1/clusters/testcluster/services/RANGER -X PUT -d '{"ServiceInfo" : {"credential_store_enabled":"true"}}'
{quote}
{quote}api/v1/clusters/testcluster/services?ServiceInfo/service_name=ZOOKEEPER -X PUT -d '{"ServiceInfo" : {"credential_store_enabled":"false"}}'{quote}

*REST API to get Stack definition *
{quote}
curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services
{quote}
{quote}
{
  "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services/",
    {
      "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services/YARN",
      "StackServices" : {
        "service_name" : "YARN",
        "stack_name" : "HDP",
        "stack_version" : "2.0",
        "credential_store_supported" : "false",
        "credential_store_enabled" : "false"
      }
    },
    {
      "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services/ZOOKEEPER",
      "StackServices" : {
        "service_name" : "ZOOKEEPER",
        "stack_name" : "HDP",
        "stack_version" : "2.0",
        "credential_store_supported" : "false",
        "credential_store_enabled" : "false"
      }
    }
  ]
}
{quote}



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