Skip to content

Get Feature Menu



GET /api/v1/workspace/menu/get

Overview

Read the workspace top-level menu compatibility configuration.

Prerequisites and Usage Steps

Use the current workspace Key that has allowed permissions such as routine.defaultAccess. The returned workspace menu configuration or default projection is not the final menu the current identity can access; visibility cannot replace page/API/data authorization. If the configuration has not been saved, the site default is inherited in memory only and converted, and no configuration is created. If v3 already exists, a compatibility projection is returned that contains only system/legacy compatibility menus, does not include custom directories or resources, and does not fully express role-based settings.

v1 returns only top-level key/value pairs; the hidden value already combines the platform isHide and the workspace isShow. For second-level items or to distinguish platform/workspace visibility, use v2; for the full tree and roles, use v3.

When validating with the Owner identity, note the following: effective menu computation ignores workspace isShow hiding (except for separators), but is still constrained by platform hiding and actual permissions; the final display may differ between regular roles and Owner.

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 fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Request Example

curl --get 'https://openapi.guance.com/api/v1/workspace/menu/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

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

Field Type Description
content.workspaceUUID string UUID of the workspace to which the current Key belongs.
content.config array<object> Menu configuration array; an empty result may also be [].
content.keyCode string Compatibility metadata; for saved/v3 compatibility projections it is usually WsMenuCfg; it may be omitted in the legacy read branch for new workspaces.
content.updated boolean Usually true when a workspace configuration or v3 compatibility projection exists; it is not a reliable indicator of whether this write changed anything, and may be omitted for new workspaces.
content.id integer or null Database ID of the saved configuration; may be omitted.
content.uuid string ctcf_ configuration UUID; may be omitted and is not used as a menu node ID.
content.creator string Identity that created the configuration; may be omitted.
content.updator string Identity that modified the configuration; may be omitted.
content.status integer Configuration entity status; may be omitted.
content.createAt integer Creation time in Unix seconds; may be omitted.
content.updateAt integer Update time in Unix seconds; may be omitted.
content.deleteAt integer Deletion time in Unix seconds, -1 if not deleted; may be omitted.
content.declaration object Public declaration of the current workspace.
content.config[].key string Top-level system menu Key, taken from the current legacy GET protocol; do not use display names or v3 node IDs.
content.config[].value integer Final projected visibility: 1 = show, 0 = hide, combined from the workspace isShow and the platform isHide.
{
  "code": 200,
  "content": {
    "workspaceUUID": "wksp_example",
    "config": [
      {
        "key": "Scene",
        "value": 1
      },
      {
        "key": "Notebook",
        "value": 1
      },
      {
        "key": "Events",
        "value": 1
      },
      {
        "key": "ExceptionsTracking",
        "value": 1
      },
      {
        "key": "Incident",
        "value": 1
      },
      {
        "key": "Error",
        "value": 1
      },
      {
        "key": "Objectadmin",
        "value": 1
      },
      {
        "key": "Entity",
        "value": 1
      },
      {
        "key": "DataObservability",
        "value": 1
      },
      {
        "key": "MetricQuery",
        "value": 1
      },
      {
        "key": "LogIndi",
        "value": 1
      },
      {
        "key": "Tracing",
        "value": 1
      },
      {
        "key": "Rum",
        "value": 1
      },
      {
        "key": "CloudBilling",
        "value": 1
      },
      {
        "key": "CloudDial",
        "value": 1
      },
      {
        "key": "Security",
        "value": 1
      },
      {
        "key": "AIMonitor",
        "value": 1
      },
      {
        "key": "GitLabCI",
        "value": 1
      },
      {
        "key": "Monitor",
        "value": 1
      },
      {
        "key": "Integration",
        "value": 1
      },
      {
        "key": "Workspace",
        "value": 1
      },
      {
        "key": "Billing",
        "value": 1
      }
    ],
    "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
500 ft.InternalServerError Duplicate/corrupted configuration, database read failure, or response formatting failure Internal error Provide the traceId so the administrator can check the configuration; do not mask corruption by clearing the configuration.

Feedback

Is this page helpful?