Skip to content

Get



GET /api/v1/dashboards/{dashboard_uuid}/get

Overview

Retrieve the details, chart layout, and related information of a specified dashboard.

Before Calling and Usage Steps

Get the actual dashboard UUID from the dashboard list. Use the UUID in the response to verify the target, and use extend, mapping, or tag information to prepare the next configuration update. Use the export API when you need a complete template that can be imported.

Route Parameters

Parameter Name Type Required Description
dashboard_uuid string Y UUID of the target dashboard.
Example: dsbd_example
How to get or enter: Copy content.data[].uuid from the dashboard list, or use content.uuid from the creation result.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to get or enter: Obtain an OpenAPI Key with the required operation permission from API Key Management in the target workspace.

Request Example

curl --get 'https://openapi.guance.com/api/v1/dashboards/dsbd_example/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer Dashboard record ID.
content.uuid string Dashboard UUID, used for details, modification, deletion, and carousel.
content.workspaceUUID string Workspace to which the dashboard belongs.
content.name string Dashboard display name.
content.desc string Dashboard description.
content.identifier string Custom external identifier; can be empty.
content.ownerType string Resource type ownership; usually node for dashboards.
content.type string Dashboard type, for example CUSTOM.
content.chartPos array<object> Chart layout array. For each item, chartUUID is the chart identifier and pos is the layout object.
content.chartPos[].chartUUID string UUID of the associated chart.
content.chartPos[].pos object Chart size and position, for example x, y, w, h.
content.chartGroupPos array<string> Arrangement order of chart group identifiers.
content.iconSet object Icon settings.
content.isPublic integer 1 public, 0 visible only to the creator identity, -1 custom permissions.
content.extend object Extended configuration.
content.mapping array<object> Variable field mapping.
content.createdWay string Resource creation source.
content.dashboardBindSet array View binding configuration.
content.openPermissionSet boolean Whether custom permissions are currently enabled.
content.permissionSet array<string> List of UUIDs of operation permission principals.
content.readPermissionSet array<string> List of UUIDs of read permission principals.
content.tagInfo array<object> Tag information related to this response.
content.tagInfo[].id string Tag identifier, same as uuid.
content.tagInfo[].uuid string Tag UUID.
content.tagInfo[].name string Name of the associated tag.
content.tagInfo[].description string Tag description.
content.tagInfo[].colour string Tag color.
content.tagInfo[].scope array<string> Scope in which the tag takes effect.
content.tagInfo[].tagPermissionInfo object Operation and read permission information included when tag authorization exists.
content.status integer Record status.
content.creator string Creator identity ID.
content.updator string Identity ID of the last updater; may be empty if no update has occurred.
content.createAt number Creation time, in Unix seconds.
content.updateAt number Last update time, in Unix seconds. Can be -1 if no update has occurred.
content.deleteAt number Deletion time, in Unix seconds. -1 if not deleted.
content.creatorInfo object Creator information; can be an empty object.
content.updatorInfo object Last updater information; can be an empty object.
content.isFavorite boolean Whether the current identity has favorited it. In detail results, this usually appears only when it has been favorited.
content.isIndexDashboard boolean Whether it is the home dashboard of the current workspace.
content.refCheckerUUIDs array<string> UUIDs of referenced Monitors.
content.allow_operation boolean or null Operation hint after permission calculation; when present, used to determine whether editing is allowed.
content.permissionSetInfo object When an operation permission list is configured, returns principal details by UUID.
content.readPermissionSetInfo object When a read permission list is configured, returns principal details by UUID.
content.extend.defaultTargetWorkspaceName string Display name corresponding to the legacy single default query workspace field. May be provided in details.
content.extend.defaultTargetWorkspaceNames array<string> Display names corresponding to the default query workspace list when it is configured. May be provided in details.
content.declaration object or null Public declaration of the workspace.
{
  "code": 200,
  "content": {
    "id": 21,
    "uuid": "dsbd_example",
    "name": "生产巡检",
    "desc": "生产服务巡检指标",
    "workspaceUUID": "wksp_example",
    "identifier": "prod-check",
    "ownerType": "node",
    "type": "CUSTOM",
    "chartPos": [],
    "chartGroupPos": [],
    "iconSet": {},
    "isPublic": 1,
    "extend": {},
    "mapping": [],
    "createdWay": "manual",
    "dashboardBindSet": [],
    "openPermissionSet": false,
    "permissionSet": [],
    "readPermissionSet": [],
    "tagInfo": [],
    "creator": "wsak_example",
    "updator": "",
    "createAt": 1785427200,
    "updateAt": -1,
    "deleteAt": -1,
    "status": 0,
    "declaration": {},
    "creatorInfo": {},
    "updatorInfo": {},
    "isIndexDashboard": false,
    "refCheckerUUIDs": [],
    "allow_operation": true
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
404 ft.NotFoundView The target dashboard does not exist, has been deleted, or is not in the current workspace The specified view was not found Use a UUID returned by the dashboard list in the current workspace.
403 ft.ForbiddenDashboardQueryOperation The calling identity does not have read permission for the target dashboard You do not have view permission for dashboard [{}] Confirm that read permission for the target has been granted to the calling identity.

Feedback

Is this page helpful?