Skip to main content

Databases

Discover the database instances Authnull agents have found, and the hosts they run on.

Endpoints

ScreenMethodEndpoint
List databasesPOST/api/v1/databaseService/listDatabase
List unique database namesPOST/api/v1/databaseService/getUniqueDatabasenames
Delete databasePOSTDatabase delete endpoint
List unique hostsPOST/api/v1/databaseService/listUniqueHosts

List databases

POST /api/v1/databaseService/listDatabaseDatabases → All databases

Returns the databases discovered in the tenant. The same endpoint is used to list databases attached to a specific agent host by adding the host to the filter.

Body parameters

FieldTypeDescription
orgId (required)integerOrganization the request acts within. Returned to you at onboarding.
tenantId (required)integerTenant inside the organization. Most single-tenant deployments use 1.
pageIdinteger1-based page number. Defaults to 1.
pageSizeintegerRecords per page. Defaults to 10, maximum 100.
searchstringFree-text match on database name or host.
filterobjectColumn filter, for example { filterBy: "HOST", value: "10.0.0.10" }.

Example request

curl -X POST 'https://api.authnull.com/api/v1/databaseService/listDatabase' \
-H 'Content-Type: application/json' \
-H "X-Authorization: $AUTHNULL_TOKEN" \
-d '{ "orgId": 105, "tenantId": 1, "pageId": 1, "pageSize": 10 }'

Responses

200 OK
{
"databases": [
{
"databaseId": 7,
"databaseName": "payments",
"host": "10.0.0.10",
"engine": "postgres"
}
],
"totalCount": 1
}

Unique-value endpoints

getUniqueDatabasenames and listUniqueHosts exist to populate filter dropdowns. They return distinct values rather than records, so they are cheap to call on page load.

Payload needed.

The database delete endpoint has no path in the source list.