Get¶
GET /api/v1/dashboards/list
Overview¶
List dashboards readable by the current calling identity in pages.
Before You Call and Usage Steps¶
You can filter by name and tag. By default, favorites of the current identity are returned first, followed by the remaining items in descending order of update time; records without an update time use the creation time. Use the uuid of a response item to call the details, modify, export, or delete operations. An empty page can end the traversal when data.length is 0.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the Workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key management in the target Workspace. |
Query Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | Performs a contains match on dashboard names; if omitted or blank, no filtering by name is performed. Null allowed: False Example: 巡检How to obtain or enter: Copy a keyword from an existing dashboard name. |
|
| tagNames | json | JSON array string of tag names. Multiple names are matched using OR. Null allowed: False Example: ["team:ops"]How to obtain or enter: Obtain values from content.tagInfo[].name in Dashboard Details, form a JSON string array, and URL-encode it. |
|
| pageIndex | integer | Page number, default 1. Null allowed: False $minValue: 1 Example: 1How to obtain or enter: Increment starting from 1. |
|
| pageSize | integer | Number of records per page, default 50, range 1 to 100. Null allowed: False $minValue: 1 $maxValue: 100 Example: 20How to obtain or enter: Enter the number per page as needed for the call. |
Additional Parameter Notes¶
tagNames accepts a URL-encoded JSON string array. The pagination object is at the top level of the response.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/dashboards/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode 'search=巡检' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=20
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.data | array<object> |
Dashboards that match and are visible on the current page. |
| content.data[].id | integer | Dashboard record ID. |
| content.data[].uuid | string | Dashboard UUID, used for details, modification, deletion, and carousel. |
| content.data[].workspaceUUID | string | Workspace it belongs to. |
| content.data[].name | string | Dashboard display name. |
| content.data[].desc | string | Dashboard description. |
| content.data[].identifier | string | External custom identifier; can be empty. |
| content.data[].ownerType | string | Resource type ownership; for dashboards, this is usually node. |
| content.data[].type | string | Dashboard type, for example CUSTOM. |
| content.data[].chartPos | array<object> |
Chart layout array. In each item, chartUUID is the chart identifier and pos is the layout object. |
| content.data[].chartPos[].chartUUID | string | UUID of the associated chart. |
| content.data[].chartPos[].pos | object | Chart size and position, for example x, y, w, h. |
| content.data[].chartGroupPos | array<string> |
Order of chart group identifiers. |
| content.data[].iconSet | object | Icon settings. |
| content.data[].isPublic | integer | 1 public, 0 visible only to the creating identity, -1 custom permissions. |
| content.data[].extend | object | Extended configuration. |
| content.data[].mapping | array<object> |
Variable field mapping. |
| content.data[].createdWay | string | Resource creation source. |
| content.data[].dashboardBindSet | array | View binding configuration. |
| content.data[].openPermissionSet | boolean | Whether custom permissions are currently enabled. |
| content.data[].permissionSet | array<string> |
List of operation permission subject UUIDs. |
| content.data[].readPermissionSet | array<string> |
List of read permission subject UUIDs. |
| content.data[].tagInfo | array<object> |
Tag information related to this response. |
| content.data[].tagInfo[].id | string | Tag identifier, same as uuid. |
| content.data[].tagInfo[].uuid | string | Tag UUID. |
| content.data[].tagInfo[].name | string | Associated tag name. |
| content.data[].tagInfo[].description | string | Tag description. |
| content.data[].tagInfo[].colour | string | Tag color. |
| content.data[].tagInfo[].scope | array<string> |
Effective scope of the tag. |
| content.data[].tagInfo[].tagPermissionInfo | object | Operation and read permission information included when tag authorization exists. |
| content.data[].status | integer | Record status. |
| content.data[].creator | string | Creator identity ID. |
| content.data[].updator | string | Identity ID of the most recent updater; may be empty if no update has occurred. |
| content.data[].createAt | number | Creation time, Unix seconds. |
| content.data[].updateAt | number | Most recent update time, Unix seconds. Can be -1 if no update has occurred. |
| content.data[].deleteAt | number | Deletion time, Unix seconds. -1 if not deleted. |
| content.data[].creatorInfo | object | Creator information; can be an empty object. |
| content.data[].updatorInfo | object | Most recent updater information; can be an empty object. |
| content.data[].isFavorite | boolean | Whether the current identity has favorited it. In detail results, it usually appears only when favorited. |
| content.data[].isIndexDashboard | boolean | Whether it is the home dashboard of the current Workspace. |
| content.data[].refCheckerUUIDs | array<string> |
Referenced Monitor UUIDs. |
| content.data[].allow_operation | boolean or null | Operation hint after permission calculation; when present, used to determine whether editing is allowed. |
| content.data[].permissionSetInfo | object | When an operation permission list is configured, returns subject details by UUID. |
| content.data[].readPermissionSetInfo | object | When a read permission list is configured, returns subject details by UUID. |
| content.declaration | object or null | Public declaration of the Workspace. |
| pageInfo | object | Pagination information at the top level of the response. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Number of records per page. |
| pageInfo.count | integer | Number of records on this page. |
| pageInfo.totalCount | integer | Total number of matching records; if this page has no results, the current implementation may return 0. |
{
"code": 200,
"content": {
"data": [
{
"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,
"creatorInfo": {},
"updatorInfo": {},
"isFavorite": false,
"isIndexDashboard": false,
"refCheckerUUIDs": [],
"allow_operation": true
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 20,
"count": 1,
"totalCount": 1
}
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Uses an undeclared Query parameter or a parameter violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 500 | ft.InternalServerError | tagNames cannot be parsed as JSON, or pagination values cannot be converted to integers in the controller | Internal error | Pass a URL-encoded JSON string array, and pass the page number and record count as decimal integers. |