Skip to content

List



GET /api/v1/viewer/list

Overview

List the Explorers visible in the current Workspace with pagination.

Prerequisites and Usage Steps

You can combine name, tags, and filter scope. By default, favorites are listed first, then results are sorted by update time in descending order (creation time is used when no update time is available). If sortKey is explicitly specified, results are sorted by the specified field. After obtaining content.data[].uuid, you can query Explorer details. If there are no results, the list is empty.

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.

Query Parameters

Parameter Type Required Description
sortKey string If omitted, the default sorting is used. If a field is explicitly selected, results are sorted by that field.
Null allowed: False
Empty string allowed: True
Allowed values: ['name', 'updateAt']
Example: updateAt
How to obtain or enter: Select name or updateAt as needed for display.
sortMethod string Sort direction, default desc.
Null allowed: False
Empty string allowed: True
Allowed values: ['desc', 'asc']
Example: desc
How to obtain or enter: Pass asc for ascending order or desc for descending order. Omit when no control is needed.
search string Match by name containing the keyword. If omitted or blank, names are not filtered.
Null allowed: False
Example: Inspection
How to obtain or enter: Select keywords from the names of existing Explorers.
pageIndex integer Page number, default 1.
Null allowed: False
$minValue: 1
Example: 1
How to obtain or enter: Pages start at 1.
pageSize integer Number of items per page, default 50, range 1 to 100.
Null allowed: False
$minValue: 1
$maxValue: 100
Example: 20
How to obtain or enter: Enter the number required per page.
filter string Default total. total: all visible; favorite: favorites; import: import source; myCreate: created by the current identity; oftenBrowse: recently viewed, with ofenBrowse supported for compatibility; selfVisibleOnly: private Explorers of the current identity.
Null allowed: False
Allowed values: ['total', 'favorite', 'import', 'myCreate', 'oftenBrowse', 'ofenBrowse', 'selfVisibleOnly']
Example: total
How to obtain or enter: Select the required filter value from those described in the parameter description.
tagNames json Match by any tag name.
Null allowed: False
Example: ["team:ops"]
How to obtain or enter: Select tags from content.tagInfo[].name in the details, form a JSON string array, and URL-encode it.

Additional Parameter Notes

Pagination information is at the top level of the response. The Query tagNames parameter is expressed as a JSON string array.

Request Example

