Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9663

updateRole should return updated role as json

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.9.0
    • Future, 4.11.0.0
    • API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      updateRole does currently only return success but one would expect it returns the updated role as json like other update APIs

      Acutal results:

       $ cs updateRole id=0d6f4eca-cf71-47ba-81d9-aa129b38911b name=test --region=simulator
      {
        "success": "true"
      }
      
      

      expected resutls:

       $ cs updateRole id=0d6f4eca-cf71-47ba-81d9-aa129b38911b name=test --region=simulator
      {
        "role": {
          "id": ...
          "description": ...
          "name": ...
          "type": ...
        }
      }
      

      similar to other update api e.g. http://cloudstack.apache.org/api/apidocs-4.9/apis/updateUser.html.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              resmo Rene Moser
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: