Skip to main content
Skip table of contents

API - Get Accounts by Asset

Purpose

A post API to get a list of assets.

Accessing the API

XML
Endpoint: /API/APP/APP007/GetAccountsByAsset


HTTP METHOD

XML
POST


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)

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

Sample Response (JSON)

XML
{
	"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"
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.