Get¶
GET /api/v1/viewer/{viewer_uuid}/get
Overview¶
Get the details and layout of the specified Explorer.
Prerequisites and Usage Steps¶
Select the UUID for the current workspace from the Explorer List. Details return the layout and associated information; when you need a complete portable template, use Export Explorer. Set showTemplate=true to view default template information.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| viewer_uuid | string | Y | UUID of the target Explorer in the current workspace. Example: dsbd_view_exampleHow to obtain or enter: Obtain it from content.data[].uuid in the Explorer 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 this operation permission from API Key Management in the target workspace. |
Query Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| showTemplate | boolean | When omitted, the default template is not read additionally. Example: trueHow to obtain or enter: Pass true when you need to read the associated default template; 1 is also accepted. |
Additional Parameter Notes¶
Template information comes from the Explorer's default template configuration. The Explorer's own portable JSON structure is returned by the export endpoint.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/viewer/dsbd_view_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode showTemplate=true
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer | Explorer record ID. |
| content.uuid | string | Explorer UUID. |
| content.workspaceUUID | string | Workspace it belongs to. |
| content.name | string | Explorer name. |
| content.desc | string | Explorer description. |
| content.identifier | string | Custom identifier; can be empty. |
| content.ownerType | string | Explorer resource ownership; usually viewer. |
| content.type | string | Explorer type, for example CUSTOM. |
| content.isPublic | integer | Visibility scope of the current resource. 1 means public; 0 means visible only to the creator identity. |
| content.chartPos | array<object> |
Chart layout array, containing chartUUID and the layout object pos. |
| content.chartPos[].chartUUID | string | UUID of the referenced chart. |
| content.chartPos[].pos | object | Position and size of the layout, such as x, y, w, and h. |
| content.chartGroupPos | array<string> |
Order of chart groups. |
| content.iconSet | object | Icon configuration. |
| content.extend | object | Explorer extension information. |
| content.mapping | array<object> |
Variable field mapping information. |
| content.dashboardBindSet | array | View binding configuration. |
| content.createdWay | string | Source of resource creation. |
| content.openPermissionSet | boolean | Permission configuration switch for the entity record. |
| content.permissionSet | array<string> |
UUIDs of operation permission principals in the record. |
| content.readPermissionSet | array<string> |
UUIDs of read permission principals in the record. |
| content.tagInfo | array<object> |
Associated tag information. |
| content.tagInfo[].id | string | Identifier identical to the tag UUID. |
| content.tagInfo[].uuid | string | Tag UUID. |
| content.tagInfo[].name | string | Tag name. |
| content.tagInfo[].description | string | Tag description. |
| content.tagInfo[].colour | string | Tag color. |
| content.tagInfo[].scope | array<string> |
Scope in which the tag takes effect. |
| content.tagInfo[].tagPermissionInfo | object | Read/write authorization information when present. |
| content.status | integer | Record status. |
| content.creator | string | Creator identity ID. |
| content.updator | string | ID of the most recent updater identity; can be empty. |
| content.createAt | number | Creation time, in Unix seconds. |
| content.updateAt | number | Update time, in Unix seconds. Can be -1 if not updated. |
| content.deleteAt | number | Deletion time, in Unix seconds. -1 if not deleted. |
| content.creatorInfo | object | Creator identity information; an empty object if not found. |
| content.updatorInfo | object | Most recent updater identity information; an empty object if not found. |
| content.creatorInfo.uuid | string | May be provided when the corresponding identity is found. Identity identifier. |
| content.creatorInfo.status | integer | May be provided when the corresponding identity is found. Account status. |
| content.creatorInfo.wsAccountStatus | integer | May be provided when the corresponding identity is found. Workspace member status. |
| content.creatorInfo.username | string | May be provided when the corresponding identity is found. Login name. |
| content.creatorInfo.name | string | May be provided when the corresponding identity is found. Display name. |
| content.creatorInfo.iconUrl | string | May be provided when the corresponding identity is found. Avatar URL. |
| content.creatorInfo.email | string | May be provided when the corresponding identity is found. Account email. For an API Key identity, its identifier may be returned. |
| content.creatorInfo.mobile | string | May be provided when the corresponding identity is found. Contact details. |
| content.creatorInfo.countryCode | string | May be provided when the corresponding identity is found. Country or region code for the mobile number. |
| content.creatorInfo.acntWsNickname | string | May be provided when the corresponding identity is found. Nickname in the workspace. |
| content.updatorInfo.uuid | string | May be provided when the corresponding identity is found. Identity identifier. |
| content.updatorInfo.status | integer | May be provided when the corresponding identity is found. Account status. |
| content.updatorInfo.wsAccountStatus | integer | May be provided when the corresponding identity is found. Workspace member status. |
| content.updatorInfo.username | string | May be provided when the corresponding identity is found. Login name. |
| content.updatorInfo.name | string | May be provided when the corresponding identity is found. Display name. |
| content.updatorInfo.iconUrl | string | May be provided when the corresponding identity is found. Avatar URL. |
| content.updatorInfo.email | string | May be provided when the corresponding identity is found. Account email. For an API Key identity, its identifier may be returned. |
| content.updatorInfo.mobile | string | May be provided when the corresponding identity is found. Contact details. |
| content.updatorInfo.countryCode | string | May be provided when the corresponding identity is found. Country or region code for the mobile number. |
| content.updatorInfo.acntWsNickname | string | May be provided when the corresponding identity is found. Nickname in the workspace. |
| content.isFavorite | boolean | Favorite status for the current identity. May be omitted from details when not favorited. |
| content.isIndexDashboard | boolean | Whether this is the homepage view of the current workspace. |
| content.refCheckerUUIDs | array<string> |
Associated Monitor identifiers. |
| content.integrationInfo | object | Default template information included when showTemplate=true or 1; an empty object when there is no corresponding item. |
| content.extend.defaultTargetWorkspaceName | string | When an old single-workspace ID is configured, the corresponding name may be returned. |
| content.extend.defaultTargetWorkspaceNames | array<string> |
When a default query workspace list is configured, a list of workspace names may be returned. |
| content.declaration | object or null | Public declaration for the workspace. |
{
"code": 200,
"content": {
"id": 25,
"uuid": "dsbd_view_example",
"name": "主机巡检查看器",
"desc": "主机巡检与状态核对",
"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": {},
"isIndexDashboard": false,
"refCheckerUUIDs": [],
"integrationInfo": {},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 404 | ft.NotFoundView | The target does not exist, has been deleted, or is not in the current workspace | Specified view not found | Use the Explorer List in the same workspace to reconfirm a valid UUID. |