Skip to content

List



GET /api/v1/blacklist/list

Overview

Query the blacklist rules, enabled/disabled status, and complete matching configuration of the current Workspace by page.

Before You Call and Usage Steps

Use type=logging to query logs and type=all to query all categories. Search by name, then read page by page. Non-deleted rules include both enabled and disabled rules, sorted in descending order by most recent update (use creation time if the rule has never been updated). The list returns the original filters and actual conditions; before creating or modifying a rule, you can use them to populate the complete configuration.

This operation only reads the current rule configuration; it does not save rules or change the downstream effective status. For the meaning of the conditions, refer to the fields returned on this page.

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 permission for this operation from API Key management in the target Workspace.

Query Request Parameters

Parameter Type Required Description
type string Y Required string. all is a special query value, not a rule type for creation. Unknown categories usually return an empty list successfully.
Null allowed: False
Example: logging
How to obtain or enter: For log rules, enter logging; to manage all categories, enter all; you can also filter precisely by the target data category.
search string Optional. Matches only when the name contains the value, with leading and trailing whitespace trimmed; does not search by source or description.
Null allowed: False
Example: 健康检查
How to obtain or enter: Keyword in the rule name.
pageIndex integer Optional. Default 1, minimum 1.
Null allowed: False
$minValue: 1
Example: 1
How to obtain or enter: Start from 1 and continue based on the top-level pageInfo.
pageSize integer Optional. Default 20, minimum 1; no maximum value is currently declared; reading page by page is recommended.
Null allowed: False
$minValue: 1
Example: 20
How to obtain or enter: Choose a positive integer based on client capacity.

Request Example

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

Response

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

Field Type Description
content.data array<object> Non-deleted rules on this page; empty result [].
content.data[].id integer Database ID of the existing blacklist rule; calls use uuid.
content.data[].uuid string blist_rule UUID.
content.data[].workspaceUUID string UUID of the Workspace it belongs to.
content.data[].name string Rule name.
content.data[].desc string Rule description.
content.data[].type string Data category.
content.data[].source string Saved expression for a single source or all sources; may be empty.
content.data[].sources array<string> Saved multiple source names; when non-empty, takes precedence.
content.data[].sources[] string A single source name.
content.data[].filters array<object> or object or null Raw condition array; historical records may also be {} or null.
content.data[].filters[].name string Leaf field name or legacy group placeholder name.
content.data[].filters[].condition string Same-level connector.
content.data[].filters[].operation string Operator; legacy items may use op and omit this field.
content.data[].filters[].op string Legacy operator alias; may be omitted.
content.data[].filters[].value JSON Saved value or value array.
content.data[].filters[].value[] JSON A single raw value.
content.data[].filters[].filters array<object> Nested condition group; may be omitted; recursively uses the same condition structure.
content.data[].conditions string Condition expression generated for filter execution; check this field for numeric conversion results; do not write it back directly.
content.data[].status integer 0 enabled, 2 disabled, 3 deleted; non-deleted queries include disabled rules.
content.data[].creator string Creator identity UUID.
content.data[].updator string Updater identity; may be empty.
content.data[].createAt integer Creation Unix seconds.
content.data[].updateAt integer Last update Unix seconds; -1 if not updated.
content.data[].deleteAt integer Soft deletion Unix seconds; -1 if not deleted.
content.data[].creatorInfo object Identity display information; {} when there is no valid identity.
content.data[].creatorInfo.uuid string Identity UUID; may be omitted.
content.data[].creatorInfo.status integer Account status; may be omitted.
content.data[].creatorInfo.wsAccountStatus integer Workspace relationship status; may be omitted.
content.data[].creatorInfo.name string Display name.
content.data[].creatorInfo.username string Login name.
content.data[].creatorInfo.email string Email address or system identity identifier.
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 Updater identity display information; {} when there is no valid identity.
content.data[].updatorInfo.uuid string Identity UUID; may be omitted.
content.data[].updatorInfo.status integer Account status; may be omitted.
content.data[].updatorInfo.wsAccountStatus integer Workspace relationship status; may be omitted.
content.data[].updatorInfo.name string Display name.
content.data[].updatorInfo.username string Login name.
content.data[].updatorInfo.email string Email address or system identity identifier.
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.declaration object or null Workspace public declaration attached to non-empty business objects; when not configured, it may be null or an empty object.
pageInfo.pageIndex integer Current page.
pageInfo.pageSize integer Number of records per page.
pageInfo.count integer Number of records on this page.
pageInfo.totalCount integer Total number of matching records.
{
  "code": 200,
  "content": {
    "data": [
      {
        "id": 10,
        "uuid": "blist_example",
        "workspaceUUID": "wksp_example",
        "name": "忽略健康检查日志",
        "desc": "过滤生产nginx健康检查请求。",
        "type": "logging",
        "source": "nginx",
        "sources": [],
        "filters": [
          {
            "name": "path",
            "condition": "and",
            "operation": "=",
            "value": [
              "/healthz"
            ]
          }
        ],
        "conditions": "{ `source` =  'nginx'  and (`path` =  '/healthz' )}",
        "status": 0,
        "creator": "wsak_example",
        "updator": "",
        "createAt": 1785427200,
        "updateAt": -1,
        "deleteAt": -1,
        "creatorInfo": {},
        "updatorInfo": {}
      }
    ],
    "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 Common 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 Reading the rule or formatting the response failed Internal error Check the query conditions and UUID, then retry; if the failure persists, provide the traceId.
403 ft.Forbidden The API Key lacks permission for the current operation You do not have permission to perform this operation Use an API Key for the current Workspace that has permission for the operations on this page. For actual feature availability, check the site configuration.

Feedback

Is this page helpful?