0 Replies Latest reply on Dec 8, 2016 5:49 PM by gordojd

    Policy import via API using curl

    gordojd

      Due to the size of several of our policies, I wanted to use the API and curl to import them.

      I have worked out most of the syntax, but due to there being an existing policy, I cannot get the policy to force the overwrite.

      My starting command is this:

       

      curl -k -u epo-user:epo-password https://epo-server:8888/remote/policy.importPolicy -F file=@HIP-TNI-POL-Global-201646.xml

      OK:

      There were 0 policies imported. There were 1 matching policies that were not overwritten.

       

      I cannot determine where to place the force=true or how to properly quote or paren or escape the command. Adding force=true to the end results in:

      OK:

      There were 0 policies imported. There were 1 matching policies that were not overwritten.

      curl: (6) Could not resolve host: force=true

       

      Can anyone assist with API syntax using curl? The API documentation is SORELY lacking for anyone that doesn't use python.