ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nahappan Somasundaram (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-18744) Ambari-server: REST API changes to GET and PUT credential store information
Date Tue, 01 Nov 2016 20:24:59 GMT

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

Nahappan Somasundaram updated AMBARI-18744:
-------------------------------------------
    Attachment: rb53283.patch

> 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
>
>         Attachments: rb53283.patch
>
>
> *Support stack definition for credential store information*
> To support backward compatibility, services must be tagged to indicate whether they support
credential store backed passwords. This requires changes in the stack definition object model.
> {code}
> <service>
>     <name>SERVICE_NAME</name>
>       :
>     <credential-store>
>         <supported>true</supported>
>         <enabled>false</enabled>
>     </credential-store>
>       :
>       :
> </service>
> {code}
> *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)

Mime
View raw message