Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC6F418587 for ; Wed, 17 Feb 2016 22:39:18 +0000 (UTC) Received: (qmail 47769 invoked by uid 500); 17 Feb 2016 22:39:18 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 47720 invoked by uid 500); 17 Feb 2016 22:39:18 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 47689 invoked by uid 99); 17 Feb 2016 22:39:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 22:39:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 72EE52C1F69 for ; Wed, 17 Feb 2016 22:39:18 +0000 (UTC) Date: Wed, 17 Feb 2016 22:39:18 +0000 (UTC) From: "Nahappan Somasundaram (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-15077) Auto-start services: Backend API and DB changes for component auto start MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15077?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nahappan Somasundaram updated AMBARI-15077: ------------------------------------------- Attachment: rb43671.patch Patch > Auto-start services: Backend API and DB changes for component auto start > ------------------------------------------------------------------------ > > Key: AMBARI-15077 > URL: https://issues.apache.org/jira/browse/AMBARI-15077 > Project: Ambari > Issue Type: Task > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Nahappan Somasundaram > Assignee: Nahappan Somasundaram > Labels: ambari-server > Fix For: 2.4.0 > > Attachments: rb43671.patch > > > Add a new field *recovery_enabled* in *servicecomponentdesiredstate* and = provide API support for PUT and GET. > *Type: PUT* > Request 1: api/v1/clusters//components?ServiceComponentInfo= /component_name.in() > Request Params: application/json > { > =09ServiceComponentInfo: { > =09=09=E2=80=9Crecovery_enabled=E2=80=9D: =E2=80=9Ctrue=E2=80=9D > =09} > } > Request 2: > api/v1/clusters//components?ServiceComponentInfo/component_= name.in() > Request Params: application/json > { > =09ServiceComponentInfo: { > =09=09recovery_enabled: =E2=80=9Cfalse=E2=80=9D > =09} > } > Request 3: > api/v1/clusters/testcluster/components/=20 > Request Params: application/json > '{"ServiceComponentInfo" : {"recovery_enabled":"false"}}' > *Type:GET* > Request: api/v1/clusters//components?fields=3DServiceCompon= entInfo/component_name,ServiceComponentInfo/service_name,ServiceComponentIn= fo/category,ServiceComponentInfo/recovery_enabled -- This message was sent by Atlassian JIRA (v6.3.4#6332)