Server-generated reports with suggestions about the project.
Class Advisor: 5 methods (0 in @owbase/web, 5 in @owbase/node). The examples use the object form of the parameters; replace the values between < and > with your own.
listReports
Section titled “listReports”List reports
GET /reports · method page
SDK: @owbase/node only
Get a list of all the project’s analyzer reports. You can use the query params to filter your results.
| Parameter | Type | Required | Description |
|---|---|---|---|
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: appId, type, targetType, target, analyzedAt |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Access: API key with the reports.read scope.
import { Client, Advisor } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const advisor = new Advisor(client);
const result = await advisor.listReports({ queries: [], // optional total: false, // optional});getReport
Section titled “getReport”Get report
GET /reports/{reportId} · method page
SDK: @owbase/node only
Get an analyzer report by its unique ID. The response includes the report’s metadata and the nested insights it produced.
| Parameter | Type | Required | Description |
|---|---|---|---|
reportId |
string |
yes | Report ID. |
Access: API key with the reports.read scope.
import { Client, Advisor } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const advisor = new Advisor(client);
const result = await advisor.getReport({ reportId: '<REPORT_ID>',});deleteReport
Section titled “deleteReport”Delete report
DELETE /reports/{reportId} · method page
SDK: @owbase/node only
Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker.
| Parameter | Type | Required | Description |
|---|---|---|---|
reportId |
string |
yes | Report ID. |
Access: API key with the reports.write scope.
import { Client, Advisor } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const advisor = new Advisor(client);
const result = await advisor.deleteReport({ reportId: '<REPORT_ID>',});listInsights
Section titled “listInsights”List insights
GET /reports/{reportId}/insights · method page
SDK: @owbase/node only
List the insights produced under a single analyzer report. You can use the query params to filter your results further.
| Parameter | Type | Required | Description |
|---|---|---|---|
reportId |
string |
yes | Parent report ID. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Access: API key with the insights.read scope.
import { Client, Advisor } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const advisor = new Advisor(client);
const result = await advisor.listInsights({ reportId: '<REPORT_ID>', queries: [], // optional total: false, // optional});getInsight
Section titled “getInsight”Get insight
GET /reports/{reportId}/insights/{insightId} · method page
SDK: @owbase/node only
Get an insight by its unique ID, scoped to its parent report.
| Parameter | Type | Required | Description |
|---|---|---|---|
reportId |
string |
yes | Parent report ID. |
insightId |
string |
yes | Insight ID. |
Access: API key with the insights.read scope.
import { Client, Advisor } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const advisor = new Advisor(client);
const result = await advisor.getInsight({ reportId: '<REPORT_ID>', insightId: '<INSIGHT_ID>',});The descriptions on this page come from the server API specification (BSD-3-Clause license), and the examples come from the SDK generator (MIT license). The full notices are in the NOTICE file of the @owbase/web and @owbase/node packages.