Purpose

A post API to get a list of assets.

Accessing the API

Endpoint: /API/APP/APP007/GetAccountsByAsset
XML


HTTP METHOD

POST
XML


Parameters

ParametersData TypeRequiredDescription

Filter

String

YES

All/Active/Inactive

AssetType

String

YES

 Any existing asset type

AssetHost

String

YES

IP address or host name

DBInstance

String

YES

Database instance if asset category is database

Instance

String

YES

 Instance name


Sample Request (JSON)

{
      
	"Filter":"all",
	"AssetType":"Windows Server",
	"AssetHost":"XX.XX.XX.XX",
	"DBInstance":"",
	"Instance":"XXXX"
}

XML

Sample Response (JSON)

{
	"Version":"2.3.0.0",
	"IsSuccess":true,
	"LogCode":"0",
	"Result":"
	{
	
	  "Asset": {
		"AssetCategory": "",
		"AssetType": "",
		"HostName": "XXXX",
		"IPAddress": "XXXX",
		"DBInstance": "XXXX",
		"CreatedBy": "XXXX",
		"CreatedOn": "03 Jun 2019 11:58:50 GMT 05:30:00",
		"Status": "Active"
	  },
	  "Accounts": 
	    [
			{
			  "AssetType": "Windows Server",
			  "AssetHost": "IP/HOSTANME",
			  "AccountName": "XXXX",
			  "AccountAuthenticationType": "Password",
			  "AccountType": "Local",
			  "CreatedBy": "XXXX",
			  "CreatedOn": "25 Apr 2019 11:17:12 GMT 05:30:00",
			  "Status": "Active"
			},
			{
			  "AssetType": "Windows Server",
			  "AssetHost": "IP/HOSTANME",
			  "AccountName": "XXXX",
			  "AccountAuthenticationType": "Password",
			  "AccountType": "Local",
			  "CreatedBy": "XXXX",
			  "CreatedOn": "25 Apr 2019 11:17:12 GMT 05:30:00",
			  "Status": "Active"
			}
	    ]
	}",
	"StatusCode":"Accepted",
	"Timestamp":"03 Jun 2019 11:58:50 GMT 05:30:00"
}

XML