List¶
GET /api/v1/dashboard/inner_list
Overview¶
Lists the existing user built-in views in the current workspace.
Prerequisites and Usage Steps¶
You can search by name. Results are returned in descending order by record ID, with no pagination. Use content.data[].uuid to request Built-in View Details. If no views match the criteria, an empty list is returned. The list does not separately list system templates that are not installed. Private items may also appear in the list; details and subsequent operations still require passing the permission check for that view.
Request Headers¶
| Parameter Name | 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 Name | Type | Required | Description |
|---|---|---|---|
| search | string | Searches for names containing the keyword. If omitted or empty, no name filtering is applied. Allows null: False Example: 主机How to obtain or enter: Use a keyword from the name of the built-in view you want to find. |
Additional Parameter Notes¶
Binding conditions are provided only in the details. Filtering is based on view name.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/dashboard/inner_list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode 'search=主机'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.data | array<object> |
Built-in view list. |
| content.data[].id | integer | Built-in view record ID. |
| content.data[].uuid | string | Built-in view UUID. |
| content.data[].workspaceUUID | string | Workspace to which it belongs. |
| content.data[].name | string | Built-in view name. |
| content.data[].desc | string | Built-in view description. |
| content.data[].identifier | string | Custom identifier; can be empty. |
| content.data[].ownerType | string | Built-in view resource ownership; for built-in views, this is inner. |
| content.data[].type | string | Built-in view type, for example CUSTOM. |
| content.data[].isPublic | integer | Detail access scope. 1 indicates public; 0 indicates accessible only to the creator identity. |
| content.data[].chartPos | array<object> |
Chart layout array, containing chartUUID and layout object pos. |
| content.data[].chartPos[].chartUUID | string | UUID of the referenced chart. |
| content.data[].chartPos[].pos | object | Position and size of the layout, such as x, y, w, and h. |
| content.data[].chartGroupPos | array<string> |
Chart group arrangement order. |
| content.data[].iconSet | object | Icon configuration. |
| content.data[].extend | object | Built-in view extension information. |
| content.data[].mapping | array<object> |
Variable field mapping information. |
| content.data[].dashboardBindSet | array | View binding configuration. |
| content.data[].createdWay | string | Resource creation source. |
| content.data[].openPermissionSet | boolean | Entity record permission configuration switch. |
| content.data[].permissionSet | array<string> |
Operation permission principal UUIDs in the record. |
| content.data[].readPermissionSet | array<string> |
Read permission principal UUIDs in the record. |
| content.data[].status | integer | Record status. |
| content.data[].creator | string | Creator identity ID. |
| content.data[].updator | string | Most recent updater identity ID; can be empty. |
| content.data[].createAt | number | Creation time, in Unix seconds. |
| content.data[].updateAt | number | Update time, in Unix seconds. Can be -1 if not updated. |
| content.data[].deleteAt | number | Deletion time, in Unix seconds. -1 if not deleted. |
| content.data[].innerTemplate | object or null | When a system built-in template is matched by view name, includes a template summary. |
| content.data[].innerTemplate.uuid | string | UUID of the matched system template. |
| content.data[].innerTemplate.name | string | System template name. |
| content.data[].innerTemplate.path | string | System template path. |
| content.declaration | object or null | Public declaration of the workspace. |
{
"code": 200,
"content": {
"data": [
{
"id": 72,
"uuid": "dsbd_inner_example",
"name": "主机详情内置视图",
"desc": "根据主机查看运行状态",
"workspaceUUID": "wksp_example",
"identifier": "host-overview",
"ownerType": "inner",
"type": "CUSTOM",
"isPublic": 1,
"chartPos": [],
"chartGroupPos": [],
"iconSet": {},
"extend": {},
"mapping": [],
"dashboardBindSet": [],
"createdWay": "manual",
"openPermissionSet": false,
"permissionSet": [],
"readPermissionSet": [],
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"innerTemplate": null
}
],
"declaration": {}
},
"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 |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Using an undeclared Query parameter or a parameter that violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |