Skip to main content
Skip table of contents

API - Get Discovered Accounts

Purpose

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

Accessing the API

CODE
Endpoint: /API/APP/APP007/GetDiscoveredAccounts

HTTP METHOD

CODE
POST

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)

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

Sample Response (JSON)

CODE
{
    "Version":"X.X.X.X",
	"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"
}

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

JavaScript errors detected

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

If this problem persists, please contact our support.