curl --get 'https://openapi.guance.com/api/v1/viewer/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode 'search=Inspection' \
  --data-urlencode pageIndex=1 \
  --data-urlencode pageSize=20 \
  --data-urlencode sortKey=updateAt \
  --data-urlencode sortMethod=desc

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.data array<object> Explorer objects on the current page.
content.data[].id integer Explorer record number.
content.data[].uuid string Explorer UUID.
content.data[].workspaceUUID string Workspace to which the Explorer belongs.
content.data[].name string Explorer name.
content.data[].desc string Explorer description.
content.data[].identifier string Custom identifier, which may be empty.
content.data[].ownerType string Explorer resource ownership, usually viewer.
content.data[].type string Explorer type, for example CUSTOM.
content.data[].isPublic integer Visibility scope of the current resource. 1 means public, and 0 means visible only to the creating identity.
content.data[].chartPos array<object> Chart layout array, containing chartUUID and the layout object pos.
content.data[].chartPos[].chartUUID string UUID of the referenced chart.
content.data[].chartPos[].pos object Position and dimensions of the layout, such as x, y, w, and h.
content.data[].chartGroupPos array<string> Chart group order.
content.data[].iconSet object Icon configuration.
content.data[].extend object Explorer 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 Permission configuration switch for entity records.
content.data[].permissionSet array<string> UUIDs of operation permission principals in the record.
content.data[].readPermissionSet array<string> UUIDs of read permission principals in the record.
content.data[].tagInfo array<object> Associated tag information.
content.data[].tagInfo[].id string Identifier identical to the tag UUID.
content.data[].tagInfo[].uuid string Tag UUID.
content.data[].tagInfo[].name string Tag name.
content.data[].tagInfo[].description string Tag description.
content.data[].tagInfo[].colour string Tag color.
content.data[].tagInfo[].scope array<string> Effective scope of the tag.
content.data[].tagInfo[].tagPermissionInfo object Read/write authorization information when present.
content.data[].status integer Record status.
content.data[].creator string Creator identity ID.
content.data[].updator string ID of the identity that last updated the record; may be empty.
content.data[].createAt number Creation time, Unix seconds.
content.data[].updateAt number Update time, Unix seconds. May be -1 when not updated.
content.data[].deleteAt number Deletion time, Unix seconds. -1 when not deleted.
content.data[].creatorInfo object Creator identity information; empty object if not found.
content.data[].updatorInfo object Last updater identity information; empty object if not found.
content.data[].creatorInfo.uuid string May be provided when the corresponding identity is found. Identity identifier.
content.data[].creatorInfo.status integer May be provided when the corresponding identity is found. Account status.
content.data[].creatorInfo.wsAccountStatus integer May be provided when the corresponding identity is found. Workspace member status.
content.data[].creatorInfo.username string May be provided when the corresponding identity is found. Login name.
content.data[].creatorInfo.name string May be provided when the corresponding identity is found. Display name.
content.data[].creatorInfo.iconUrl string May be provided when the corresponding identity is found. Avatar URL.
content.data[].creatorInfo.email string May be provided when the corresponding identity is found. Account email. For API Key identities, the identifier may be returned.
content.data[].creatorInfo.mobile string May be provided when the corresponding identity is found. Contact information.
content.data[].creatorInfo.countryCode string May be provided when the corresponding identity is found. Mobile number country or region code.
content.data[].creatorInfo.acntWsNickname string May be provided when the corresponding identity is found. Nickname in the Workspace.
content.data[].updatorInfo.uuid string May be provided when the corresponding identity is found. Identity identifier.
content.data[].updatorInfo.status integer May be provided when the corresponding identity is found. Account status.
content.data[].updatorInfo.wsAccountStatus integer May be provided when the corresponding identity is found. Workspace member status.
content.data[].updatorInfo.username string May be provided when the corresponding identity is found. Login name.
content.data[].updatorInfo.name string May be provided when the corresponding identity is found. Display name.
content.data[].updatorInfo.iconUrl string May be provided when the corresponding identity is found. Avatar URL.
content.data[].updatorInfo.email string May be provided when the corresponding identity is found. Account email. For API Key identities, the identifier may be returned.
content.data[].updatorInfo.mobile string May be provided when the corresponding identity is found. Contact information.
content.data[].updatorInfo.countryCode string May be provided when the corresponding identity is found. Mobile number country or region code.
content.data[].updatorInfo.acntWsNickname string May be provided when the corresponding identity is found. Nickname in the Workspace.
content.data[].isFavorite boolean Favorite status for the current identity. May be omitted from details when not favorited.
content.data[].isIndexDashboard boolean Whether it is the homepage view of the current Workspace.
content.data[].refCheckerUUIDs array<string> Identifiers of associated monitors.
content.declaration object or null Public declaration of the Workspace.
pageInfo object Pagination object at the top level of the response.
pageInfo.pageIndex integer Current page number.
pageInfo.pageSize integer Number of items per page.
pageInfo.count integer Number of items on this page.
pageInfo.totalCount integer Total number of matching records; the current implementation may return 0 for empty pages.
{
  "code": 200,
  "content": {
    "data": [
      {
        "id": 25,
        "uuid": "dsbd_view_example",
        "name": "Host Inspection Explorer",
        "desc": "Host inspection and status verification",
        "workspaceUUID": "wksp_example",
        "identifier": "",
        "ownerType": "viewer",
        "type": "CUSTOM",
        "isPublic": 1,
        "chartPos": [],
        "chartGroupPos": [],
        "iconSet": {},
        "extend": {},
        "mapping": [],
        "dashboardBindSet": [],
        "createdWay": "manual",
        "openPermissionSet": false,
        "permissionSet": [],
        "readPermissionSet": [],
        "tagInfo": [],
        "status": 0,
        "creator": "wsak_example",
        "updator": "",
        "createAt": 1785427200,
        "updateAt": -1,
        "deleteAt": -1,
        "creatorInfo": {},
        "updatorInfo": {},
        "isFavorite": false,
        "isIndexDashboard": false,
        "refCheckerUUIDs": []
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE",
  "pageInfo": {
    "pageIndex": 1,
    "pageSize": 20,
    "count": 1,
    "totalCount": 1
  }
}

Error Responses

For authentication, rate limiting, and common request errors, see Public 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.
500 ft.InternalServerError tagNames parsing fails, pagination values cannot be converted to integers, or the sort method cannot be handled by the controller Internal error Pass the encoded JSON array string as shown in the example, ensure pagination values are integers, and use only asc or desc for the sort method.

Feedback

Is this page helpful?