Download dashboard chart result

Download a CSV file of the specified chart results. The successful response is a CSV file, not JSON.

HTTP
GET $CLOUDSIGMA_API_BASE/data-dashboards/{dashboard_id}/charts/{chart_id}/result/download

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and target workspace ID that can access the target workspace. Get the kanban ID from Query data kanban list. Get the chart ID from Query data dashboard details.

Request parameters

Replace $DASHBOARD_ID, $CHART_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl -X GET "$CLOUDSIGMA_API_BASE/data-dashboards/$DASHBOARD_ID/charts/$CHART_ID/result/download" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -o dashboard-chart-result.csv

Parameter

Type

Required

Description

dashboard_id

string

Yes

Data dashboard ID.

chart_id

string

Yes

Chart ID.

Query parameters

Parameter

Type

Required

Description

at

string

No

RFC 3339 point in time.

at Select snapshots based on result completion time. The result is no later than the specified moment and no earlier than the starting point of the current snapshot. The service can retrieve at most 20 pages, 100 items per page, and the upper limit of the retrieval time is 5 seconds, so the snapshot at the specified time may not be found.

When at is more than 1 minutes later than the current time on the server, HTTP 400 is returned. The configuration update time is different from the results completion time.

Successful response

Text
column_a,column_b
1,example

Error response

JSON
{
  "code": 400,
  "message": "请求参数无效"
}

Field

Type

Description

code

integer or string

Error code or status code.

message

string

error message.

Last updated on