Skip to content

Get



GET /api/v1/dashboard/carousel/{carousel_uuid}/get

Overview

Read the specified carousel configuration and its dashboard names.

Before Calling and Usage Steps

Get the carousel UUID from the carousel list. Invalid dashboard references are cleaned up when read. If there are historical invalid references, dashboardUUIDs in this read may still contain old values; use dashboardInfo for the valid dashboards that have been resolved. Reading again shows the cleaned list.

Route Parameters

Parameter Type Required Description
carousel_uuid string Y Carousel configuration UUID.
Example: csel_example
How to obtain or enter: Under the same workspace and caller identity, copy from content[].uuid in the carousel list, or use content.uuid from the create response.

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 the required permission from API Key Management in the target workspace.

Request Example

curl --get 'https://openapi.guance.com/api/v1/dashboard/carousel/csel_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 Internal ID of the carousel record.
content.uuid string Carousel configuration UUID, used for details, modification, and deletion.
content.accountUUID string ID of the caller identity to which the carousel belongs.
content.workspaceUUID string UUID of the workspace to which the carousel belongs.
content.name string Carousel name.
content.intervalTime string Saved carousel interval string.
content.dashboardUUIDs array<string> Saved dashboard UUIDs, in carousel order.
content.status integer Record status.
content.createAt number Creation time, Unix seconds.
content.updateAt number Last update time, Unix seconds. -1 if never updated.
content.deleteAt number Deletion time, Unix seconds. -1 if not deleted.
content.creator string Creator identity ID.
content.updator string Last updater identity ID; empty string if never updated.
content.declaration object or null Workspace public declaration.
content.dashboardInfo array<object> In carousel order. Each item is a single-key mapping where the key is the dashboard UUID and the value is the dashboard name.
{
  "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": {},
    "dashboardInfo": [
      {
        "dsbd_example": "生产巡检"
      }
    ]
  },
  "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 Handling
404 ft.DashboardCarouselObjectNotExist The configuration has been deleted, does not exist, or does not belong to the current caller identity and workspace The carousel object does not exist Use the same Key to confirm from the carousel list that the configuration still exists, then use the actual UUID.

Feedback

Is this page helpful?