Nova API — /api/dashboards
The operations Nova tags public under /api/dashboards. Generated from reference-src/nova-openapi.json.
GET /api/dashboards
Operation id dashboards_list: in Python client.call("dashboards_list", …), on the command line stardelt api dashboards_list.
GET /api/dashboards: the dashboards this bundle and this owner group imported, with the target, commit and normalized export hash of the stamp the import wrote. A dashboard without that stamp, and one another group imported, is never listed. At most 100 (Superset's page size). The caller's rule is the export's owner-group rule.
The dashboards this bundle and this owner group imported, each with the target, commit and normalized export hash (sha256) of the stamp the import wrote. A dashboard without that stamp, and one another group imported, is never listed. At most 100 (Superset's page size). The caller must be a member of the bundle's owner group, and a deploy principal sees its own group. A bundle belongs to the group that first recorded a deploy of it or imported a dashboard for it; a call that names another group answers 403, an administrator's too.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
bundle | query | string | Yes | The bundle that imported the dashboards |
ownerGroup | query | string | Yes | The bundle's owner group; the caller must be a member |
Responses
| Code | Description |
|---|---|
200 | The dashboards this bundle imported, in Superset's order |
400 | The bundle name or owner group is empty |
401 | Not signed in |
403 | The caller is not a member of the bundle's owner group, or a deploy principal asks for another group's dashboards, or the bundle belongs to another group |
502 | Superset answered an error, or could not be reached |
503 | This instance has no Superset service user |
POST /api/dashboards/import
Operation id dashboards_import: in Python client.call("dashboards_import", …), on the command line stardelt api dashboards_import.
Import one Superset dashboard archive for a bundle's target: every dataset is remapped onto the target's own Trino <catalog> database, the target's databases/ file is added, every dashboard is stamped certified_by: stardelt bundle <bundle> / certification_details: <target> @ <commit> #<sha256> by <ownerGroup>, and Superset imports the result. The caller must be a member of the bundle's owner group; a deploy principal may only import to its own stage. An archive is refused when one of its dashboards already exists certified by another bundle or group. With overwrite, a dashboard the archive replaces that stardelt-nova is not an owner of is refused with 409, naming the owner and the two ways forward. The answer is Superset's own import result plus the database stems that were mapped. A bundle belongs to the group that first recorded a deploy of it or imported a dashboard for it; a call that names another group answers 403, an administrator's too.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
bundle | query | string | Yes | The bundle whose dashboards these are |
commit | query | string | No | The commit the bundle was read at |
overwrite | query | boolean | No | Replace a dashboard of the same name |
ownerGroup | query | string | Yes | The bundle's owner group |
target | query | string | Yes | The stage the import is for |
Responses
| Code | Description |
|---|---|
200 | Superset's import result and the mapped database stems |
400 | The body is not a dashboard archive, or a field has the wrong shape: bundle 3–40 lower-case letters, digits and dashes; target and ownerGroup 1–64 letters, digits, dots, underscores or dashes; commit lower-case hex |
401 | Not signed in |
403 | The caller is not a member of the bundle's owner group, a deploy principal names another stage, or a dashboard in the archive is certified by another bundle or owner group, or the bundle belongs to another group |
409 | overwrite names a dashboard that already exists and stardelt-nova is not one of its owners |
413 | The archive is larger than 16 MiB |
422 | The target has no database for one of the archive's catalogs |
502 | Superset answered an error, or could not be reached |
503 | This instance has no Superset service user |
DELETE /api/dashboards/{id}
Operation id dashboards_delete: in Python client.call("dashboards_delete", …), on the command line stardelt api dashboards_delete.
DELETE /api/dashboards/{id}: remove one dashboard this bundle imported. The dashboard's certified_by must be stardelt bundle <bundle> and its certification_details must end with by <ownerGroup>; a dashboard without the stamp, or one another group imported, is refused and stays. The caller's rule is the dashboards owner-group rule.
Remove one dashboard that this bundle imported. The dashboard's certified_by must be stardelt bundle <bundle> and its certification_details must name the caller's ownerGroup as the group that imported it; a dashboard without that stamp is refused. The caller must be a member of the bundle's owner group, and a deploy principal may only remove for its own group. A bundle belongs to the group that first recorded a deploy of it or imported a dashboard for it; a call that names another group answers 403, an administrator's too.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
bundle | query | string | Yes | The bundle that imported the dashboard |
id | path | integer | Yes | Superset's numeric dashboard id |
ownerGroup | query | string | Yes | The bundle's owner group; the caller must be a member |
Responses
| Code | Description |
|---|---|
204 | Deleted |
400 | The bundle name or owner group is empty |
401 | Not signed in |
403 | The caller is not a member of the bundle's owner group, or the dashboard is not stamped by this bundle, or the bundle belongs to another group |
404 | Superset has no such dashboard |
502 | Superset answered an error, or could not be reached |
503 | This instance has no Superset service user |
GET /api/dashboards/{id}/export
Operation id dashboards_export: in Python client.call("dashboards_export", …), on the command line stardelt api dashboards_export.
The ZIP archive of one dashboard for a bundle's author: the caller must be a member of the bundle's owner group, and a deploy principal may only export its own group's dashboards. A dashboard whose stamp names another bundle or another group is refused; an unstamped one is the author's to export. The archive's databases/ folder is dropped server-side, so a bundle never receives the target's connection URI. A bundle belongs to the group that first recorded a deploy of it or imported a dashboard for it; a call that names another group answers 403, an administrator's too.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
bundle | query | string | Yes | The bundle that owns the dashboard |
id | path | integer | Yes | Superset's numeric dashboard id |
ownerGroup | query | string | Yes | The bundle's owner group; the caller must be a member |
Responses
| Code | Description |
|---|---|
200 | The ZIP archive Superset exports for one dashboard, without databases/ |
400 | The bundle name or owner group is empty |
401 | Not signed in |
403 | The caller is not a member of the bundle's owner group, a deploy principal asks for another group's dashboards, or the dashboard carries another bundle's or group's stamp, or the bundle belongs to another group |
404 | Superset has no such dashboard |
502 | Superset answered an error, or could not be reached |
503 | This instance has no Superset service user |