Updated on 2025-10-30 GMT+08:00

Querying Dashboards

Function

This API is used to query dashboards.

Constraints

This API is not supported in the following regions: CN East-Qingdao, LA-Mexico City1, TR-Istanbul, AP-Jakarta, ME-Riyadh, and AP-Manila.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    ces:dashboards:list

    List

    dashboard *

    -

    -

    -

    -

    g:EnterpriseProjectId

URI

GET /v2/{project_id}/dashboards

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. It is used to specify the project that an asset belongs to. You can query the assets of a project by project ID. You can obtain the project ID from the API or console. For details, see Obtaining a Project ID.

Constraints

N/A

Range

1 to 64 characters

Default Value

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_id

No

String

Definition

Enterprise project ID.

Constraints

N/A

Range

The value allows 36 characters. It can only contain lowercase letters, digits, hyphens (-), and underscores (_). You can customize an enterprise project ID. The value can also be 0 (default enterprise project ID) or all_granted_eps (all enterprise project IDs).

Default Value

N/A

is_favorite

No

Boolean

Definition

Whether a dashboard in an enterprise project is added to favorites.

Constraints

If this parameter is specified, enterprise_id is mandatory.

Range

  • true: added to favorites

  • false: not added to favorites

Default Value

N/A

dashboard_name

No

String

Definition

Dashboard name.

Constraints

N/A

Range

The value allows 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).

Default Value

N/A

dashboard_id

No

String

Definition

Dashboard ID.

Constraints

N/A

Range

The value starts with db and is followed by 22 characters of letters, digits, or a combination of both. The total length is 24 characters.

Default Value

N/A

dashboard_type

No

String

Definition

Dashboard type.

Constraints

N/A

Range

  • monitor_dashboard: dashboard

  • other: custom dashboard

Default Value

N/A

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

No

String

Definition

User token.

Constraints:

None

Value range:

The value can contain 1 to 16,384 characters.

Default value:

None

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

dashboards

Array of DashBoardInfo objects

Description

Dashboard list.

Table 5 DashBoardInfo

Parameter

Type

Description

dashboard_id

String

Description

Dashboard ID.

Range

The value starts with db and is followed by 22 characters of letters, digits, or a combination of both. The total length is 24 characters.

dashboard_name

String

Definition

Custom dashboard name.

Range

The value allows 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).

enterprise_id

String

Definition

Enterprise project ID.

Range

The value allows 36 characters. It can only contain lowercase letters, digits, hyphens (-), and underscores (_). You can customize an enterprise project ID. It can also be 0 (default enterprise project ID).

creator_name

String

Definition

Name of the user who created the dashboard.

Range

The value allows 1 to 128 characters and can only contain letters, digits, underscores (_), and hyphens (-).

create_time

Long

Definition

Dashboard creation time.

Range

1111111111111 to 9999999999999

widgets_num

Integer

Definition

Total number of graphs on the dashboard.

Range

0 to 50

namespace

String

Definition

Namespace of a service. For details about the namespace of each service, see Namespaces.

Range

The value is in the service.item format. The values of service and item must be a string, starting with a letter and containing only digits (0–9), letters (case-insensitive), and underscores (_). The value must contain 3 to 32 characters.

sub_product

String

Definition

Sub-product ID.

Range

[1,128]

dashboard_template_id

String

Definition

Dashboard template ID.

Range

The value starts with mb and is followed by 22 characters of letters, digits, or a combination of both. The total length is 24 characters.

row_widget_num

Integer

Definition

Number of graphs per row.

Range

  • 0: You can customize top and left of the graph.

  • 1: one graph per row

  • 2: two graphs per row

  • 3: three graphs per row

is_favorite

Boolean

Definition

Whether a dashboard is added to favorites.

Range

  • true: added to favorites

  • false: not added to favorites

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Status codes customized by each cloud service when a request error occurs.

error_msg

String

Request error message.

request_id

String

Request ID.

Status code: 401

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Status codes customized by each cloud service when a request error occurs.

error_msg

String

Request error message.

request_id

String

Request ID.

Status code: 500

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Status codes customized by each cloud service when a request error occurs.

error_msg

String

Request error message.

request_id

String

Request ID.

Example Requests

None

Example Responses

Status code: 200

OK

{
  "dashboards" : [ {
    "dashboard_id" : "dbxxxxxxxxxxxxxxxxxxxxxx",
    "dashboard_name" : "dashboard_name",
    "enterprise_id" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "creator_name" : "creator_name",
    "create_time" : 1111111111111,
    "row_widget_num" : 3,
    "is_favorite" : false
  } ]
}

Status Codes

Status Code

Description

200

OK

400

The server failed to process the request.

401

Token authentication is required.

500

Failed to complete the request because of an internal server error.

Error Codes

See Error Codes.