Web Service API for ITAM


 

Web Service API for IT Asset Management provides support for integration with third party applications to get discovery and inventory information, post software installation job and get the software/script package information.

The following table provides the list of web service API's and their functions, a detailed explanation of which is provided below.

 

 Service API

Web Service API Format

Post

Description

 

GetITAMInfo

GetITAMInfo

Post

Get the discovery, inventory, software and VM information

GetPackageInfo

GetPackageInfo

Post

Get the software or script package information

PostSWJob

PostSWJob

Post

Post the software deployment job

GetJobStatus

GetJobStatus

Post

Get the jobs status

 

 

Steps to be followed to execute ITAM web service api:

1. Unzip the ITAM.war.zip file and place the folder ITAM.war in the “<SapphireIMSInstall location>\WebManagement\standalone\deployments\”. Unzip the ITAM.war.zip file and place the folder ITAM.war in the “<SapphireIMSInstall location>\WebManagement\standalone\deployments\”

 

2.  Place the "ITAM_web_service.wsdl" file inside the <SapphireIMSInstall location>\WebManagement\standalone\deployments\ITAM.war\WEB-INF\classes\com\tkd\webclientsrc directory

 

image3.gif

 

3. Manually create the ITAM.war.dodeploy file for ITAM web service

 

image4.gif

 

4. Enable the global settings key "Notify Integration Server" to 1

 

webservice_step3.gif

 

Web Service API GetITAMINfo

This web service method is used to get the following data for a node:

Input parameters:

nSiteID:

SiteID of the SapphireIMS probe. If the setup is SapphireIMS professional setup, then “SiteID” will always be “1”

 

nSystemID:

SystemID of the node for which inventory and software information is required

 

bIsNormalizationReq:

Set the flag to true when the normalized software field is required

 

strNormalizationField:

Software is normalized for Manufacturer, Category, Type and Product. Any one of these fields can be mentioned to get the normalized software list

 

Note:

VM Status Code

Status Code

Status Description

0

The entity definitely has a problem

1

The entity might have a problem

2

The status is unknown

3

The entity is OK

 

Web Service API GetPackageInfo

This web service method is used to get the available package list (ID) and the package information

 

Input Parameters:

nSiteID: SiteID of the node

nPackageType: Type of the package (1- Software, 2- Script)

Note: Package distribution for Linux system can be done using script package type

nType: Type of action (1- Query the available packageID, 2- Query the package information)

List<nPackageID>: Pass the packageid in the list if it requires the package information to be passed (i.e. when nType = 2 )otherwise ignore

URL: http://localhost/ITAM/Automation?wsdl

 

Web Service API PostSWJob

This web service method is used to post the software deployment job to the given nodes

 

Input Parameters:

nSiteID: SiteID of the node

JobInfo<strKey, strValue>: Job parameters information

Jobpriority: Pass the priority for the job

SystemIDLIST: List of system ids to which the job needs to be posted

URL: http://localhost/ITAM/Automation?wsdl

 

Note: Fill the Job parameters in “JobInfo”structure. Here “strKey” parameter will specify the type of the job, e.g. for software deployment job the “strkey” is “SWPKGID” and “strValue” will be “packageid” of the software package.

If the job posted properly then the return parameter will contain the scheduler id of the posted job. In case of failure, it will return the error description for the job failure.

The response will have the systemID for which the package is applicable out of requested systemIDs

Example: If there are 2 Linux machines with systemID 1,2 and one windows system with systemID 3 and during package distribution if ssh script package is selected (which is only applicable for Linux systems) then windows systems will be ignored ( systemID 3 in this case)

 

Web Service API GetJobStatus

This web service is used to get the job status

Input Parameters:

nSiteID: SiteID of the node

nSchedulerID: SchedulerID of the Job

JobIDList: JobId of the job

URL: http://localhost/ITAM/Automation?wsdl

UI operation to trigger Inventory Sync

 

image5.gif

 

a) Click Notify Integration Server to trigger inventory sync for selected nodes
b) Click Bulk Notify Integration Server to trigger inventory sync for all the nodes

 

image9.gif

 

Notes: 1. In  case wsdl file (ITAM_web_service.wsdl) changes, place the file in the folowing location

<Installed Path>SapphireIMS\WebManagement\standalone\deployments\ITAM.war\WEB-INF\classes\com\axiossystems\integration\itam

2. In case SapphireIMS MSP edition is installed, please manually change the db.properties file to reflect MySqlIMSMSP. The db.properties file is present in the following location:

<Installed Path>SapphireIMS\WebManagement\standalone\deployments\ITAM.war\WEB-INF\classes\com\tkd\database