Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12989

Blueprint: API call to create cluster instance with blueprint fails when blueprint_name is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 1.6.0
    • None
    • ambari-server
    • None

    Description

      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.

      Attachments

        1. AMBARI-12989.patch
          4 kB
          Magyari Sandor Szilard

        Activity

          People

            smagyari Magyari Sandor Szilard
            smagyari Magyari Sandor Szilard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: