Forum Discussion

JustJozef's avatar
JustJozef
Icon for Cirrus rankCirrus
Jun 29, 2022
Solved

icontrol - import policy create new policy instead overwriting of old one

Hello,   I trying to import and update of policy via icontrol but instead update of current policy new policie with suffix _number is created. Steps what I have done: Files has been uploaded (pol...
  • Juergen_Mang's avatar
    Jun 30, 2022

    Try this (untested):

    {
      "fileName": "sp_test_api.json",
      "policy":{
        "fullPath": "/Common/sp_test_api_baseline",
       }
    }

    I personally do not upload the policy, but use file references:

    {
      "fileReference":{
        "link": http://webserver/policy.json
      },
      "policy":{
        "fullPath": "/Common/sp_test_api_baseline",
      }
    }