Skip to content

List



GET /api/v1/dashboard/carousel/list

Overview

Lists the carousel configurations in the workspace for the current calling identity.

Before You Call and Usage Steps

Query with the workspace and calling identity used at creation time. The list is sorted by record ID in descending order and is not paginated. Reading cleans up dashboard references in the configuration that have been deleted or are not in this workspace. Copy the uuid from the result to call the carousel details.

Request Headers

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

Query Parameters

Parameter Type Required Description
search string Performs a contains match on the carousel name, case-insensitive. If omitted or given a blank value, all visible results are listed.
Allows null: False
Example: 巡检
How to get or fill in: Choose a keyword from known carousel names.

Request Example

curl --get 'https://openapi.guance.com/api/v1/dashboard/carousel/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 array<object> List of configurations. An empty array when no records match.
content[].id integer Internal number of the carousel record.
content[].uuid string UUID of the carousel configuration, used for details, modification, and deletion.
content[].accountUUID string ID of the calling identity that the carousel belongs to.
content[].workspaceUUID string UUID of the workspace that the carousel belongs to.
content[].name string Carousel name.
content[].intervalTime string Saved carousel interval string.
content[].dashboardUUIDs array<string> Saved dashboard UUIDs, arranged in carousel order.
content[].status integer Record status.
content[].createAt number Creation time, in Unix seconds.
content[].updateAt number Last update time, in Unix seconds. -1 if never updated.
content[].deleteAt number Deletion time, in Unix seconds. -1 if not deleted.
content[].creator string Identity ID of the creator.
content[].updator string Identity ID of the last updater; an empty string if never updated.
content[].declaration object or null Public declaration of the workspace.
{
  "code": 200,
  "content": [
    {
      "id": 10,
      "uuid": "csel_example",
      "accountUUID": "wsak_example",
      "workspaceUUID": "wksp_example",
      "name": "生产巡检轮播",
      "intervalTime": "30s",
      "dashboardUUIDs": [
        "dsbd_example"
      ],
      "status": 0,
      "createAt": 1785427200,
      "updateAt": -1,
      "deleteAt": -1,
      "creator": "wsak_example",
      "updator": "",
      "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 example.

Feedback

Is this page helpful?