Skip to content

List



GET /api/v1/tag/list

Overview

Paginated query of the valid tags in the current workspace, along with resource associations and permission summaries.

Before Calling and Usage Steps

Sorted by tag id in descending order; only status=0 records are returned. The current public entry point supports only the four Query parameters on this page and does not pass through the Front's scope/includeGlobal/displayType or KV filtering; do not append these undeclared fields just because they are supported internally. The scope in the list is for callers to select usable tags, but scope does not replace resource permissions.

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 the required permissions from API Key Management in the target workspace.

Query Request Parameters

Parameter Name Type Required Description
search string Optional. Matches by name containing the value, with leading and trailing whitespace trimmed; %/_ follow SQL LIKE semantics; descriptions are not searched.
Allows null: False
Example: production
How to obtain or fill in: Keyword of the target tag name.
filter string Optional. Queries only tags currently referenced by the specified type; returns empty if there are no references; combines with search using AND. If not passed, queries all valid tags, including regular tags and tags with colon-containing names.
Allows null: False
Allowed values: ['BoardRefTagObject', 'ViewerRefTagObject', 'CheckerRefTagObject', 'SmartCheckerRefTagObject', 'AiCheckerRefTagObject', 'DialingRefTagObject']
Example: BoardRefTagObject
How to obtain or fill in: Select the resource association type: BoardRefTagObject for dashboards, ViewerRefTagObject for explorers, CheckerRefTagObject for standard monitors, SmartCheckerRefTagObject for smart monitors, AiCheckerRefTagObject for AI monitors, DialingRefTagObject for synthetic tests.
pageIndex integer Optional, default 1, minimum 1.
Allows null: False
$minValue: 1
Example: 1
How to obtain or fill in: Read page by page starting from 1 according to the top-level pageInfo.
pageSize integer Optional, default 10, maximum 10000, smaller pages recommended.
Allows null: False
$minValue: 1
$maxValue: 10000
Example: 10
How to obtain or fill in: Choose an appropriate page size within 1..10000.

Additional Parameter Description

Data Description

  • Request parameter description
Parameter Name type Description
filter string Enumerated values (tags associated with dashboards: BoardRefTagObject, tags associated with explorers: ViewerRefTagObject, tags associated with standard monitors: CheckerRefTagObject, tags associated with smart monitors: SmartCheckerRefTagObject, tags associated with AI semantic monitors: AiCheckerRefTagObject)

  • Response parameter description
Parameter Name type Description
name string Tag name
description string Field description information
color string Color type agreed upon by frontend and backend, default,style_key1,style_key2 ~~
  • Type-to-color mapping for the color field:
    {
        "default": {"background": "#CCE6FF", "color": "rgba(0,0,0,0.8)"},
        "style_key1": {"background": "#3333FE", "color": "#FFFFFF"},
        "style_key2": {"background": "#428BCA", "color": "#FFFFFF"},
        "style_key3": {"background": "#364450", "color": "#FFFFFF"},
        "style_key4": {"background": "#E0E1FF", "color": "rgba(0,0,0,0.8)"},
        "style_key5": {"background": "#9400D3", "color": "#FFFFFF"},
        "style_key6": {"background": "#EDDBFF", "color": "rgba(0,0,0,0.8)"},
        "style_key7": {"background": "#CC328B", "color": "#FFF"},
        "style_key8": {"background": "#FCDEF0", "color": "rgba(0,0,0,0.8)"},
        "style_key9": {"background": "#DC143D", "color": "#FFFFFF"},
        "style_key10": {"background": "#FCBABA", "color": "rgba(0,0,0,0.8)"},
        "style_key11": {"background": "#BD0B48", "color": "#FFFFFF"},
        "style_key12": {"background": "#FDECD2", "color": "rgba(0,0,0,0.8)"},
        "style_key13": {"background": "#FFC29C", "color": "rgba(0,0,0,0.8)"},
        "style_key14": {"background": "#ED9120", "color": "#FFFFFF"},
        "style_key15": {"background": "#CD5B44", "color": "#FFFFFF"},
        "style_key16": {"background": "#FAF570", "color": "rgba(0,0,0,0.8)"},
        "style_key17": {"background": "#C29953", "color": "#FFFFFF"},
        "style_key18": {"background": "#02B140", "color": "#FFFFFF"},
        "style_key19": {"background": "#D5F4D5", "color": "rgba(0,0,0,0.8)"},
        "style_key20": {"background": "#009966", "color": "#FFFFFF"},
        "style_key21": {"background": "#023220", "color": "#FFFFFF"},
        "style_key22": {"background": "#E7E7E7", "color": "rgba(0,0,0,0.8)"},
        "style_key23": {"background": "#808080", "color": "#FFFFFF"}
    }
    

Request Example

curl --get 'https://openapi.guance.com/api/v1/tag/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode pageIndex=1 \
  --data-urlencode pageSize=10

Response

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

