Purpose

To get a list of discovered accounts using Sectona API interface.

Accessing the API

Endpoint: /API/APP/APP007/GetDiscoveredAccounts
CODE

HTTP METHOD

POST
CODE

Parameters

Parameters

Data Type

Required

Description

DiscoveryJobTitle

String

OPTIONAL

Account Discovery Job Title (optional)

DiscoveredBeforeDays

String

OPTIONAL

Discovered Before Days (optional)

Instance

String

YES

Instance Name

Sample Request (JSON)

{
     "DiscoveryJobTitle":"String",
     "DiscoveredBeforeDays":"String",
     "Instance":"String",
}
CODE

Sample Response (JSON)

{
    "Version":"3.8.0.0",
	"IsSuccess":true,
	"LogCode":"0",
	"Result":"
	{	
	  "Accounts": 
	    [
			{
     				"Asset Type":"String",
     "Host Name":"String",
     "IP Address":"String",
     "Account Name":"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

032419

Unable to get discovered accounts information

011851

The system was unable to load the Discovered account information