Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 10897200BB4 for ; Tue, 1 Nov 2016 21:25:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0F25F160B02; Tue, 1 Nov 2016 20:25:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4C29E160B0C for ; Tue, 1 Nov 2016 21:25:00 +0100 (CET) Received: (qmail 77263 invoked by uid 500); 1 Nov 2016 20:24:59 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 77251 invoked by uid 99); 1 Nov 2016 20:24:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2016 20:24:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2D75A2C2AB7 for ; Tue, 1 Nov 2016 20:24:59 +0000 (UTC) Date: Tue, 1 Nov 2016 20:24:59 +0000 (UTC) From: "Nahappan Somasundaram (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-18744) Ambari-server: REST API changes to GET and PUT credential store information MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 01 Nov 2016 20:25:01 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18744?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nahappan Somasundaram updated AMBARI-18744: ------------------------------------------- Status: Patch Available (was: Open) > Ambari-server: REST API changes to GET and PUT credential store informati= on > -------------------------------------------------------------------------= -- > > 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 wh= ether they support credential store backed passwords. This requires changes= in the stack definition object model. > {code} > > SERVICE_NAME > : > > true > false > > : > : > > {code} > *REST API support is required to GET _credential_store_supported_ and _cr= edential_store_enabled_ values for a service:* > {quote}api/v1/clusters//services?fields=3DServiceInfo/servi= ce_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//services?ServiceInfo/service_name.i= n(RANGER,HIVE) > { > ServiceInfo: { > credential_store_enabled: =E2=80=9Ctrue=E2=80=9D > } > }{quote} > {quote}api/v1/clusters/testcluster/services/RANGER -X PUT -d '{"ServiceIn= fo" : {"credential_store_enabled":"true"}}' > {quote} > {quote}api/v1/clusters/testcluster/services?ServiceInfo/service_name=3DZO= OKEEPER -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:8= 080/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/serv= ices/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/serv= ices/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)