Purpose
To get a list of discovered assets using Sectona API interface.
Accessing the API
Endpoint: /API/APP/APP007/GetDiscoveredAssets
CODE
|
HTTP METHOD
Parameters
Parameters | Data Type | Required | Description |
---|
DiscoveryJobTitle | String | OPTIONAL | Account Discovery Job Title (optional) |
DiscoveredInLastDays | String | YES | Discovered In Last Days |
Instance | String | YES | Instance Name |
Sample Request (JSON)
{
"DiscoveryJobTitle":"String",
"DiscoveredInLastDays":"String",
"Instance":"String",
}
CODE
|
Sample Response (JSON)
{
"Version":"3.8.0.0",
"IsSuccess":true,
"LogCode":"0",
"Result":"
{
"Assets":
[
{
"Asset Type":"String",
"Host Name":"String",
"IP Address":"String",
"Vaulted":"String",
"Last Discovered On":"String",
}
]
}",
"StatusCode":"Accepted",
"Timestamp":"03 Jun 2019 11:58:50 GMT 05:30:00"
}
CODE
|
Standard Error Response Codes
Error Code | Error Description |
---|
011649 | Current user do not have permission to take action |
011651 | The authorization header is either empty or not basic |
011673 | Invalid credentials |
011674 | Invalid credentials |
011675 | Unable to validate request |
011683 | Invalid instance name |
011803 | Unable to insert api log details |
032418 | Unable to get discovered assets information |
011850 | The system was unable to load the Discovered Asset information |