List¶
GET /api/v1/snapshots/list
Overview¶
Read the page snapshots visible to the current Key in a paginated manner.
Prerequisites and Usage Steps¶
The current Key requires routine.defaultAccess. Only the current Key's workspace is supported; this public endpoint does not accept cross-workspace/filterType/needPaging/sorting parameters. Only snapshots with isHidden=0, not deleted, and either isPublic=1 or with a private creator equal to the current Key's principal are listed; if the current Key's creator is not the current calling principal, that creator's private snapshots are not inherited automatically. Results are sorted by id in descending order; the default pageSize=100, and the example value 10 is not the default.
content keeps the data/declaration/workspaceVersionType objects, and pageInfo is at the top level of the response. When type=RumHeatMap, the RUM status/jsonContent is attached; other types may include dashboardIsPublic. Displaying a summary is not an additional access grant; historically deleted applications may still have a summary. Reads only return the configuration and the saved scope; queries inside the snapshot are not executed, and share configuration/share codes are not returned. An old rules format does not mean all subsequent namespaces are queryable; share access may require regeneration.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from API Key management in the target workspace. |
Query Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| type | string | Optional exact-match filter string; leading and trailing whitespace is trimmed; omitted/empty means no filtering; there is no unified public enumeration. Allows null: False Example: LogHow to obtain or fill in: Take it from the corresponding page or an existing snapshot type, such as Log/RumHeatMap. |
|
| search | string | Optional SQL LIKE fuzzy match with leading and trailing whitespace trimmed; %/_ retain wildcard semantics.Allows null: False Example: 支付How to obtain or fill in: The caller searches by name. |
|
| pageIndex | integer | Optional, >=1, default 1; clients use an integer string. Allows null: False $minValue: 1 Example: 1How to obtain or fill in: Paginate according to the top-level pageInfo. |
|
| pageSize | integer | Optional, 1–100, default 100; do not treat the old example value 10 as the default. Allows null: False $minValue: 1 $maxValue: 100 Example: 100How to obtain or fill in: Control the page size according to the read volume. |
Additional Parameter Notes¶
A snapshot saves the page configuration and the server-side query scope; internet sharing requires separately creating a share configuration. snap_, share_, the first-hop code, and the second-segment token are different identifiers.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/snapshots/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode type=Log \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=100
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Paginated content object. |
| content.data | array<object> |
Snapshots visible on this page; [] if there is no match. |
| content.data[].id | integer | Database number of the saved snapshot; use uuid for subsequent lookups. |
| content.data[].uuid | string | Snapshot UUID, prefixed with snap_. |
| content.data[].status | integer | Resource status; usually 0; soft-deleted entries with 3 are excluded from queries. |
| content.data[].creator | string | UUID of the original creating principal; force overwrite does not necessarily change creator; for the current permission holder, see accountUUID. |
| content.data[].updator | string | Principal of the most recent overwrite/delete update. |
| content.data[].createAt | number | Creation/regeneration time in Unix seconds; force overwrite using time.time() may carry decimals in the response. |
| content.data[].updateAt | integer | Update time in Unix seconds; may be -1 if never updated. |
| content.data[].deleteAt | integer | Deletion time in Unix seconds; usually -1 if not deleted. |
| content.data[].workspaceUUID | string | Workspace that the current Key belongs to. |
| content.data[].name | string | Snapshot name; uniquely matched within the same workspace and same type. |
| content.data[].type | string | Page snapshot kind, such as Log; the save side has no public enumeration validation. |
| content.data[].filterType | string | Saved filter category; empty when omitted at creation; force overwriting with the same name does not update this field. |
| content.data[].isPublic | integer | Visibility of the current snapshot: 1 means public display within the workspace, 0 means private; the list may include private snapshots visible to the current identity, which does not mean public internet sharing. |
| content.data[].isHidden | integer | Hidden flag; 0 means it can be listed by this API; hidden report snapshots are not listed. |
| content.data[].accountUUID | string | UUID of the principal whose permissions were captured at generation/last force overwrite; may differ from creator. |
| content.data[].content | object | Saved page/query configuration, not a copy of real telemetry data; dynamic fields are interpreted according to the corresponding page protocol. |
| content.data[].content.routeName | string | Console route identifier, for example the Log Explorer Log or the heatmap RumHeatMap; kept compatible with the top-level type. |
| content.data[].content.routeParams | object | Path parameter object for the corresponding page. |
| content.data[].content.routeParams.source | string | Commonly all for the Log Explorer; the actual value is determined by the source page. |
| content.data[].content.routeParams.Other keys | JSON | Dynamic path parameters of the page; refer to the configuration produced by the current console page. |
| content.data[].content.routeQuery | object | Query state of the corresponding page; must be an object; arbitrary client query values do not expand the authorization captured on the server side. |
| content.data[].content.routeQuery.w | string | Page workspace identifier, usually the current workspace; it cannot be used to change the API Key scope. |
| content.data[].content.routeQuery.workspaceUUID | string | Comma-separated list of workspaces the page needs to query; still subject to real cross-workspace authorization and the snapshot's saved scope. |
| content.data[].content.routeQuery.time | string | Page time range, such as 15m or a start-milliseconds,end-milliseconds string; relative time does not physically freeze the data. |
| content.data[].content.routeQuery.query | string | Page search query string, for example service:payment in the Log Explorer; it is not DQL executed by the snapshot API. |
| content.data[].content.routeQuery.cols | string | Comma-separated display field names, such as time,message,service. |
| content.data[].content.routeQuery.viewType | string | Common values in the Log Explorer are view for list and analyze for analysis; use the actual protocol of the current page. |
| content.data[].content.routeQuery.index | string | Comma-separated log index names, obtained from the log index configuration; does not change read permissions. |
| content.data[].content.routeQuery.snapshotName | string | Snapshot name displayed on the page; recommended to match the top-level name. |
| content.data[].content.routeQuery.dashboard_id | string | dsbd_ UUID of the corresponding dashboard snapshot, used for the visibility summary; first verify the authorized resources of the current workspace. |
| content.data[].content.routeQuery.app_id | string | Public appId of the RUM heatmap, used to attach the application summary. |
| content.data[].content.routeQuery.status | integer | When listing with type=RumHeatMap, the current RUM configuration status may be attached; it may also appear for historically deleted entries. |
| content.data[].content.routeQuery.jsonContent | object | Application jsonContent that may be attached only in RUM heatmap listings. |
| content.data[].content.routeQuery.jsonContent.name | string | Application name. |
| content.data[].content.routeQuery.jsonContent.type | string | Application platform type. |
| content.data[].content.routeQuery.jsonContent.extend | object | Optional application extension. |
| content.data[].content.routeQuery.jsonContent.extend.Custom key | JSON | Extension values saved by the application. |
| content.data[].content.routeQuery.Other keys | JSON | Dynamic state such as page filters/layout; the backend mainly saves it without validating renderability. |
| content.data[].content.Other keys | JSON | Other saved state of the corresponding page; it does not mean the client can inject server-side permissions. |
| content.data[].rules | object or null | Query permission/masking snapshot captured by the server side, read-only; clients must not pass rules or forge them in content to gain permissions. Historical formats may differ. |
| content.data[].rules.eventScopeVersion | integer | New authorization event scope version 1; old snapshots may lack this key, and specific queries require regeneration. |
| content.data[].rules.ruleContextVersion | integer | New format is 2; the old format may be 1 or absent. |
| content.data[].rules.roles | array<string> |
Role identifiers of the actual calling identity at save time; not a writable role selection. |
| content.data[].rules.roles[] | string | A single server-confirmed role ID. |
| content.data[].rules.deniedNamespaces | array<string> |
Denied query scopes, such as logging/rum/tracing/metric/lineage/keyevent; the actual values depend on the namespaces known to the site. |
| content.data[].rules.deniedNamespaces[] | string | A single denied data scope. |
| content.data[].rules.rules | object | namespace→array of captured data access rules. |
| content.data[].rules.rules.Namespace | array<object> |
Rules for that scope; an empty array cannot substitute for query permission. |
| content.data[].rules.rules.Namespace[].rule_uuid | string | UUID of the original access rule. |
| content.data[].rules.rules.Namespace[].region_code | string | Identifier of the site where the rule resides. |
| content.data[].rules.rules.Namespace[].rule_info | object | Access condition content, interpreted by data scope. |
| content.data[].rules.rules.Namespace[].rule_info.sources | array<string> |
Allowed sources for scopes such as lineage/keyevent, per the original rule protocol. |
| content.data[].rules.rules.Namespace[].rule_info.sources[] | string | A single source of the original rule; not a new client authorization. |
| content.data[].rules.rules.Namespace[].rule_info.rule | string | Original rule filter expression. |
| content.data[].rules.rules.Namespace[].rule_info.Other keys | JSON | Other fields of the original data rule for this scope. |
| content.data[].rules.rules.Namespace[].rule_mask_info | object | Optional masking information carried by the original data access rule. |
| content.data[].rules.rules.Namespace[].rule_mask_info.maskFields | string | Comma-separated fields. |
| content.data[].rules.rules.Namespace[].rule_mask_info.reExprs | array<object> |
Regular expression configuration. |
| content.data[].rules.rules.Namespace[].rule_mask_info.reExprs[].reExpr | string | Masking regular expression. |
| content.data[].rules.rules.Namespace[].Other keys | JSON | Reserved fields of the original access rule; not new execution parameters of this API. |
| content.data[].rules.sensitiveDataMaskRules | object | namespace→array of sensitive field rules (legacy empty objects are supported). |
| content.data[].rules.sensitiveDataMaskRules.Namespace | array or object | In the new format, a non-empty value should be an array of rule objects; an empty object is supported to mean no rules. |
| content.data[].rules.sensitiveDataMaskRules.Namespace[].fields | array<string> |
List of original sensitive fields. |
| content.data[].rules.sensitiveDataMaskRules.Namespace[].fields[] | string | Field name. |
| content.data[].rules.sensitiveDataMaskRules.Namespace[].reExpr | string or null | Original sensitive data masking regular expression. |
| content.data[].rules.sensitiveDataMaskRules.Namespace[].Other keys | JSON | Other fields of the original rule. |
| content.data[].dashboardIsPublic | integer or boolean | Optional visibility hint of the associated dashboard, only possibly attached when an associated dashboard exists; it does not equal the snapshot's sharing permission. |
| content.workspaceVersionType | string | Product version type of the current workspace, the actual deployment value; do not grant sharing capability on the basis of this field. |
| pageInfo | object | Pagination metadata; in the OpenAPI it is at the top level, and content remains an object. |
| pageInfo.count | integer | Actual number of entries on this page. |
| pageInfo.totalCount | integer | Total number of snapshots matching the current visibility and filter conditions; not the number of share configurations or telemetry records. |
| pageInfo.pageIndex | integer | Page number, starting from 1. |
| pageInfo.pageSize | integer | Number of entries requested per page in this request. |
| content.declaration | object or null | Workspace public declaration for a non-empty business object; may be null or an empty object when not configured; empty business objects are not attached. |
{
"code": 200,
"content": {
"data": [
{
"id": 7,
"uuid": "snap_example",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"workspaceUUID": "wksp_example",
"name": "Payment Service Logs",
"type": "Log",
"filterType": "",
"isPublic": 1,
"isHidden": 0,
"accountUUID": "wsak_example",
"content": {
"routeName": "Log",
"routeParams": {
"source": "all"
},
"routeQuery": {
"w": "wksp_example",
"time": "1785423600000,1785427200000",
"query": "service:payment",
"cols": "time,message,service",
"viewType": "view",
"index": "default",
"snapshotName": "Payment Service Logs"
}
},
"rules": {
"eventScopeVersion": 1,
"ruleContextVersion": 2,
"roles": [
"wsAdmin"
],
"rules": {},
"sensitiveDataMaskRules": {},
"deniedNamespaces": []
}
}
],
"workspaceVersionType": "pay",
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"count": 1,
"totalCount": 1,
"pageIndex": 1,
"pageSize": 100
}
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 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 | Unhandled exceptions such as database/current workspace state, historical snapshot content shape, or pagination conversion |
Internal error | Check the Query/historical page configuration and back off while retaining the traceId; not all saved objects can be rendered in the current frontend version. |