Get¶
GET /api/v1/blacklist/{blist_uuid}/get
Overview¶
Reads the complete saved configuration of the specified blacklist rule in the current workspace.
Before You Call and Usage Steps¶
Select a blist_uuid from the list to read rules with status=0/2. The returned filters are the raw input, and conditions are the actual generated conditions; creatorInfo/updatorInfo from the list are not included. If the target is in another workspace, deleted, or does not exist, 404 is returned.
This call only reads the current rule configuration; it does not save the rule or change the downstream effective status. For the meaning of conditions, refer to the fields returned on this page.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| blist_uuid | string | Y | Path UUID of a non-deleted rule in the current workspace; both enabled and disabled rules can be read/modified. Allowed null: False Example: blist_exampleHow to obtain or fill: Get from Blacklist List content.data[].uuid. |
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential of the workspace. Example: <DF-API-KEY>How to obtain or fill: Obtain an OpenAPI Key with the required permission from the API Key management of the target workspace. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/blacklist/blist_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The examples below show the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer | Database ID of the existing blacklist rule; the call uses uuid. |
| content.uuid | string | blist_ rule UUID. |
| content.workspaceUUID | string | UUID of the workspace it belongs to. |
| content.name | string | Rule name. |
| content.desc | string | Rule description. |
| content.type | string | Data category. |
| content.source | string | Saved single/all source expression; may be empty. |
| content.sources | array<string> |
Saved multiple source names; takes precedence when non-empty. |
| content.sources[] | string | A single source name. |
| content.filters | array<object> or object or null | Raw condition array; historical records may also be {} or null. |
| content.filters[].name | string | Leaf field name or legacy group placeholder name. |
| content.filters[].condition | string | Connector at the same level. |
| content.filters[].operation | string | Operator; legacy entries may use op instead and omit this field. |
| content.filters[].op | string | Legacy operator alias; optional. |
| content.filters[].value | JSON | Saved value or array of values. |
| content.filters[].value[] | JSON | A single raw value. |
| content.filters[].filters | array<object> |
Nested condition groups; optional; recursively the same condition structure. |
| content.conditions | string | Generated condition expression used for filter execution; check this field for numeric conversion results; it is not written back directly. |
| content.status | integer | 0 enabled, 2 disabled, 3 deleted; non-deleted queries include disabled rules. |
| content.creator | string | Creator identity UUID. |
| content.updator | string | Updater identity; may be empty. |
| content.createAt | integer | Creation time in Unix seconds. |
| content.updateAt | integer | Last update in Unix seconds; -1 if never updated. |
| content.deleteAt | integer | Soft deletion in Unix seconds; -1 if not deleted. |
| content.declaration | object or null | Workspace common declarations attached to a non-null business object; may be null or an empty object when not configured. |
{
"code": 200,
"content": {
"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,
"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.InvalidBlacklistuuid | The specified non-deleted rule is not found in the current workspace | Blacklist does not exist | Obtain a valid UUID from the current workspace list again. |
| 500 | ft.InternalServerError | Rule read or response formatting failed | Internal error | Verify the query conditions and UUID, then retry; if it persists, provide the traceId. |
| 403 | ft.Forbidden | The API Key lacks permission for the current operation | You do not have permission for this operation | Use an API Key for the current workspace that has the permissions for the operations on this page. For actual feature availability, check the site configuration. |