Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-2711

Improve pap batch deployment API response

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Medium
    • Resolution: Not Done
    • None
    • Guilin Release
    • None

    Description

      Current :

      When multiple policies are deployed using PAP batch deployment API ( policy/pap/v1/pdps/deployments/batch ), if one of the policies deployment fails, the API responds with :

      Error Code :  400 Bad request 

      Error Message : 
      {
          "errorDetails": "\"groups\" INVALID, item has status INVALID\n  \"groups\" INVALID, item has status INVALID\n    \"group\" INVALID, item has status INVALID\n      \"deploymentSubgroups\" INVALID, item has status INVALID\n        \"group\" INVALID, item has status INVALID\n          \"policies\" INVALID, item has status INVALID\n            item \"item\" value \"null\" INVALID, null"
      {color:#de350b}}
       

      Expected : 

      When multiple policies are deployed using PAP batch deployment API, if one of the policies deployment fails, the API should respond with details of the deployed policies and undeployed policies or state that the deployment was partially successful.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              aditya.puthuparambil Aditya Puthuparambil
              aditya.puthuparambil Aditya Puthuparambil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: