API - Get Assets
Purpose
A post API to get a list of assets.
Accessing the API
Endpoint: /API/APP/APP007/GetAssets
HTTP METHOD
POST
Parameters
Parameters | Data Type | Required | Description |
---|---|---|---|
Filter | String | YES | All/Active/Inactive |
AssetType | String | YES | All/Any Asset type |
Instance | String | YES | Instance name |
Sample Request (JSON)
{
"Filter":"all",
"AssetType":"all",
"Instance":"Default"
}
Sample Response (JSON)
{
"Version":"2.3.0.0",
"IsSuccess":true,
"LogCode":"0",
"Result":"[
{
"AssetCategory": "Operating System",
"AssetType": "Unix Based",
"HostName": "HostName",
"IPAddress": "IPAddress",
"DBInstance": "DBInstance",
"CreatedBy": "CreatedBy",
"CreatedOn": "16 Dec 2017 13:43:20 GMT 05:30:00",
"Status": "Active"
},
{
"AssetCategory": "Directory Server",
"AssetType": "Windows Active Directory",
"HostName": "HostName",
"IPAddress": "IPAddress",
"DBInstance": "DBInstance",
"CreatedBy": "CreatedBy",
"CreatedOn": "15 Jul 2017 00:00:00 GMT 05:30:00",
"Status": "Active"
}
]",
"StatusCode":"Accepted",
"Timestamp":"03 Jun 2019 11:51:26 GMT 05:30:00"
}