Reports#
From openapi.json: CrushMFT API, version v1, build 27.0.0_2143.
Reports: the catalog, runs and exports, saved reports, definitions, schedules, alerts, dashboards and expectations.
GET /WebInterface/api/v1/reports/catalog #
What the caller may report on: datasets with their columns, the reports and dashboards it can see, and what it may do.
- Operation:
reports.catalog.get - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsCatalog - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
backend |
string | ||
can |
object | ||
can.root |
boolean | ||
can.unscoped |
boolean | ||
country |
boolean | ||
dashboards |
list of object | ||
dashboards[].builtin |
boolean | ||
dashboards[].bundle |
list of string | ||
dashboards[].description |
string | ||
dashboards[].id |
string | ||
dashboards[].name |
string | ||
dashboards[].range |
string | ||
dashboards[].tiles |
list of object | ||
dashboards[].tiles[].h |
integer | ||
dashboards[].tiles[].panel |
string | ||
dashboards[].tiles[].query |
object | ||
dashboards[].tiles[].query.dataset |
string | ||
dashboards[].tiles[].query.measures |
list of object | ||
dashboards[].tiles[].query.measures[].fn |
string | ||
dashboards[].tiles[].report |
string | ||
dashboards[].tiles[].title |
string | ||
dashboards[].tiles[].viz |
string | ||
dashboards[].tiles[].w |
integer | ||
dashboards[].tiles[].x |
integer | ||
dashboards[].tiles[].y |
integer | ||
datasets |
list of object | ||
datasets[].columns |
list of object | ||
datasets[].columns[].caseless |
boolean | ||
datasets[].columns[].format |
string | ||
datasets[].columns[].name |
string | ||
datasets[].columns[].type |
string | ||
datasets[].live |
boolean | ||
datasets[].name |
string | ||
datasets[].needs_unscoped |
boolean | ||
enterprise |
boolean | ||
reports |
list of object | ||
reports[].builtin |
boolean | ||
reports[].category |
string | ||
reports[].description |
string | ||
reports[].id |
string | ||
reports[].legacy |
string | ||
reports[].name |
string | ||
reports[].panels |
list of object | ||
reports[].panels[].dataset |
string | ||
reports[].panels[].id |
string | ||
reports[].panels[].title |
string | ||
reports[].panels[].viz |
string | ||
reports[].params |
list of object | ||
reports[].params[].choices |
list of object | ||
reports[].params[].choices[].label |
string | ||
reports[].params[].choices[].value |
string | ||
reports[].params[].default |
string | ||
reports[].params[].help |
string | ||
reports[].params[].id |
string | ||
reports[].params[].label |
string | ||
reports[].params[].legacy |
string | ||
reports[].params[].optional |
boolean | ||
reports[].params[].type |
string | ||
reports[].root |
boolean | ||
running |
boolean | ||
tz |
string |
Example 200 response
{
"can": {
"reports.report.run": true,
"reports.dashboard.view": true,
"reports.explore.run": true,
"reports.export.run": true,
"reports.definition.edit": true,
"reports.schedule.edit": true,
"reports.schedule.run": true,
"reports.alert.edit": true,
"reports.data.manage": true,
"users.user.view": true,
"jobs.job.view": true,
"root": true,
"unscoped": true
},
"country": false,
"enterprise": true,
"tz": "Europe/Bucharest",
"backend": "file",
"running": true,
"datasets": [
{
"name": "activity",
"live": false,
"needs_unscoped": false,
"columns": [
{
"name": "ts",
"type": "L",
"format": "datetime"
},
{
"name": "id",
"type": "L",
"format": "number"
},
{
"name": "node",
"type": "S",
"format": ""
}
]
},
{
"name": "auth",
"live": false,
"needs_unscoped": false,
"columns": [
{
"name": "ts",
"type": "L",
"format": "datetime"
},
{
"name": "id",
"type": "L",
"format": "number"
},
{
"name": "node",
"type": "S",
"format": ""
}
]
},
{
"name": "file",
"live": false,
"needs_unscoped": false,
"columns": [
{
"name": "ts",
"type": "L",
"format": "datetime"
},
{
"name": "id",
"type": "L",
"format": "number"
},
{
"name": "node",
"type": "S",
"format": ""
}
]
}
],
"reports": [
{
"id": "who-uploaded",
"name": "Who uploaded a file",
"category": "Files",
"description": "Uploads by user, file name and folder, with protocol and outcome. Failed uploads are shown and marked.",
"legacy": "WhoUploadedFile",
"builtin": true,
"params": [
{
"id": "range",
"type": "timerange",
"label": "Time range",
"default": "last_7_days",
"legacy": "show"
},
{
"id": "users",
"type": "users",
"label": "Users",
"optional": true,
"legacy": "usernames",
"help": "Names, ...group for a group's members, !name to leave one out"
},
{
"id": "name",
"type": "text",
"label": "File name",
"optional": true,
"legacy": "itemName"
}
],
"panels": [
{
"id": "by_user",
"title": "By user",
"viz": "hbar",
"dataset": "file"
},
{
"id": "rows",
"title": "Who uploaded a file",
"viz": "table",
"dataset": "file"
}
]
},
{
"id": "who-downloaded",
"name": "Who downloaded a file",
"category": "Files",
"description": "Downloads by user, file name and folder. Failed downloads now appear, marked.",
"legacy": "WhoDownloadedFile",
"builtin": true,
"params": [
{
"id": "range",
"type": "timerange",
"label": "Time range",
"default": "last_7_days",
"legacy": "show"
},
{
"id": "users",
"type": "users",
"label": "Users",
"optional": true,
"legacy": "usernames",
"help": "Names, ...group for a group's members, !name to leave one out"
},
{
"id": "name",
"type": "text",
"label": "File name",
"optional": true,
"legacy": "itemName"
}
],
"panels": [
{
"id": "by_user",
"title": "By user",
"viz": "hbar",
"dataset": "file"
},
{
"id": "rows",
"title": "Who downloaded a file",
"viz": "table",
"dataset": "file"
}
]
},
{
"id": "who-deleted",
"name": "Who deleted a file",
"category": "Files",
"description": "Deletes by user, name and folder.",
"legacy": "WhoDeletedFile",
"builtin": true,
"params": [
{
"id": "range",
"type": "timerange",
"label": "Time range",
"default": "last_7_days",
"legacy": "show"
},
{
"id": "users",
"type": "users",
"label": "Users",
"optional": true,
"legacy": "usernames",
"help": "Names, ...group for a group's members, !name to leave one out"
},
{
"id": "name",
"type": "text",
"label": "File name",
"optional": true,
"legacy": "itemName"
}
],
"panels": [
{
"id": "by_user",
"title": "By user",
"viz": "hbar",
"dataset": "file"
},
{
"id": "rows",
"title": "Who deleted a file",
"viz": "table",
"dataset": "file"
}
]
}
],
"dashboards": [
{
"id": "operations",
"name": "Operations",
"description": "The opening screen: now, today against yesterday, the last 24 hours, latest failures and jobs.",
"range": "last_24_hours",
"tiles": [
{
"title": "Sessions now",
"viz": "kpi",
"query": {
"dataset": "sessions_live",
"measures": [
{
"fn": "count"
}
]
},
"x": 0,
"y": 0,
"w": 3,
"h": 1
},
{
"report": "executive-summary",
"panel": "bytes_in",
"x": 3,
"y": 0,
"w": 3,
"h": 1,
"title": "Bytes in"
},
{
"report": "executive-summary",
"panel": "bytes_out",
"x": 6,
"y": 0,
"w": 3,
"h": 1,
"title": "Bytes out"
}
],
"builtin": true
},
{
"id": "security",
"name": "Security",
"description": "Failed logins and bans, attacking addresses, new addresses for known users, admin changes, weak encryption, open shares.",
"range": "last_7_days",
"tiles": [
{
"report": "failed-logins",
"panel": "time",
"x": 0,
"y": 0,
"w": 8,
"h": 2,
"title": "Failed logins"
},
{
"report": "bans-and-kicks",
"panel": "time",
"x": 8,
"y": 0,
"w": 4,
"h": 2,
"title": "Bans and kicks"
},
{
"report": "attack-summary",
"panel": "ips",
"x": 0,
"y": 2,
"w": 6,
"h": 2,
"title": "Top attacking addresses"
}
],
"builtin": true
},
{
"id": "jobs",
"name": "Jobs",
"description": "Runs and success, failures by job, longest runs, endpoints with errors.",
"range": "last_7_days",
"tiles": [
{
"report": "job-health",
"panel": "time",
"x": 0,
"y": 0,
"w": 8,
"h": 2,
"title": "Runs"
},
{
"report": "job-history",
"panel": "status",
"x": 8,
"y": 0,
"w": 4,
"h": 2,
"title": "By status"
},
{
"report": "job-failures",
"panel": "jobs",
"x": 0,
"y": 2,
"w": 6,
"h": 2,
"title": "Failures by job"
}
],
"builtin": true
}
]
}
POST /WebInterface/api/v1/reports/runs #
Run a report, a dashboard or an unsaved definition with parameters. 200 with the result when it finishes within wait, else 202 and where to ask.
- Operation:
reports.runs.start - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsRun - Token: by its grants
- Read only: yes
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
report |
string | A report's id, as the catalog gives it. | |
dashboard |
string | A dashboard's id. | |
definition |
object | An unsaved report definition, as the editor makes one (reports.explore.run). | |
params |
object | The report's parameters by id, such as {"range": "last_7_days"}. | |
tz |
string | The time zone the times are in, such as Europe/Bucharest. The server's when left out. | |
panels |
string | Only these panels, by id, separated by commas. | |
wait |
integer | How long to wait for the result, in milliseconds, 0 to 10000. Default 300. |
Example request body
{
"report": "server-health",
"wait": 10000
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
integer | ||
description |
string | ||
name |
string | ||
panels |
list of object | ||
panels[].dataset |
string | ||
panels[].format |
string | ||
panels[].groups |
integer | ||
panels[].id |
string | ||
panels[].result |
object | ||
panels[].result.approx |
boolean | ||
panels[].result.columns |
list of object | ||
panels[].result.columns[].format |
string | ||
panels[].result.columns[].id |
string | ||
panels[].result.columns[].type |
string | ||
panels[].result.rows |
list of list of integer or string | ||
panels[].result.scanned |
object | ||
panels[].result.scanned.blocks |
integer | ||
panels[].result.scanned.rows |
integer | ||
panels[].result.scanned.segments |
integer | ||
panels[].result.source |
string | ||
panels[].result.took_ms |
integer | ||
panels[].result.total_rows |
integer | ||
panels[].result.truncated |
boolean | ||
panels[].state |
string | ||
panels[].time_unit |
string | ||
panels[].title |
string | ||
panels[].viz |
string | ||
params |
object | ||
params.range |
string | ||
params_text |
string | ||
range |
object | ||
range.from |
integer | ||
range.label |
string | ||
range.to |
integer | ||
report |
string | ||
run |
string | ||
state |
string | ||
title |
string | ||
tz |
string |
Example 200 response
{
"run": "336158adbij38qth2y6qsg9x",
"state": "done",
"title": "Server health",
"report": "server-health",
"name": "Server health",
"description": "Sessions, transfers, speed, memory, threads, CPU and free disk over time, per node.",
"params": {
"range": "last_24_hours"
},
"tz": "Europe/Bucharest",
"range": {
"from": 1795289394536,
"to": 1795375795536,
"label": "the last 24 hours"
},
"params_text": "Time range: the last 24 hours",
"created": 1795375794536,
"panels": [
{
"id": "sessions",
"title": "Sessions",
"viz": "line",
"state": "done",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "node",
"type": "S"
},
{
"id": "max_sessions",
"type": "L",
"format": "number"
}
],
"rows": [],
"total_rows": 0,
"truncated": false,
"approx": false,
"source": "scan",
"scanned": {
"segments": 3,
"blocks": 0,
"rows": 3
},
"took_ms": 0
},
"dataset": "sample",
"groups": 2,
"time_unit": "hour"
},
{
"id": "transfers",
"title": "Transfers",
"viz": "line",
"state": "done",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "node",
"type": "S"
},
{
"id": "max_transfers",
"type": "L",
"format": "number"
}
],
"rows": [],
"total_rows": 0,
"truncated": false,
"approx": false,
"source": "scan",
"scanned": {
"segments": 3,
"blocks": 0,
"rows": 3
},
"took_ms": 0
},
"dataset": "sample",
"groups": 2,
"time_unit": "hour"
},
{
"id": "speed",
"title": "Speed",
"viz": "line",
"state": "done",
"format": "speed",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "in",
"type": "L",
"format": "speed"
},
{
"id": "out",
"type": "L",
"format": "speed"
}
],
"rows": [],
"total_rows": 0,
"truncated": false,
"approx": false,
"source": "scan",
"scanned": {
"segments": 3,
"blocks": 0,
"rows": 3
},
"took_ms": 1
},
"dataset": "sample",
"groups": 1,
"time_unit": "hour"
}
]
}
POST /WebInterface/api/v1/reports/queries #
Run an ad hoc query of a dataset (reports.explore.run), scoped to the caller's users.
- Operation:
reports.queries.start - Credentials:
tokenorbasicorsession - Permission:
reports.explore.run - Tier:
2 - Legacy:
reportsQuery - Token: by its grants
- Read only: yes
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
query |
object | yes | The query: dataset, range (such as last_24_hours) or from and to in milliseconds, filters, group, measures, order, limit, as a report panel's query. |
tz |
string | The time zone a range is read in. The server's when left out. | |
viz |
string | How to show it: table, line, bar, pie. | |
wait |
integer | How long to wait for the result, in milliseconds, 0 to 10000. Default 300. |
Example request body
{
"query": {
"dataset": "activity",
"range": "last_24_hours",
"group": [
{
"col": "user"
}
],
"measures": [
{
"fn": "count"
}
]
},
"wait": 10000
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
integer | ||
panels |
list of object | ||
panels[].dataset |
string | ||
panels[].groups |
integer | ||
panels[].id |
string | ||
panels[].result |
object | ||
panels[].result.approx |
boolean | ||
panels[].result.columns |
list of object | ||
panels[].result.columns[].format |
string | ||
panels[].result.columns[].id |
string | ||
panels[].result.columns[].type |
string | ||
panels[].result.rows |
list of list of integer or string | ||
panels[].result.scanned |
object | ||
panels[].result.scanned.blocks |
integer | ||
panels[].result.scanned.rows |
integer | ||
panels[].result.scanned.segments |
integer | ||
panels[].result.source |
string | ||
panels[].result.took_ms |
integer | ||
panels[].result.total_rows |
integer | ||
panels[].result.truncated |
boolean | ||
panels[].state |
string | ||
panels[].title |
string | ||
panels[].viz |
string | ||
run |
string | ||
state |
string | ||
title |
string |
Example 200 response
{
"run": "0743swszi5ehl1b4yp4zta0t",
"state": "done",
"title": "Explore",
"created": 1795375794236,
"panels": [
{
"id": "query",
"title": "activity",
"viz": "table",
"state": "done",
"result": {
"columns": [
{
"id": "user",
"type": "S",
"format": "user"
},
{
"id": "count",
"type": "L",
"format": "count"
}
],
"rows": [
[
"apiadmin",
114
],
[
"MainUsers/apiadmin",
23
],
[
"token WO8ZjXGbOLv3 for MainUsers/apiadmin",
18
]
],
"total_rows": 39,
"truncated": false,
"approx": false,
"source": "scan",
"scanned": {
"segments": 0,
"blocks": 0,
"rows": 0
},
"took_ms": 1
},
"dataset": "activity",
"groups": 1
}
]
}
GET /WebInterface/api/v1/reports/runs/{id} #
A run: its state and result; panel, cursor and limit page through one panel's rows.
- Operation:
reports.runs.get - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsPoll - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The run's id. |
wait |
query | integer | How long to wait for it to finish, in milliseconds, 0 to 10000. Default 0. |
|
panel |
query | string | One panel's rows, paged. | |
cursor |
query | string | The next cursor of the page before. | |
limit |
query | integer | Rows per page. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
integer | ||
description |
string | ||
name |
string | ||
panels |
list of object | ||
panels[].dataset |
string | ||
panels[].format |
string | ||
panels[].groups |
integer | ||
panels[].id |
string | ||
panels[].result |
object | ||
panels[].result.approx |
boolean | ||
panels[].result.columns |
list of object | ||
panels[].result.columns[].format |
string | ||
panels[].result.columns[].id |
string | ||
panels[].result.columns[].type |
string | ||
panels[].result.rows |
list of list of integer or string | ||
panels[].result.scanned |
object | ||
panels[].result.scanned.blocks |
integer | ||
panels[].result.scanned.rows |
integer | ||
panels[].result.scanned.segments |
integer | ||
panels[].result.source |
string | ||
panels[].result.took_ms |
integer | ||
panels[].result.total_rows |
integer | ||
panels[].result.truncated |
boolean | ||
panels[].state |
string | ||
panels[].time_unit |
string | ||
panels[].title |
string | ||
panels[].viz |
string | ||
params |
object | ||
params.range |
string | ||
params_text |
string | ||
range |
object | ||
range.from |
integer | ||
range.label |
string | ||
range.to |
integer | ||
report |
string | ||
run |
string | ||
state |
string | ||
title |
string | ||
tz |
string |
Example 200 response
{
"run": "wvwe7h4b6db8k4r2eb1rpy34",
"state": "done",
"title": "Server health",
"report": "server-health",
"name": "Server health",
"description": "Sessions, transfers, speed, memory, threads, CPU and free disk over time, per node.",
"params": {
"range": "last_24_hours"
},
"tz": "Europe/Bucharest",
"range": {
"from": 1795289393083,
"to": 1795375794083,
"label": "the last 24 hours"
},
"params_text": "Time range: the last 24 hours",
"created": 1795375793084,
"panels": [
{
"id": "sessions",
"title": "Sessions",
"viz": "line",
"state": "done",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "node",
"type": "S"
},
{
"id": "max_sessions",
"type": "L",
"format": "number"
}
],
"rows": [
[
1795374000000,
"0",
0
]
],
"total_rows": 1,
"truncated": false,
"approx": false,
"source": "cube:health+scan",
"scanned": {
"segments": 3,
"blocks": 0,
"rows": 3
},
"took_ms": 8
},
"dataset": "sample",
"groups": 2,
"time_unit": "hour"
},
{
"id": "transfers",
"title": "Transfers",
"viz": "line",
"state": "done",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "node",
"type": "S"
},
{
"id": "max_transfers",
"type": "L",
"format": "number"
}
],
"rows": [
[
1795374000000,
"0",
0
]
],
"total_rows": 1,
"truncated": false,
"approx": false,
"source": "cube:health+scan",
"scanned": {
"segments": 3,
"blocks": 0,
"rows": 3
},
"took_ms": 8
},
"dataset": "sample",
"groups": 2,
"time_unit": "hour"
},
{
"id": "speed",
"title": "Speed",
"viz": "line",
"state": "done",
"format": "speed",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "in",
"type": "L",
"format": "speed"
},
{
"id": "out",
"type": "L",
"format": "speed"
}
],
"rows": [
[
1795374000000,
0,
0
]
],
"total_rows": 1,
"truncated": false,
"approx": false,
"source": "cube:health+scan",
"scanned": {
"segments": 3,
"blocks": 0,
"rows": 3
},
"took_ms": 1
},
"dataset": "sample",
"groups": 1,
"time_unit": "hour"
}
]
}
POST /WebInterface/api/v1/reports/runs/{id}/cancel #
Stop a run and forget it.
- Operation:
reports.runs.cancel - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsCancel - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The run's id. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/reports/runs/{id}/export #
A finished run as a file: csv, xlsx, html, pdf or json.
- Operation:
reports.runs.export - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsExport - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The run's id. |
format |
query | string, one of csv, xlsx, html, pdf, json |
The file's format. Default csv. |
|
panel |
query | string | One panel only (csv, xlsx). |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | string application/pdf|text:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|text:application/zip|text:text/html |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
POST /WebInterface/api/v1/reports/runs/{id}/save #
Keep a finished run under a token anyone with the link can open.
- Operation:
reports.runs.save - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsSave - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The run's id. |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
link |
string | ||
token |
string |
Example 201 response
{
"token": "server_health_frQEIOCB7GJDVDKktFPOpnKm7RyLZqlUD0wNT7Ew",
"link": "http://www.domain.com:8080/WebInterface/Reports/index.html?token=server_health_frQEIOCB7GJDVDKktFPOpnKm7RyLZqlUD0wNT7Ew"
}
GET /WebInterface/api/v1/reports/saved/{token} #
A saved run by its token, as JSON or as a file.
- Operation:
reports.saved.get - Credentials:
tokenorbasicorsession - Permission:
none - Tier:
- - Legacy:
reportsSavedOpen - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token |
path | string | yes | The saved run's token. |
format |
query | string, one of json, csv, xlsx, html, pdf |
JSON, or a file. Default json. |
|
panel |
query | string | One panel only (csv, xlsx). |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
integer | ||
description |
string | ||
name |
string | ||
panels |
list of object | ||
panels[].dataset |
string | ||
panels[].format |
string | ||
panels[].groups |
integer | ||
panels[].id |
string | ||
panels[].result |
object | ||
panels[].result.approx |
boolean | ||
panels[].result.columns |
list of object | ||
panels[].result.columns[].format |
string | ||
panels[].result.columns[].id |
string | ||
panels[].result.columns[].type |
string | ||
panels[].result.rows |
list of list of integer or string | ||
panels[].result.scanned |
object | ||
panels[].result.scanned.blocks |
integer | ||
panels[].result.scanned.rows |
integer | ||
panels[].result.scanned.segments |
integer | ||
panels[].result.source |
string | ||
panels[].result.took_ms |
integer | ||
panels[].result.total_rows |
integer | ||
panels[].result.truncated |
boolean | ||
panels[].state |
string | ||
panels[].time_unit |
string | ||
panels[].title |
string | ||
panels[].viz |
string | ||
params |
object | ||
params.range |
string | ||
params_text |
string | ||
range |
object | ||
range.from |
integer | ||
range.label |
string | ||
range.to |
integer | ||
report |
string | ||
run |
string | ||
saved |
boolean | ||
state |
string | ||
title |
string | ||
tz |
string |
Example 200 response
{
"run": "saved",
"state": "done",
"title": "Server health",
"report": "server-health",
"name": "Server health",
"description": "Sessions, transfers, speed, memory, threads, CPU and free disk over time, per node.",
"params": {
"range": "last_24_hours"
},
"tz": "Europe/Bucharest",
"range": {
"from": 1795289393083,
"to": 1795375794083,
"label": "the last 24 hours"
},
"params_text": "Time range: the last 24 hours",
"created": 1795375793211,
"panels": [
{
"id": "sessions",
"title": "Sessions",
"viz": "line",
"state": "done",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "node",
"type": "S"
},
{
"id": "max_sessions",
"type": "L",
"format": "number"
}
],
"rows": [
[
1795374000000,
"0",
0
]
],
"total_rows": 1,
"truncated": false,
"approx": false,
"source": "",
"scanned": {
"segments": 0,
"blocks": 0,
"rows": 0
},
"took_ms": 0
},
"dataset": "sample",
"groups": 2,
"time_unit": "hour"
},
{
"id": "transfers",
"title": "Transfers",
"viz": "line",
"state": "done",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "node",
"type": "S"
},
{
"id": "max_transfers",
"type": "L",
"format": "number"
}
],
"rows": [
[
1795374000000,
"0",
0
]
],
"total_rows": 1,
"truncated": false,
"approx": false,
"source": "",
"scanned": {
"segments": 0,
"blocks": 0,
"rows": 0
},
"took_ms": 0
},
"dataset": "sample",
"groups": 2,
"time_unit": "hour"
},
{
"id": "speed",
"title": "Speed",
"viz": "line",
"state": "done",
"format": "speed",
"result": {
"columns": [
{
"id": "time",
"type": "L",
"format": "datetime"
},
{
"id": "in",
"type": "L",
"format": "speed"
},
{
"id": "out",
"type": "L",
"format": "speed"
}
],
"rows": [
[
1795374000000,
0,
0
]
],
"total_rows": 1,
"truncated": false,
"approx": false,
"source": "",
"scanned": {
"segments": 0,
"blocks": 0,
"rows": 0
},
"took_ms": 0
},
"dataset": "sample",
"groups": 1,
"time_unit": "hour"
}
],
"saved": true
}
GET /WebInterface/api/v1/reports/values #
The values of one column, most frequent first, for filters.
- Operation:
reports.values.list - Credentials:
tokenorbasicorsession - Permission:
reports.explore.run - Tier:
2 - Legacy:
reportsValues - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
col |
query | string | yes | The column. |
dataset |
query | string | The dataset. Default activity. |
|
prefix |
query | string | Only values that start with this. | |
range |
query | string | The time range looked at. Default last_90_days. |
|
tz |
query | string | The time zone of the range. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
counts |
list of integer | ||
values |
list of string |
Example 200 response
{
"values": [
"setUserItem",
"access.tokens.issue",
"revokeToken"
],
"counts": [
49,
13,
11
]
}
GET /WebInterface/api/v1/reports/definitions/{id} #
One report definition in full.
- Operation:
reports.definitions.get - Credentials:
tokenorbasicorsession - Permission:
reports.report.run - Tier:
2 - Legacy:
reportsDefinitionGet - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The report's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
access |
object | ||
access.permission |
string | ||
access.root |
boolean | ||
builtin |
boolean | ||
category |
string | ||
description |
string | ||
id |
string | ||
name |
string | ||
panels |
list of object | ||
panels[].format |
string | ||
panels[].id |
string | ||
panels[].query |
object | ||
panels[].query.dataset |
string | ||
panels[].query.filters |
array | ||
panels[].query.group |
list of object | ||
panels[].query.group[].col |
string | ||
panels[].query.group[].time |
string | ||
panels[].query.measures |
list of object | ||
panels[].query.measures[].as |
string | ||
panels[].query.measures[].col |
string | ||
panels[].query.measures[].fn |
string | ||
panels[].query.range |
string | ||
panels[].title |
string | ||
panels[].viz |
string | ||
params |
list of object | ||
params[].default |
string | ||
params[].id |
string | ||
params[].label |
string | ||
params[].legacy |
string | ||
params[].type |
string | ||
version |
integer |
Example 200 response
{
"id": "server-health",
"version": 1,
"name": "Server health",
"category": "Server",
"description": "Sessions, transfers, speed, memory, threads, CPU and free disk over time, per node.",
"access": {
"permission": "reports.report.run",
"root": false
},
"params": [
{
"id": "range",
"type": "timerange",
"label": "Time range",
"default": "last_24_hours",
"legacy": "show"
}
],
"panels": [
{
"id": "sessions",
"title": "Sessions",
"viz": "line",
"query": {
"dataset": "sample",
"range": "${range}",
"filters": [],
"group": [
{
"time": "auto"
},
{
"col": "node"
}
],
"measures": [
{
"fn": "max",
"col": "sessions"
}
]
}
},
{
"id": "transfers",
"title": "Transfers",
"viz": "line",
"query": {
"dataset": "sample",
"range": "${range}",
"filters": [],
"group": [
{
"time": "auto"
},
{
"col": "node"
}
],
"measures": [
{
"fn": "max",
"col": "transfers"
}
]
}
},
{
"id": "speed",
"title": "Speed",
"viz": "line",
"query": {
"dataset": "sample",
"range": "${range}",
"filters": [],
"group": [
{
"time": "auto"
}
],
"measures": [
{
"fn": "max",
"col": "in_bps",
"as": "in"
},
{
"fn": "max",
"col": "out_bps",
"as": "out"
}
]
},
"format": "speed"
}
],
"builtin": true
}
PUT /WebInterface/api/v1/reports/definitions/{id} #
Make or replace a report definition. Built-in ones cannot be changed.
- Operation:
reports.definitions.save - Credentials:
tokenorbasicorsession - Permission:
reports.definition.edit - Tier:
1 - Legacy:
reportsDefinitionSave - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The report's id. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
definition |
object | yes | The report definition: name, params, panels with their queries. |
Example request body
{
"definition": {
"id": "apigate-report",
"version": 1,
"name": "API gate report",
"category": "Server",
"description": "Sessions, transfers, speed, memory, threads, CPU and free disk over time, per node.",
"access": {
"permission": "reports.report.run",
"root": false
},
"params": [
{
"id": "range",
"type": "timerange",
"label": "Time range",
"default": "last_24_hours",
"legacy": "show"
}
],
"panels": [
{
"id": "sessions",
"title": "Sessions",
"viz": "line",
"query": {
"dataset": "sample",
"range": "${range}",
"filters": [],
"group": [
{
"time": "auto"
},
{
"col": "node"
}
],
"measures": [
{
"fn": "max",
"col": "sessions"
}
]
}
},
{
"id": "transfers",
"title": "Transfers",
"viz": "line",
"query": {
"dataset": "sample",
"range": "${range}",
"filters": [],
"group": [
{
"time": "auto"
},
{
"col": "node"
}
],
"measures": [
{
"fn": "max",
"col": "transfers"
}
]
}
},
{
"id": "speed",
"title": "Speed",
"viz": "line",
"query": {
"dataset": "sample",
"range": "${range}",
"filters": [],
"group": [
{
"time": "auto"
}
],
"measures": [
{
"fn": "max",
"col": "in_bps",
"as": "in"
},
{
"fn": "max",
"col": "out_bps",
"as": "out"
}
]
},
"format": "speed"
}
]
}
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Example 200 response
{
"id": "apigate-report"
}
DELETE /WebInterface/api/v1/reports/definitions/{id} #
Delete a report definition.
- Operation:
reports.definitions.delete - Credentials:
tokenorbasicorsession - Permission:
reports.definition.edit - Tier:
1 - Legacy:
reportsDefinitionDelete - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The report's id. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
PUT /WebInterface/api/v1/reports/dashboards/{id} #
Make or replace a dashboard.
- Operation:
reports.dashboards.save - Credentials:
tokenorbasicorsession - Permission:
reports.definition.edit - Tier:
1 - Legacy:
reportsDashboardSave - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The dashboard's id. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
dashboard |
object | yes | The dashboard. |
Example request body
{
"dashboard": {
"id": "apirecdash",
"name": "Recorded dashboard",
"private": true,
"widgets": []
}
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Example 200 response
{
"id": "apirecdash"
}
DELETE /WebInterface/api/v1/reports/dashboards/{id} #
Delete a dashboard.
- Operation:
reports.dashboards.delete - Credentials:
tokenorbasicorsession - Permission:
reports.definition.edit - Tier:
1 - Legacy:
reportsDashboardDelete - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The dashboard's id. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/reports/schedules #
The report schedules the caller may see.
- Operation:
reports.schedules.list - Credentials:
tokenorbasicorsession - Permission:
reports.schedule.run - Tier:
2 - Legacy:
reportsScheduleList - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
converted_from_v11 |
array | ||
schedules |
list of object | ||
schedules[].anchor |
string | ||
schedules[].every |
string | ||
schedules[].formats |
string | ||
schedules[].id |
string | ||
schedules[].name |
string | ||
schedules[].next_run |
string | ||
schedules[].report |
string | ||
schedules[].run_as |
string |
Example 200 response
{
"schedules": [
{
"formats": "html",
"run_as": "MainUsers/apiadmin",
"next_run": "0",
"anchor": "20779",
"name": "API gate schedule 2",
"report": "server-health",
"id": "3etuujv2nj82hmxsn8tra0ix",
"every": "daily"
}
],
"converted_from_v11": []
}
PUT /WebInterface/api/v1/reports/schedules/{id} #
Make or change a report schedule; it runs as whoever saved it. An id the server does not know makes a new one.
- Operation:
reports.schedules.save - Credentials:
tokenorbasicorsession - Permission:
reports.schedule.edit - Tier:
1 - Legacy:
reportsScheduleSave - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The schedule's id. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
schedule |
object | yes | The schedule: name, report, params, every (minutes, daily, weekly, monthly), formats, where it goes. |
Example request body
{
"schedule": {
"name": "API gate schedule",
"report": "server-health",
"every": "daily",
"formats": "html"
}
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ||
next_run |
integer |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ||
next_run |
integer |
Example 201 response
{
"id": "3etuujv2nj82hmxsn8tra0ix",
"next_run": 1795384800000
}
DELETE /WebInterface/api/v1/reports/schedules/{id} #
Delete a report schedule.
- Operation:
reports.schedules.delete - Credentials:
tokenorbasicorsession - Permission:
reports.schedule.edit - Tier:
1 - Legacy:
reportsScheduleDelete - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The schedule's id. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
POST /WebInterface/api/v1/reports/schedules/{id}/test #
Run a schedule now and deliver it.
- Operation:
reports.schedules.test - Credentials:
tokenorbasicorsession - Permission:
reports.schedule.run - Tier:
2 - Legacy:
reportsScheduleTest - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The schedule's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
result |
string |
Example 200 response
{
"result": "ran, nowhere to deliver"
}
GET /WebInterface/api/v1/reports/alerts #
The alerts and the expected files, with the last results of each expected file.
- Operation:
reports.alerts.list - Credentials:
tokenorbasicorsession - Permission:
reports.alert.edit - Tier:
1 - Legacy:
reportsAlertList - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
alerts |
array | ||
expectations |
array |
Example 200 response
{
"alerts": [],
"expectations": []
}
PUT /WebInterface/api/v1/reports/alerts/{id} #
Make or change an alert. An id the server does not know makes a new one.
- Operation:
reports.alerts.save - Credentials:
tokenorbasicorsession - Permission:
reports.alert.edit - Tier:
1 - Legacy:
reportsAlertSave - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The alert's id. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
alert |
object | yes | The alert. |
Example request body
{
"alert": {
"name": "API gate alert",
"report": "server-health",
"panel": "sessions",
"condition": "above",
"value": "100000"
}
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Example 201 response
{
"id": "ofih45ce6kv8ode9m4agepyr"
}
DELETE /WebInterface/api/v1/reports/alerts/{id} #
Delete an alert.
- Operation:
reports.alerts.delete - Credentials:
tokenorbasicorsession - Permission:
reports.alert.edit - Tier:
1 - Legacy:
reportsAlertDelete - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The alert's id. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
POST /WebInterface/api/v1/reports/alerts/{id}/test #
Evaluate an alert now and over the last week: the one sent, or the one stored under the id.
- Operation:
reports.alerts.test - Credentials:
tokenorbasicorsession - Permission:
reports.alert.edit - Tier:
1 - Legacy:
reportsAlertTest - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The alert's id. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
alert |
object | An alert to test as it is; the stored one when left out. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
fired |
boolean | ||
rows |
integer | ||
week |
object | ||
week.checks |
integer | ||
week.days |
integer | ||
week.every_minutes |
integer | ||
week.fired |
array | ||
week.step_minutes |
integer | ||
week.times |
integer | ||
why |
array |
Example 200 response
{
"fired": false,
"why": [],
"rows": 7,
"week": {
"days": 7,
"checks": 387,
"step_minutes": 26,
"every_minutes": 5,
"times": 0,
"fired": []
}
}
PUT /WebInterface/api/v1/reports/expectations/{id} #
Make or change an expected file. An id the server does not know makes a new one.
- Operation:
reports.expectations.save - Credentials:
tokenorbasicorsession - Permission:
reports.alert.edit - Tier:
1 - Legacy:
reportsExpectationSave - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The expected file's id. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
expectation |
object | yes | The expected file. |
Example request body
{
"expectation": {
"id": "apirecexp",
"name": "Recorded expectation",
"deadline": "23:00",
"weekdays": "1,2,3,4,5"
}
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Example 201 response
{
"id": "cs9sb8qbfnhrolnf3g8jndfl"
}
DELETE /WebInterface/api/v1/reports/expectations/{id} #
Delete an expected file.
- Operation:
reports.expectations.delete - Credentials:
tokenorbasicorsession - Permission:
reports.alert.edit - Tier:
1 - Legacy:
reportsExpectationDelete - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The expected file's id. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/reports/health #
The activity store's health: backend, size, queue, errors, running reports.
- Operation:
reports.health.get - Credentials:
tokenorbasicorsession - Permission:
reports.dashboard.view - Tier:
2 - Legacy:
reportsHealth - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
backend |
string | ||
can_manage |
boolean | ||
enabled |
boolean | ||
enterprise |
boolean | ||
error |
string | ||
import |
object | ||
import.limits |
string | ||
import.months_done |
array | ||
import.running |
boolean | ||
import.skipped |
object | ||
quota_keys |
integer | ||
requested_backend |
string | ||
root |
string | ||
running |
boolean | ||
runs |
integer | ||
store |
object | ||
store.backend |
string | ||
store.bytes_total |
integer | ||
store.chain_heads |
object | ||
store.chain_heads.snap_access |
string | ||
store.chain_heads.snap_user |
string | ||
store.disk_free |
integer | ||
store.drop_reasons |
object | ||
store.dropped |
integer | ||
store.journal_bytes |
integer | ||
store.journal_files |
integer | ||
store.last_error |
string | ||
store.last_error_time |
integer | ||
store.last_flush |
integer | ||
store.last_seal |
integer | ||
store.memory_rows |
integer | ||
store.node |
integer | ||
store.nodes |
list of object | ||
store.nodes[].newest |
integer | ||
store.nodes[].node |
integer | ||
store.problems |
array | ||
store.queued |
integer | ||
store.running |
boolean | ||
store.running_queries |
integer | ||
store.sql_behind_ms |
integer | ||
store.sql_error |
string | ||
store.sql_oldest_unshipped |
integer | ||
store.streams |
list of object | ||
store.streams[].newest |
string | ||
store.streams[].oldest |
string | ||
store.streams[].recent_rows |
integer | ||
store.streams[].rollup_bytes |
integer | ||
store.streams[].rows |
integer | ||
store.streams[].segment_bytes |
integer | ||
store.streams[].stream |
string | ||
store.written |
integer |
Example 200 response
{
"enabled": true,
"running": true,
"backend": "file",
"requested_backend": "file",
"enterprise": true,
"root": "/var/opt/CrushMFT27/./activity",
"error": "",
"quota_keys": 3,
"runs": 0,
"store": {
"running": true,
"backend": "file",
"node": 0,
"queued": 0,
"written": 298,
"dropped": 0,
"drop_reasons": {},
"last_flush": 1795375524438,
"last_seal": 0,
"journal_bytes": 56329,
"journal_files": 2,
"memory_rows": 298,
"disk_free": 91599773696,
"running_queries": 0,
"sql_behind_ms": 0,
"sql_oldest_unshipped": 0,
"sql_error": "",
"last_error": "",
"last_error_time": 0,
"streams": [
{
"stream": "server",
"segment_bytes": 2269,
"rollup_bytes": 0,
"oldest": "20261122",
"newest": "20261122",
"rows": 0,
"recent_rows": 9
},
{
"stream": "sample",
"segment_bytes": 2850,
"rollup_bytes": 0,
"oldest": "20261122",
"newest": "20261122",
"rows": 0,
"recent_rows": 3
},
{
"stream": "snap_user",
"segment_bytes": 954,
"rollup_bytes": 0,
"oldest": "20261122",
"newest": "20261122",
"rows": 0,
"recent_rows": 7
}
],
"bytes_total": 6882,
"nodes": [
{
"node": 0,
"newest": 1704067628050
}
],
"problems": [],
"chain_heads": {}
},
"can_manage": true,
"import": {
"skipped": {},
"months_done": [],
"running": false,
"limits": "Paths were cut at 255 characters in v11, failed downloads were never kept, there is no client, TLS or login method, and job history is what the job folders still hold."
}
}
POST /WebInterface/api/v1/reports/admin #
Administration of the activity store: verify, redact, import, rebuild, flush, database checks.
- Operation:
reports.admin.run - Credentials:
basicorsession - Permission:
reports.data.manage - Tier:
0 - Legacy:
reportsAdmin - Token:
never - Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
action |
string | yes | verify, redact, import, rebuild, flush, or a database check. |
conn_group |
string | A user connection group, for redact. | |
user |
string | A user, for redact. |
Example request body
{
"action": "verify"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
result |
object | ||
result.days |
integer | ||
result.ok |
boolean | ||
result.problem_count |
integer | ||
result.problems |
array | ||
result.segments |
integer | ||
result.took_ms |
integer |
Example 200 response
{
"result": {
"days": 0,
"segments": 0,
"problems": [],
"problem_count": 0,
"took_ms": 0,
"ok": true
}
}
GET /WebInterface/api/v1/me/activity #
The caller's own activity: logins, transfers, shares.
- Operation:
me.activity.get - Credentials:
tokenorbasicorsession - Permission:
self.activity.view - Tier:
2 - Legacy:
selfActivity - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
what |
query | string | logins, transfers or shares. | |
range |
query | string | The time range, such as last_30_days. | |
cursor |
query | string | The next cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
approx |
boolean | ||
columns |
list of object | ||
columns[].format |
string | ||
columns[].id |
string | ||
columns[].type |
string | ||
rows |
list of list of integer or string or null | ||
scanned |
object | ||
scanned.blocks |
integer | ||
scanned.rows |
integer | ||
scanned.segments |
integer | ||
source |
string | ||
took_ms |
integer | ||
total_rows |
integer | ||
truncated |
boolean |
Example 200 response
{
"columns": [
{
"id": "ts",
"type": "L",
"format": "datetime"
},
{
"id": "action",
"type": "S"
},
{
"id": "outcome",
"type": "S"
}
],
"rows": [
[
1795376053047,
"login",
"ok"
],
[
1795376051020,
"logout",
"ok"
],
[
1795376036825,
"login",
"ok"
]
],
"total_rows": 32,
"truncated": false,
"approx": false,
"source": "scan",
"scanned": {
"segments": 1,
"blocks": 0,
"rows": 89
},
"took_ms": 2
}
Schemas used here#
Problem #
An error (RFC 9457), as application/problem+json. code is stable and is what a program switches on; detail says it in words; request_id finds the request in the server log.
| Code | Status | Meaning |
|---|---|---|
bad_request |
400 | The request cannot be read: a broken path, an unknown or badly typed parameter, a body that is not a JSON object. |
validation_failed |
422 | The body is well-formed, but one or more of its fields cannot be used. errors lists each field, the rule and a message. |
unauthenticated |
401 | No credential, or one that did not log in. |
forbidden |
403 | Logged in, and refused. detail carries the reason the access engine gave. |
tier0 |
403 | The operation is equal to full control of the server. No token may use it, and of the accounts only the Administrator role. |
read_only_token |
403 | The token is read-only and the operation changes something. |
legacy_account |
403 | The account holds legacy admin flags, which the API does not act on. Convert it to roles, or issue a token for it. |
not_open_yet |
403 | The command behind the operation is not switched on for roles and tokens yet. An administrator's own login can use it. |
dmz_not_allowed |
403 | The request came through a DMZ, and the API does not answer those unless api_from_dmz allows it. |
edition_required |
403 | The operation needs an edition this server is not licensed for. |
not_found |
404 | No such operation, no such object, or an object the caller's scope does not cover. |
method_not_allowed |
405 | The path exists and the method does not. Allow lists the methods that do. |
conflict |
409 | The object already exists, or is in a state that does not allow this. |
precondition_failed |
412 | If-Match did not match: the object changed since it was read. |
payload_too_large |
413 | The body is larger than api_max_body_kb. |
unsupported_media_type |
415 | A body must be Content-Type: application/json. |
rate_limited |
429 | Too many requests for this credential or address in this minute. Retry-After says when to try again. |
internal_error |
500 | A fault in the server. The server log has the cause under the request id. |
not_implemented |
501 | The operation is in the registry and is not built on this server yet. |
unavailable |
503 | The server is starting or shutting down. |
fips_restricted |
409 | The server runs in FIPS 140-3 mode (launched with -Dcrushmft.fips=true), and FIPS mode does not allow what was asked: the detail is the catalog row's reason and what to use instead, fips_id its id (CrushFTP design/61 section 5). |
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | ||
title |
string | ||
code |
string, one of bad_request, validation_failed, unauthenticated, forbidden, tier0, read_only_token, legacy_account, not_open_yet, dmz_not_allowed, edition_required, not_found, method_not_allowed, conflict, precondition_failed, payload_too_large, unsupported_media_type, rate_limited, internal_error, not_implemented, unavailable, fips_restricted |
||
detail |
string | ||
operation |
string | ||
permission |
string | ||
request_id |
string | ||
status |
integer |