cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 8

How to USe mcafee Web API

Hi Team ,

Please let us know how to use McAfee WEB API command.

Will use in powerShell command or browser.

As per Attached screenshot how to install API_Explorer browser.

7 Replies
cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 8

Re: How to USe mcafee Web API

Please review the web api guide.

https://docs.mcafee.com/bundle/epolicy-orchestrator-web-api-reference-guide/page/GUID-2503B69D-2BCE-...

 

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 8

Re: How to USe mcafee Web API

Thanks For the quick response .

I have this link for reference , want to know where to use on CMD or browser of EPO yeah on rremote machine.

 

Also Need help how to install API_explorer browser  to use api command .

For detail pls see the attachment.

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 8

Re: How to USe mcafee Web API

API explorer was for epo 4.6 - I doubt if it would support 5.10, as schemas have changed drastically.  I could be wrong, however, but I don't believe it is something we would support any longer.  Curl commands would be in cmd, but you can also run commands via browser, such as this and the others.

https://localhost:8443/remote/core.help

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Former Member
Not applicable
Report Inappropriate Content
Message 5 of 8

Re: How to USe mcafee Web API

Hi Team ,

I am using  API command in command prompt usin curl but its showing invalid argument for below two command

 

1)  repository.checkInPackage

curl -k -u admin:p@ssw0rd https://mcafeegui:8443/remote/repository.checkInPackage packageLocation <C:\ImportPackage\Web_Control_10.7.0.2208.7_Client.Zip> evaluation
 
2) core.addUser
curl -k -u admin:p@ssw0rd https://mcafeegui:8443/remote/core.addUser userName=epotest password=Airbus fullName=
Test user
 
Please let us know how to use the syntax
 
cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 6 of 8

Re: How to USe mcafee Web API

For the package one, take off the brackets < > .

For the user, the web api guide I pointed you to has this as example:

Specify arguments followed by =<> by name. For example, the argument fullName= must be included in this
command, core.addUser("ga", "ga", fullName="Joe Tester")

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Former Member
Not applicable
Report Inappropriate Content
Message 7 of 8

Re: How to USe mcafee Web API

Hello!

Any luck with how the command is executed correctly?

I am also facing issues with syntax 
ex: curl.exe -k -v -u user:password https://IP:8443/remote/core.addUser(userName user1 password user1 password [admin=True])

Curl: (6) Could not resolve host: Unlicensed Version

ePO is licensed and curl.exe was testing within a windows and linux environment

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 8 of 8

Re: How to USe mcafee Web API

I am not sure about the curl commands, but the url should be this as an example:

https://localhost:8443/remote/core.addUser?userName=testapi&password=mcafee&admin=true

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

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