Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 8
Report Inappropriate Content
Message 1 of 2

How to import a Endpoint Security Firewall policy using the Web API (and curl)

I issued this command:

Z:\curl-7.69.1-win64-mingw\bin>curl -k -u sysadmin:pwd https://localhost:8443/remote/policy.importPolicy?file=z:\curl-7.69.1-win64-mingw\bin\McAfee_

It runs, silently, but there is no output and my policy is not imported.  I also don't know how to use the force option.


The curl help from EPO indicated the command is run like so:

policy.importPolicy file [force] - Imports policies


Web API (that gave the above command) is retrieved like so:

curl -k -u sysadmin:pwd https://localhost:8443/remote/


Anyone know how to do this or what I am doing wrong?

1 Reply

Re: How to import a Endpoint Security Firewall policy using the Web API (and curl)



I am also stuck with this problem. Only clue i saw is when you put -v in your curl command it tells me that there is an error 400 Bad Request.


Did you find anything since then?

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community