cancel
Showing results for 
Search instead for 
Did you mean: 
Reliable Contributor Daniel_S
Reliable Contributor
Report Inappropriate Content
Message 1 of 3

WebAPI tagging via ID not working

Jump to solution

Hey fellas,

I have a Powershell Script that´s doing some tasks on a ePO 5.9.1.

One of these parts is tagging systems with a supplied TAG.

We were successful using it with systemnames but now are in the need of using the Agent GUID.

According to the API itselt it says:

OK:
system.applyTag names tagName
Assigns the given tag to a supplied list of systems. System list can contain
names, IP addresses or IDs.
Requires Tag use permission
Parameters:
 [names (param 1) | ids] - You need to either supply the "names" with a
comma-separated list of names/ip addresses or a comma-separated list of "IDs".
 [tagName (param 2) | tagID] - You need to either supply the tag name or the tag
ID.

So we can either suppy the systems with names=SYSTEMNAME or with ids=ID.

As I found no other IDs and the GUID makes absolutely sense in the meaning of being unique I asume that the GUID is meant here.

https://ePO-IP:Port/remote/system.applyTag?ids=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&tagName=test

I always get the following error:

Error 0 :
For input string: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

 The string is correct and when searched in ePO leads me to the corresponding system.

Doing the part manually direct in the browser gives me the same result: Error.

Any ideas?

Best regards
Dan
2 Solutions

Accepted Solutions
McAfee Employee cdinet
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: WebAPI tagging via ID not working

Jump to solution
ID would refer to the ID of the system in the epoleafnode table in the database, not the agent guid.

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?

Highlighted
McAfee Employee JoeBidgood
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: WebAPI tagging via ID not working

Jump to solution

To add to this, the ID you want can be found using the system.find command: the ID is returned as the "System Location" value.

2 Replies
McAfee Employee cdinet
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: WebAPI tagging via ID not working

Jump to solution
ID would refer to the ID of the system in the epoleafnode table in the database, not the agent guid.

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?

Highlighted
McAfee Employee JoeBidgood
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: WebAPI tagging via ID not working

Jump to solution

To add to this, the ID you want can be found using the system.find command: the ID is returned as the "System Location" value.

More McAfee Tools to Help You

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