GetSoftwareProducts

Modified on Fri, 17 Nov 2023 at 04:23 PM

Get a list of software product by one or more keywords. Can be used for Service Management solutions to import Ivanti packages with logo url and some more informations.


For ease of use, you need to import the Console-API-Module.

All documentation can also be seen in the API Module.


Parameter:Description:
uri


string, optional
web Service URL
e.g.: http://coreservername/five9sWS/five9sWS.asmx
pat

string, mandatory
the Personal Access Token
keywords  


string, mandatory
one or more keywords used to search for software products
e.g. ["adobe","zip"]
 

Get started with the following PowerShell:
Import-Module $PSScriptRoot\Console-API-Module.psm1 -Verbose -Force #you need to execute this line once, so that powershell can offer intelliSense support

# Arrange the parameters
$wsdlUrl = "http://coreserver/five9sWS.asmx?wsdl" # web service URL, you need to replace the 'coreserver' with your actual value
$pat = "879067F0F16_YourPatHere_024214A4"
$keywords = @("adobe", "zip")

# Action
Invoke-GetSoftwareProducts -uri $wsdlUrl -pat $pat -keywords $keywords

The result from the request will look like this:

Id: 123,
PackageName: 7-Zip,
SoftwareDisplayName: 7-Zip Packager,
Image: ,
Vendor: Igor Pavlov,
Installations: 121,
Cost: free,
Categories: [LGPL, Tools, Packager],
NeedsApproval: false

Id: 1234,
PackageName: Adobe,
SoftwareDisplayName: Adobe Reader,
Image: ,
Vendor: Adobe,
Installations: 59,
Cost: free,
Categories: [Tools, PDF],
NeedsApproval: false

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article