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

Improve pap batch deployment API response

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Not Done
    • Icon: Medium Medium
    • Guilin Release
    • None
    • None

      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.

       

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

              Created:
              Updated:
              Resolved: