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 1AE42109FB for ; Mon, 7 Sep 2015 08:40:46 +0000 (UTC) Received: (qmail 75180 invoked by uid 500); 7 Sep 2015 08:40:46 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 75132 invoked by uid 500); 7 Sep 2015 08:40:45 -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 75112 invoked by uid 99); 7 Sep 2015 08:40:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2015 08:40:45 +0000 Date: Mon, 7 Sep 2015 08:40:45 +0000 (UTC) From: "Sandor Magyari (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-12989) Blueprint: API call to create cluster instance with blueprint fails when blueprint_name is not correct MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-12989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sandor Magyari updated AMBARI-12989: ------------------------------------ Attachment: (was: BUG_12989.patch) > Blueprint: API call to create cluster instance with blueprint fails when blueprint_name is not correct > ------------------------------------------------------------------------------------------------------ > > Key: AMBARI-12989 > URL: https://issues.apache.org/jira/browse/AMBARI-12989 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 1.6.0 > Reporter: Sandor Magyari > Priority: Minor > > When creating any resource like blueprint, cluster etc, you can specify the resource name both in the Url and Json payload as well. For example in case of a blueprint creation: api/v1/blueprints/sandboxURL Json: {"Blueprints":{"blueprint_name":"sandboxJson"}}. In this case the blueprint will be created as sandboxJson so the name specified in Json will override the name specifie din the Url. The behavoir is true for cluster creation and any other resource where you can specify name in Json as well. This could be a bit misleading so the API may return an error in case of resource names don't match. -- This message was sent by Atlassian JIRA (v6.3.4#6332)