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 2FDCE200BB8 for ; Sat, 29 Oct 2016 03:49:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 242D5160AF5; Sat, 29 Oct 2016 01:49:00 +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 6E9F8160AE4 for ; Sat, 29 Oct 2016 03:48:59 +0200 (CEST) Received: (qmail 41325 invoked by uid 500); 29 Oct 2016 01:48:58 -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 41314 invoked by uid 99); 29 Oct 2016 01:48:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2016 01:48:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6C3932C001E for ; Sat, 29 Oct 2016 01:48:58 +0000 (UTC) Date: Sat, 29 Oct 2016 01:48:58 +0000 (UTC) From: "Nahappan Somasundaram (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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: Sat, 29 Oct 2016 01:49:00 -0000 Nahappan Somasundaram created AMBARI-18744: ---------------------------------------------- Summary: Ambari-server: REST API changes to GET and PUT creden= tial 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 _cred= ential_store_enabled_ values for a service:* {quote}api/v1/clusters//services?fields=3DServiceInfo/service= _name,ServiceInfo/credential_store_supported,ServiceInfo/credential_store_e= nabled{quote} *REST API support is required to PUT _credential_store_enabled_ value for a= service:* {quote}api/v1/clusters//services?ServiceInfo/service_name.in(= RANGER,HIVE) { ServiceInfo: { credential_store_enabled: =E2=80=9Ctrue=E2=80=9D } }{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=3DZOOK= EEPER -X PUT -d '{"ServiceInfo" : {"credential_store_enabled":"false"}}'{qu= ote} *REST API to get Stack definition * {quote} curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:808= 0/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/servic= es/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/servic= es/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)