Field Type Description
content.data array<object> Tags on the current page; [] for empty results.
content.data[].uuid string tag_ tag UUID.
content.data[].name string Tag name.
content.data[].description string Purpose description.
content.data[].colour string Color representation.
content.data[].scope array<string> Normalized scopes; historical null/empty scopes are returned as ["all"].
content.data[].scope[] string One of all/scene/monitor/dialing/security/infrastructure/catalog.
content.data[].creator string Creating identity.
content.data[].updator string Identity of the last modification.
content.data[].createAt integer Creation time in Unix seconds.
content.data[].updateAt integer Update time in Unix seconds; -1 if never updated.
content.data[].id string List compatibility field; identical to uuid; not a database numeric id.
content.data[].creatorInfo object Identity summary; {} when no matching profile is available.
content.data[].creatorInfo.uuid string Identity UUID; may be omitted.
content.data[].creatorInfo.status integer Account/subject status; may be omitted.
content.data[].creatorInfo.wsAccountStatus integer Workspace membership status; may be omitted.
content.data[].creatorInfo.name string Display name.
content.data[].creatorInfo.username string Login name; may be omitted.
content.data[].creatorInfo.email string Email or system identity identifier; may be omitted.
content.data[].creatorInfo.mobile string Mobile number; may be empty.
content.data[].creatorInfo.countryCode string Country/region code; may be omitted.
content.data[].creatorInfo.iconUrl string Avatar; may be omitted.
content.data[].creatorInfo.acntWsNickname string Workspace nickname; may be omitted.
content.data[].updatorInfo object Identity summary; {} when no matching profile is available.
content.data[].updatorInfo.uuid string Identity UUID; may be omitted.
content.data[].updatorInfo.status integer Account/subject status; may be omitted.
content.data[].updatorInfo.wsAccountStatus integer Workspace membership status; may be omitted.
content.data[].updatorInfo.name string Display name.
content.data[].updatorInfo.username string Login name; may be omitted.
content.data[].updatorInfo.email string Email or system identity identifier; may be omitted.
content.data[].updatorInfo.mobile string Mobile number; may be empty.
content.data[].updatorInfo.countryCode string Country/region code; may be omitted.
content.data[].updatorInfo.iconUrl string Avatar; may be omitted.
content.data[].updatorInfo.acntWsNickname string Workspace nickname; may be omitted.
content.data[].tagPermissionInfo object Permission configuration for dashboard-type tags; {} if not configured; not the final authorization result for the current caller.
content.data[].tagPermissionInfo.id integer Entity record number; the list id is a UUID string, see the list fields.
content.data[].tagPermissionInfo.uuid string tag_ tag UUID.
content.data[].tagPermissionInfo.workspaceUUID string Workspace it belongs to.
content.data[].tagPermissionInfo.status integer 0 valid, 3 deleted; other historical states are subject to actual data.
content.data[].tagPermissionInfo.creator string Creating identity.
content.data[].tagPermissionInfo.updator string Identity of the last modification.
content.data[].tagPermissionInfo.createAt integer Creation time in Unix seconds.
content.data[].tagPermissionInfo.updateAt integer Update time in Unix seconds; -1 if never updated.
content.data[].tagPermissionInfo.deleteAt integer Deletion time in Unix seconds; -1 if not deleted.
content.data[].tagPermissionInfo.tagUUID string UUID of the current tag.
content.data[].tagPermissionInfo.type string For this list query, the permission type is fixed to dashboard.
content.data[].tagPermissionInfo.permissionSet array<string> List of configured operation subjects.
content.data[].tagPermissionInfo.permissionSet[] string Account/team/role identifier.
content.data[].tagPermissionInfo.permissionSetInfo object Provides subject identifier → profile mapping only when the corresponding list is non-empty.
content.data[].tagPermissionInfo.permissionSetInfo.Subject object Full identity summary of the account, or name/status of the role/team; {} when no profile is available.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.uuid string Identity UUID; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.status integer Account/subject status; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.wsAccountStatus integer Workspace membership status; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.name string Display name.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.username string Login name; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.email string Email or system identity identifier; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.mobile string Mobile number; may be empty.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.countryCode string Country/region code; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.iconUrl string Avatar; may be omitted.
content.data[].tagPermissionInfo.permissionSetInfo.Subject.acntWsNickname string Workspace nickname; may be omitted.
content.data[].tagPermissionInfo.readPermissionSet array<string> List of configured read subjects.
content.data[].tagPermissionInfo.readPermissionSet[] string Account/team/role identifier.
content.data[].tagPermissionInfo.readPermissionSetInfo object Provides subject identifier → profile mapping only when the corresponding list is non-empty.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject object Full identity summary of the account, or name/status of the role/team; {} when no profile is available.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.uuid string Identity UUID; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.status integer Account/subject status; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.wsAccountStatus integer Workspace membership status; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.name string Display name.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.username string Login name; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.email string Email or system identity identifier; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.mobile string Mobile number; may be empty.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.countryCode string Country/region code; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.iconUrl string Avatar; may be omitted.
content.data[].tagPermissionInfo.readPermissionSetInfo.Subject.acntWsNickname string Workspace nickname; may be omitted.
content.declaration object Public declaration.
pageInfo.pageIndex integer Page number.
pageInfo.pageSize integer Page size.
pageInfo.count integer Number of items on this page.
pageInfo.totalCount integer Total number of matching items.
{
  "code": 200,
  "content": {
    "data": [
      {
        "uuid": "tag_example",
        "name": "production",
        "description": "Unified marker for production resources.",
        "colour": "default",
        "scope": [
          "scene",
          "monitor"
        ],
        "creator": "wsak_example",
        "updator": "",
        "createAt": 1785427200,
        "updateAt": -1,
        "id": "tag_example",
        "tagPermissionInfo": {},
        "creatorInfo": {},
        "updatorInfo": {}
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE",
  "pageInfo": {
    "pageIndex": 1,
    "pageSize": 10,
    "count": 1,
    "totalCount": 1
  }
}

Error Response

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 An undeclared Query parameter is used or a parameter violates the rules Parameter parsing failed Check the Query parameter table and examples.
500 ft.InternalServerError Reading or response formatting of tags, references/permissions, or identity profiles failed Internal error Check the workspace and query conditions, then retry later; if it keeps failing, provide the traceId.

Feedback

Is this page helpful?