Showing results for 
Show  only  | Search instead for 
Did you mean: 
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 1 of 7

ePO API Scripting Guide



One of my customers is trying to automate “exporting” certain tasks from ePO.  After reviewing the attached documentation , they have downloaded the curl https command line module for Windows.  They can make a connection into their existing ePO server and query on the command.  However, when they run the following command below they need some clarification on the command line arguments which are not clear in the guide.”

curl -k -u username:password https://localhost:8445/policy.export productID


  1. 1) What is the “productId” argument referring to specifically? Are there some examples that can be provided?
  2. 2) What is the command line option/argument to export this directly to .xml file.  Are there some examples that can be provided?
  3. 3) Are there additional commands that are no listed in the attached guide that help automate “exporting” the following tasks below that could be provided?

  • Client Tasks
  • Client Tasks Assignments
  • Policy -All
  • Policy Assignments
  • Sitelist
  • Permissions Sets
  • Security Keys
  • System Tree

Lastly, if using curl is not the preferred method to achieve this, can someone suggest how they could accomplished this without having to resort to Python?

Nevertheless, if they go the route of having to use Python, can it support scripting these tasks with your API?

Please let me know. Thank you.

6 Replies

Re: ePO API Scripting Guide


Taking a look at the help data returned from the API for the command you want to use we get:

policy.export productId [fileName]

Exports policies to an XML file in export folder

Requires view permission for at least one product


productId (param 1) - Product ID as returned by policy.find command

fileName (param 2) - Location within the export folder for the XML file to be

stored, e.g. foo.xml, foo/foo.xml, etc.

The product ID refers to the product ID in ePO, so for example Viruscan 8.8 = VIRUSCAN8800, which matches the Product folders in the software folder on the ePO server in <epoinstallfolder>\DB\Software\Current

so if you wanted to export policies for VSE for example the API call would look like:

curl -k -u username:password "https://localhost:8445/remote/policy.export?productId=VIRUSCAN8800&fileName=foo.xml"  and you should get a response like:


Exported to 'D:\reports\foo.xml'.

If you also run

curl -k -u username:password https://localhost:8445/remote/ you will get a full list of API commands available to you.



Volunteer Moderator

Certified McAfee Product Specialist - ePO

McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 3 of 7

Re: ePO API Scripting Guide

Thank you Richard.


Re: ePO API Scripting Guide

  1. ProductID is the Product code in the database, for example VSE 8.8 is ProductID VIRUSCAN8800. To export the policies you can use this URL: https://eposerver:8443/remote/policy.find?searchText=VIRUSCAN8800
  2. Output to XML, using the example above: https://eposerver:8443/remote/policy.find?searchText=VIRUSCAN8800&:output=xml (add &:output=xml to the end)
  3. Use https://eposerver:8443/remote/ to find the commands in YOUR ePO. Since the API commands are controlled by the extensions, everyone’s available commands will differ. You can then use https://eposerver:8443/remote/ (replace policy.find with your favorite) to get the options for the command.

Language preference: Any one you want. I have used C# to interface ( ) and ASP web pages with C# ( ).

Other Notes:

The API Explorer ( is old but is a big help with syntax, along with the scripting guide.

Lastly, we will be talking about the Web API at FOCUS 2015, Session 89: Advanced McAfee ePO Techniques: Making ePO Work for You!

Please mark answered if appropriate!

Level 7
Report Inappropriate Content
Message 5 of 7

Re: ePO API Scripting Guide

I wasn't able to attend FOCUS 15.  Can I get a copy of your presentation, please?


Re: ePO API Scripting Guide

Yes.  All the sessions are posted :  Presentations Login.

Please contact your sales or support manager for the login.

Level 7
Report Inappropriate Content
Message 7 of 7

Re: ePO API Scripting Guide

Thanks, Eric, but that site requires a password I don't have (presumably because I didn't attend the conference).  Is there another way to get the presentation?

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