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

Fix sub-resource names in /stacks API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1
    • None

    Description

      The /stacks api uses sub-resource names such as stackServices and serviceComponents instead of services and components which are the names of the resources specified in the URL. These incorrect resource names would need to be used in any queries for stack resources.

      For example:
      To get stack service named HDFS the URL would be:
      api/v1/stacks/HDP/versions/2.1/services/HDFS

      But, if we wanted to do a query of for HDFS services across all versions:
      api/v1/stacks/HDP/versions?stackServices/StackServices/service_name=HDFS

      Instead this should be:
      api/v1/stacks/HDP/versions?services/StackServices/service_name=HDFS

      Fix all sub-resource names that are returned and fix sub-resource names used in queries and partial response.

      Attachments

        Activity

          People

            jspeidel John Speidel
            jspeidel John Speidel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: