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

ePolicy Orchestrator web API JSON

Jump to solution

Hello,

Is there a reason why the ePolicy Orchestrator Web API JSON output is being output in the incorrect JSON format? There is a lot of unnecessary garbage in the Content, which is not part of the JOSN syntex.

StatusCode        : 200
StatusDescription : 
Content           : OK:
                    [ "ComputerMgmt.AddVirtualMacVendorCommand vendorId vendorNote - Add Virtual MAC\r\nVendor with given ID and note.", "ComputerMgmt.GetVirtualMacVendorCommand vendorId - Get 
                    Virtual MAC Vendor det...
RawContent        : HTTP/1.1 200 
                    Cache-Control: no-cache,no-store
                    Expires: Wed, 18 Aug 2021 15:47:03 GMT
                    Set-Cookie: JSESSIONIDSSO=0C09E8520517A; Path=/; Secure; HttpOnly,JSESSIONID=26F973736CF67B0...
Forms             : {}
Headers           : {[Cache-Control, no-cache,no-store], [Expires, Wed, 18 Aug 2021 15:47:03 GMT], [Set-Cookie, JSESSIONIDSSO=0C09E517A; Path=/; Secure; 
                    HttpOnly,JSESSIONID=26F204FCEFF33F3AC4B.route1; Path=/remote; Secure; HttpOnly], [Pragma, no-cache]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : System.__ComObject
RawContentLength  : 8912

 

OK:
[ "ComputerMgmt.AddVirtualMacVendorCommand vendorId vendorNote - Add Virtual MAC\r\nVendor with given ID and note.", "ComputerMgmt.GetVirtualMacVendorCommand vendorId - Get Virtual MAC Vendor detail
\r\nfor the given ID.", "ComputerMgmt.ListAllVirtualMacVendorsCommand - Lists all Virtual MAC Vendors\r\nconfigured.", "ComputerMgmt.createAgentDeploymentUrlCmd deployPath groupId urlName\r\nagentVe
rsionNumber agentHotFix [edit] [ahId] [fallBackAhId] - Create Agent\r\nDeployment URL Command", "ComputerMgmt.createCustomInstallPackageCmd deployPath [ahId] [fallBackAhId] -\r\nCreate Custom Instal
l Package Command", "ComputerMgmt.createDefaultAgentDeploymentUrlCmd tenantId - Create Default\r\nNon-Editable Agent Deployment URL Command", "DxlClient.queryRegisteredServices [serviceGuid=\u003c\u
003e] [serviceType=\u003c\u003e]\r\n[brokerGuid=\u003c\u003e] [timeout=\u003c\u003e] - Returns a list of DXL Registered Services", "clienttask.export [productId] [fileName] - Exports client tasks", 
"clienttask.find [searchText] - Finds client tasks", "clienttask.importClientTask importFileName - Imports client tasks from an XML\r\nfile.", "clienttask.run names productId taskId [retryAttempts] 
[retryIntervalInSeconds]\r\n[abortAfterMinutes] [useAllAgentHandlers] [stopAfterMinutes] [randomMinutes]\r\n[timeoutInHours] - Runs the client task on a supplied list of systems", "clienttask.syncSh
ared - Shares client tasks with participating registered\r\nservers", "commonevent.purgeEvents queryId [unit] [purgeType] - Deletes threat events based\r\non age or a queryId. The query must be tabl
e-based.", "commonevent.purgeProductEvents queryId [unit] [purgeType] - Purge Client Events\r\nby Query ID or age.", "core.executeQuery queryId [database=\u003c\u003e] - Executes a SQUID query and r
eturns the\r\nresults", "core.help [command] [prefix=\u003c\u003e] - Displays a list of all commands and help\r\nstrings.", "core.listDatatypes [type] - Displays all registered datatypes and operati
ons for\r\nthose types that the user is permitted to see.", "core.listQueries - Displays all queries that the user is permitted to see.", "core.listTables [table] - Displays all SQUID tables that th
e user is permitted\r\nto see.", "detectedsystem.add sourceID sourceType MAC IPAddress [IPSubnet] [IPSubnetMask]\r\n[dnsName] [OSPlatform] [OSFamily] [OSVersion] [domain] [netbiosName]\r\n[netbiosCo
mment] [users] [agentGUID] [detectedTime] [externalID] - Adds a\r\nDetected System.", "detectedsystem.addToTree UIDs branchNodeID [allowDuplicates] [dirSort] - Add\r\ndetected systems to the System 
Tree", "detectedsystem.delete UIDs - Deletes Detected Systems", "detectedsystem.deleteByAge age unit - Deletes all Detected Systems older than a\r\ngiven age", "detectedsystem.find searchText - Find
 Detected Systems", "detectedsystem.markAsException [UIDs] [unmark] [category] - Adds Detected\r\nSystems to the exceptions list", "eeadmin.administratorRecovery challengeCode recoveryType [userId] 
- Drive\r\nEncryption Administrator Recovery", "eeadmin.assignUser systemNode nodeId dn [recursive] [ldapServerName] - Drive\r\nEncryption user\u002fgroup assignment", "eeadmin.changeUserPassword us
erDn newPassword [oldPassword] - Drive Encryption\r\nchange user\u0027s password", "eeadmin.clearSSO userDn osType - Drive Encryption clear user SSO details.", "eeadmin.deassignUser dn dnType [syste
mNode] [nodeId] [ldapServerId] - Drive\r\nEncryption user\u002fgroup de-assignment", "eeadmin.enableSystemTransfer [enable] [maxUsers] [searchOrder] - Drive\r\nEncryption system transfer.", "eeadmin
.exportMachineKey [machineId] [keyCheck] [oldKeys] - Drive Encryption\r\nexport machine key", "eeadmin.listRegisteredServers [serverType] - Obtain a list of registered\r\nservers", "eeadmin.resetSel
fRecovery userDn - Drive Encryption reset users self-recovery\r\ntoken.", "epo.getVersion - Gets the McAfee ePO version", "epo.purgeComplianceHistory queryId [unit] - Purges compliance events by que
ry or\r\nage", "epo.syncDirectory [syncPointList] - Synchronizes Domains\u002fAD", "epogroup.findSystems groupId [searchSubgroups] - Find computers within a given\r\ngroup in the McAfee ePO tree", "
frp.ldap.sync.task.cmd.name - FRP: Process Key Assignments", "frp.upgrade.task.cmd.name - frp.upgrade.task.system.command.short-desc", "policy.assignToGroup groupId productId objectId [resetInherita
nce] - Assigns\r\npolicy to the specified group", "policy.assignToSystem names productId typeId objectId [resetInheritance] -\r\nAssigns the policy to a supplied list of systems", "policy.export pro
ductId [fileName] - Exports policies", "policy.find [searchText] - Finds all policies that the user is permitted to see\r\nthat match the given search text.", "policy.importPolicy file [force] - Imp
orts policies", "policy.syncShared - Shares policies with participating registered servers", "repository.checkInPackage packageLocation branch [option] [force] - Checks\r\npackage into the Master Re
pository", "repository.deletePackage productId packageType branch - Deletes Package from the\r\nMaster Repository", "repository.export [fileName] - Exports repositories", "repository.find [searchTex
t] - Finds all repositories that the user is permitted\r\nto see that match the given search text.", "repository.findPackages [searchText] - Finds Packages", "repository.importRepositories file repo
sitoryType [overwrite] - Imports\r\nrepositories", "repository.pull sourceRepository targetBranch moveToPrevious productList - Pulls\r\npackages from the source repository and puts them into the Mas
ter Repository", "repository.replicate [repositoryList] [incremental] - Replicate", "rsd.updateOUIs [ouiURL=\u003c\u003e] [ouiFileName=\u003c\u003e] -\r\ncommand.rsd.updateOUIs.desc.short-desc", "rs
d.updateOs - command.rsd.updateOs.desc.short-desc", "system.addToSensorBlacklist UIDs - Adds managed systems to the Rogue System\r\nSensor blacklist", "system.applyTag names tagName - Assigns the gi
ven tag to a supplied list of\r\nsystems", "system.clearTag names tagName [all] - Clears the tag from supplied systems", "system.delete names [uninstall] [uninstallSoftware] - Deletes systems from t
he\r\nSystem Tree by name or ID.", "system.deployAgent names username [password] [agentPackage] [skipIfInstalled]\r\n[suppressUI] [forceInstall] [installPath] [domain] [useAllHandlers]\r\n[primaryAg
entHandler] [retryIntervalSeconds] [attempts] [abortAfterMinutes]\r\n[includeSubgroups] [useSsh] [inputSource] - Deploys an agent to the given list\r\nof systems", "system.excludeTag names tagName -
 Excludes the tag from supplied systems", "system.exportTag [fileName] - Export Tags", "system.find searchText [searchNameOnly] - Finds systems in the System Tree", "system.findGroups [searchText] -
 Finds groups in the System Tree", "system.findTag [searchText] - Find Tags", "system.importSystem names branchNodeID [allowDuplicates] [uninstallRemoved]\r\n[pushAgent] [pushAgentForceInstall] [pus
hAgentSkipIfInstalled]\r\n[pushAgentSuppressUI] [pushAgentInstallPath] [pushAgentPackagePath]\r\n[pushAgentDomainName] [pushAgentUserName] [pushAgentPassword] [deleteIfRemoved]\r\n[flattenTreeStruct
ure] - Imports systems", "system.importTag uploadFile [force] - Imports Tags", "system.move names parentGroupId [autoSort] - Moves systems to the specified\r\ndestination group.", "system.resort nam
es - Resorts the systems in the System Tree", "system.runTagCriteria tagID [resetTaggedSystems] - The Run Tag Criteria action\r\nevaluates every managed system against the tag\u0027s criteria.", "sy
stem.setUserProperties names [description] [customField1] [customField2]\r\n[customField3] [customField4] - Sets user properties on the given system", "system.transfer names epoServer - Transfers sy
stems to a different McAfee ePO\r\nserver", "system.wakeupAgent names [fullProps] [superAgent] [randomMinutes]\r\n[forceFullPolicyUpdate] [useAllHandlers] [retryIntervalSeconds] [attempts]\r\n[abort
AfterMinutes] [includeSubgroups] - Wakes up the agent on a supplied list\r\nof systems", "tasklog.listMessages taskLogId - Lists the messages for the specified task log\r\nentry", "tasklog.listSubta
sks taskLogId - Lists subtasks of a specified task log entry", "tasklog.listTaskHistory [taskName] [taskSource] [maxRows] [age] [unit] - Lists\r\ntask log entries, optionally filtered by task name, 
task ID, or task source", "tasklog.listTaskSources - Lists the task sources", "tie.refreshGtiReputation [gtiFile] [gtiCert] - JSON string for GTI file or GTI\r\ncertificate with Base64-encoded hash 
values", "tie.removeAtdReputations [fileReps] - JSON string for file or certificate\r\nreputations with Base64 encoded hash values", "tie.removeExternalReputations [fileReps] - JSON string for file 
or certificate\r\nreputations with Base64 encoded hash values", "tie.setReputations [fileReps] [certReps] - JSON string for file or certificate\r\nreputations with Base64 encoded hash values" ]

 Thanks

1 Solution

Accepted Solutions
PhatSlav
Level 8
Report Inappropriate Content
Message 10 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

What I got out of the whole thing is that it took you guys a whole week just to tell me that you see the issue and acknowledge it, but you won't fix it. It's up to the other devs that is pulling that data to parse through the garbage output and get it cleaned up.

 

Even a simple site like google.com has its objects in the correct order with the correct outputs:

invoke-webrequest 'https://www.google.com/'


StatusCode        : 200
StatusDescription : OK
Content           : <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en"><head><meta content="Search the world's information, including webpages, images, videos   
                    and more. Google has many speci...
RawContent        : HTTP/1.1 200 OK
                    X-XSS-Protection: 0
                    X-Frame-Options: SAMEORIGIN
                    Cache-Control: private, max-age=0
                    Content-Type: text/html; charset=UTF-8
                    Date: Mon, 23 Aug 2021 20:41:41 GMT
                    Expires: -1
                    P3P: CP=...
Forms             : {f}
Headers           : {[X-XSS-Protection, 0], [X-Frame-Options, SAMEORIGIN], [Cache-Control, private, max-age=0], [Content-Type, text/html; charset=UTF-8]...}
Images            : {@{innerHTML=; innerText=; outerHTML=<IMG id=hplogo style="PADDING-BOTTOM: 14px; PADDING-TOP: 28px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px" alt=Google
                    src="/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png" width=272 height=92>; outerText=; tagName=IMG; id=hplogo; style=PADDING-BOTTOM: 14px;  
                    PADDING-TOP: 28px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; alt=Google; src=/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png; width=272;        
                    height=92}, @{innerHTML=; innerText=; outerHTML=<IMG src="https://www.google.com/images/hpp/logo-gsa-ios-color-3x-ios-512dp.png" width=48 height=48>; outerText=;
                    tagName=IMG; src=https://www.google.com/images/hpp/logo-gsa-ios-color-3x-ios-512dp.png; width=48; height=48}}
InputFields       : {@{innerHTML=; innerText=; outerHTML=<INPUT type=hidden value=en name=hl>; outerText=; tagName=INPUT; type=hidden; value=en; name=hl}, @{innerHTML=; innerText=;
                    outerHTML=<INPUT type=hidden value=hp name=source>; outerText=; tagName=INPUT; type=hidden; value=hp; name=source}, @{innerHTML=; innerText=; outerHTML=<INPUT
                    type=hidden name=biw>; outerText=; tagName=INPUT; type=hidden; name=biw}, @{innerHTML=; innerText=; outerHTML=<INPUT type=hidden name=bih>; outerText=; tagName=INPUT;     
                    type=hidden; name=bih}...}
Links             : {@{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Search</SPAN>; innerText=Search; outerHTML=<A id=gb_1 class="gbzt gbz0l gbp1"
                    href="https://www.google.com/webhp?tab=ww"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Search</SPAN></A>; outerText=Search; tagName=A; id=gb_1; class=gbzt gbz0l gbp1;       
                    href=https://www.google.com/webhp?tab=ww}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Images</SPAN>; innerText=Images; outerHTML=<A id=gb_2 class=gbzt
                    href="https://www.google.com/imghp?hl=en&amp;tab=wi"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Images</SPAN></A>; outerText=Images; tagName=A; id=gb_2; class=gbzt;        
                    href=https://www.google.com/imghp?hl=en&amp;tab=wi}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Maps</SPAN>; innerText=Maps; outerHTML=<A id=gb_8 class=gbzt    
                    href="https://maps.google.com/maps?hl=en&amp;tab=wl"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Maps</SPAN></A>; outerText=Maps; tagName=A; id=gb_8; class=gbzt;
                    href=https://maps.google.com/maps?hl=en&amp;tab=wl}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Play</SPAN>; innerText=Play; outerHTML=<A id=gb_78 class=gbzt   
                    href="https://play.google.com/?hl=en&amp;tab=w8"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Play</SPAN></A>; outerText=Play; tagName=A; id=gb_78; class=gbzt;
                    href=https://play.google.com/?hl=en&amp;tab=w8}...}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 49151

 

Also, if you are going to call an output switch JSON and/or XML, and all you get is garbage, then maybe you need to stop calling the output JSON and/or XML.

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

View solution in original post

9 Replies
cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

I am not familiar with json output.  What is the unnecessary content you are talking about?

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?

PhatSlav
Level 8
Report Inappropriate Content
Message 3 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

I shouldn't have to parse out random "OK:" and random brackets from a JSON output.

 

OK:
[ 
 ]

 

 

 

https://www.w3schools.com/js/js_json_syntax.asp

 

{"name":"John"}

 

https://jsonlint.com/

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

Re: ePolicy Orchestrator web API JSON

Jump to solution

I was talking to dev about this and they requested a couple of things.

1.  the actual command you are running

2.  har file output (https://kc.mcafee.com/corporate/index?page=content&id=KB93583)

They said that some of that looks like just http responses, but also that not all commands in the api support json outputs.  So it would be helpful to have the info above.

Let me know if any of that info would contain any sensitive info.  If so, I will give you my email to send it privately.

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?

PhatSlav
Level 8
Report Inappropriate Content
Message 5 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

Here is the partial PS command that I use in my program:

$url = 'https://server:8443/remote/system.find?searchText='
$computer 'device'
$output = '&:output=json'
$data = invoke-webrequest $url$computer$output -credential $creds | select-object -expandproperty 'content'
$data

And here is the Output:

OK:
[ { "EPOComputerProperties.ParentID" : 396, "EPOComputerProperties.ComputerName" : "device", "EPOComputerProperties.Description" : "user", "EPOComputerProperties.ComputerDescripti
on" : "2fA", "EPOComputerProperties.TimeZone" : "Eastern Standard Time", "EPOComputerProperties.DefaultLangID" : "04", "EPOComputerProperties.UserName" : "user", "EPOComputerProperties.Domain
Name" : "domain", "EPOComputerProperties.IPHostName" : "domain", "EPOComputerProperties.IPV6" : "ipv6", "EPOComputerProperties.IPAddress" : "ipv4", "EPOComputerProperties.IPSubnet" : "ipv6", "EPOComputerProperties.IPSubnetMask" : "ipv6", "EPOComputerProperties.IPV4x" : 03, "EPOComputerProperties.I
PXAddress" : "2fA", "EPOComputerProperties.SubnetAddress" : "ipv4", "EPOComputerProperties.SubnetMask" : "255.255.255.255", "EPOComputerProperties.NetAddress" : "5555555", "EPOComputer
Properties.OSType" : "Windows 10", "EPOComputerProperties.OSVersion" : "10.0", "EPOComputerProperties.OSCsdVersion" : "", "EPOComputerProperties.OSBuildNum" : 455, "EPOComputerProperties.OSPlatfor
m" : "Workstation", "EPOComputerProperties.OSOEMID" : "00330", "EPOComputerProperties.CPUType" : "Intel(R) Core(TM) i5", "EPOComputerProperties.CPUSpeed" : 1800
, "EPOComputerProperties.NumOfCPU" : 4, "EPOComputerProperties.CPUSerialNumber" : "N", "EPOComputerProperties.TotalPhysicalMemory" : 6666, "EPOComputerProperties.FreeMemory" : 68899, "EPOComputerProperties.FreeDiskSpace" : 455, "EPOComputerProperties.TotalDiskSpace" : 244, "EPOComputerProperties.IsPortable" : 1, "EPOComputerProperties.Vdi" : 0, "EPOComputerProperties.OS
BitMode" : 1, "EPOComputerProperties.LastAgentHandler" : 4, "EPOComputerProperties.UserProperty1" : "", "EPOComputerProperties.UserProperty2" : "", "EPOComputerProperties.UserProperty3" : "", "EPOCo
mputerProperties.UserProperty4" : "", "EPOComputerProperties.UserProperty5" : "", "EPOComputerProperties.UserProperty6" : "", "EPOComputerProperties.UserProperty7" : "", "EPOComputerProperties.UserP
roperty8" : "", "EPOComputerProperties.Free_Space_of_Drive_C" : 677, "EPOComputerProperties.Total_Space_of_Drive_C" : 4455, "EPOLeafNode.Tags" : "AMER", "EPOLeafNode.ExcludedTags" : "", "EPOLeafNode.LastUpdate" : "2021-08-18T23:08:50+02:00", "EPOLeafNode.ManagedState" : 1, "EPOLeafNode.AgentGUID" : "D09A", "EPOLeafNode.AgentVersion" : "5.7.3.245", "EPOBranchNode.AutoID" : 5444 } ]

It keeps adding the "OK:" and the two brackets to the content.

PhatSlav
Level 8
Report Inappropriate Content
Message 6 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

The same thing happens in Python:

b'OK:\r\n[ "ComputerMgmt.AddVirtualMacVendorCommand vendorId vendorNote - Add Virtual MAC......

The "OK:" and the "[" bracket are there.

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 7 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

Ok, but please also get har file.

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?

PhatSlav
Level 8
Report Inappropriate Content
Message 8 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

Attached are the .hars files.

Edit: It looks like the hars file has sensitive data. Can you post that email address? Thanks

Also, similar thing happens with the XML output.

 

 

OK:
<?xml version="1.0" encoding="UTF-8"?><result><list><element>ComputerMgmt.AddVirtualMacVe.......

 

 

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 9 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

Here is the response from dev. 

The platform can handle jsonifying some output types, like strings, ok, or failure, or simple javabeans, but if if the output of the remote command is more complex, it is on the author of the command to help the framework by providing an implementation. Not many such command do, so support for json and xml output format is spotty at best.

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?

PhatSlav
Level 8
Report Inappropriate Content
Message 10 of 10

Re: ePolicy Orchestrator web API JSON

Jump to solution

What I got out of the whole thing is that it took you guys a whole week just to tell me that you see the issue and acknowledge it, but you won't fix it. It's up to the other devs that is pulling that data to parse through the garbage output and get it cleaned up.

 

Even a simple site like google.com has its objects in the correct order with the correct outputs:

invoke-webrequest 'https://www.google.com/'


StatusCode        : 200
StatusDescription : OK
Content           : <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en"><head><meta content="Search the world's information, including webpages, images, videos   
                    and more. Google has many speci...
RawContent        : HTTP/1.1 200 OK
                    X-XSS-Protection: 0
                    X-Frame-Options: SAMEORIGIN
                    Cache-Control: private, max-age=0
                    Content-Type: text/html; charset=UTF-8
                    Date: Mon, 23 Aug 2021 20:41:41 GMT
                    Expires: -1
                    P3P: CP=...
Forms             : {f}
Headers           : {[X-XSS-Protection, 0], [X-Frame-Options, SAMEORIGIN], [Cache-Control, private, max-age=0], [Content-Type, text/html; charset=UTF-8]...}
Images            : {@{innerHTML=; innerText=; outerHTML=<IMG id=hplogo style="PADDING-BOTTOM: 14px; PADDING-TOP: 28px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px" alt=Google
                    src="/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png" width=272 height=92>; outerText=; tagName=IMG; id=hplogo; style=PADDING-BOTTOM: 14px;  
                    PADDING-TOP: 28px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; alt=Google; src=/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png; width=272;        
                    height=92}, @{innerHTML=; innerText=; outerHTML=<IMG src="https://www.google.com/images/hpp/logo-gsa-ios-color-3x-ios-512dp.png" width=48 height=48>; outerText=;
                    tagName=IMG; src=https://www.google.com/images/hpp/logo-gsa-ios-color-3x-ios-512dp.png; width=48; height=48}}
InputFields       : {@{innerHTML=; innerText=; outerHTML=<INPUT type=hidden value=en name=hl>; outerText=; tagName=INPUT; type=hidden; value=en; name=hl}, @{innerHTML=; innerText=;
                    outerHTML=<INPUT type=hidden value=hp name=source>; outerText=; tagName=INPUT; type=hidden; value=hp; name=source}, @{innerHTML=; innerText=; outerHTML=<INPUT
                    type=hidden name=biw>; outerText=; tagName=INPUT; type=hidden; name=biw}, @{innerHTML=; innerText=; outerHTML=<INPUT type=hidden name=bih>; outerText=; tagName=INPUT;     
                    type=hidden; name=bih}...}
Links             : {@{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Search</SPAN>; innerText=Search; outerHTML=<A id=gb_1 class="gbzt gbz0l gbp1"
                    href="https://www.google.com/webhp?tab=ww"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Search</SPAN></A>; outerText=Search; tagName=A; id=gb_1; class=gbzt gbz0l gbp1;       
                    href=https://www.google.com/webhp?tab=ww}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Images</SPAN>; innerText=Images; outerHTML=<A id=gb_2 class=gbzt
                    href="https://www.google.com/imghp?hl=en&amp;tab=wi"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Images</SPAN></A>; outerText=Images; tagName=A; id=gb_2; class=gbzt;        
                    href=https://www.google.com/imghp?hl=en&amp;tab=wi}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Maps</SPAN>; innerText=Maps; outerHTML=<A id=gb_8 class=gbzt    
                    href="https://maps.google.com/maps?hl=en&amp;tab=wl"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Maps</SPAN></A>; outerText=Maps; tagName=A; id=gb_8; class=gbzt;
                    href=https://maps.google.com/maps?hl=en&amp;tab=wl}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Play</SPAN>; innerText=Play; outerHTML=<A id=gb_78 class=gbzt   
                    href="https://play.google.com/?hl=en&amp;tab=w8"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Play</SPAN></A>; outerText=Play; tagName=A; id=gb_78; class=gbzt;
                    href=https://play.google.com/?hl=en&amp;tab=w8}...}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 49151

 

Also, if you are going to call an output switch JSON and/or XML, and all you get is garbage, then maybe you need to stop calling the output JSON and/or XML.

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

View solution in original post

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