cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the UIDs in the detectedsystem.delete API endpoint

I am getting computer details from epo via powershell and in return receive a computer name with 'ParentID' for a certain computer. Is this the 'UID' mentioned in the epo API description, or should I look for something else? AgentUID? Thanks.
12 Replies
aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 13

Re: What is the UIDs in the detectedsystem.delete API endpoint

it depends what you are querying, this could be the group ID but if is not then please look at the DB schema where this info is explained, the doc is below and is a registered doc:

https://kc.mcafee.com/agent/index?page=content&id=KB91051

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?

 

Re: What is the UIDs in the detectedsystem.delete API endpoint

I am querying epo computers. This is the output I am getting with powershell for a certain computer:

ParentID : 404PARENTID
ComputerName : NAME
Tags : TAGS
LastUpdate : 10/08/2021 08:55:01
ManagedState : True
AgentGUID : e1fb0e0c-ad56-11e9-1313-1866GUID

ParentID : 417PARENTID
ComputerName : NAME
Tags : TAGS
LastUpdate : 10/08/2021 10:14:21
ManagedState : True
AgentGUID : 795118c2-96d1-11eb-1c65-1803GUID

 

What I need next is to pass something to the https://server:18005/remote/detectedsystem.delete?UIDs=xxxxx

 

aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 13

Re: What is the UIDs in the detectedsystem.delete API endpoint

if you are quering ComputerProperties then thats the: Primary Key: References the EPOLeafNode AutoID  as define on the shared DB schema

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?

Re: What is the UIDs in the detectedsystem.delete API endpoint

thanks,

 

and what if I want to avoid querying the DB and extract the autoID via api? 

 

 

--------

 

sorry, this is not this it - autoID for this computer matches the ParentID I extracted via API.

 

When I try to execute https://SERVER:18005/remote/detectedsystem.delete?UIDs=417105

I get the 'OK' returned from server but this particular computer still exists in system tree. 

aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 6 of 13

Re: What is the UIDs in the detectedsystem.delete API endpoint

when querying any properties by any means, the UI or API you are actually queuing the properties stored on the DB

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?

Re: What is the UIDs in the detectedsystem.delete API endpoint

I've edited the previous post, but you have replied since. 

 

Copying here for visibility:

 

sorry, this is not this it - autoID for this computer matches the ParentID I extracted via API.

 

When I try to execute https://SERVER:18005/remote/detectedsystem.delete?UIDs=417105

I get the 'OK' returned from server but this particular computer still exists in system tree. 

Long2
Level 7
Report Inappropriate Content
Message 8 of 13

Re: What is the UIDs in the detectedsystem.delete API endpoint

You can lookup users by external UID and provider: ... was successfully, 404 if the resource was not found or 409 if the user cannot be soft deleted.
 

Re: What is the UIDs in the detectedsystem.delete API endpoint

Thanks for chiming in - we are talking about the computers, not users. 

aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 10 of 13

Re: What is the UIDs in the detectedsystem.delete API endpoint

sorry i got a bit confused, if the end goal is to delete the system then you should use:

https://eposerver:8443/remote/detectedsystem.delete?names=COMPUTERNAME

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