Skip to content

List



GET /api/v1/log_backup_cfg/list

Overview

Lists the current workspace's data forwarding rules and task statuses with pagination.

Before You Call and Usage Steps

Returns all non-deleted rules (including disabled records and records in deleting state), sorted by last update/creation time in descending order, then by id in descending order. You can filter by target, type, format, storage class, and rule name. The OpenAPI list does not include the Front-specific accessCfg summary; for connection information, use the detail API. Iceberg format is excluded.

The list does not filter rule configurations by readPermissionSet; that permission is mainly verified during data query jobs. duration shows the workspace backup_log retention period, not the external bucket lifecycle or the individual expiry of each rule. taskStatusCode/taskErrorCode come from the background forwarding job; a successful save does not mean the job has executed successfully.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to get or fill: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Query Parameters

Parameter Name Type Required Description
search string Optionally matches by name substring; does not search by target bucket or UUID; leading and trailing whitespace is not guaranteed to be trimmed.
Allows null: False
Allows empty string: True
Example: production
How to get or fill: Rule name keyword.
storeType commaArray Optional; if omitted, returns all non-deleted rules; Iceberg is always excluded; historical TiDB records may appear when no target filter is applied.
Allows null: False
$commaArrayIn: ['guanceObject', 's3', 'obs', 'oss', 'kafka', 'tos', 'gcs', 'doris', 'logbamboo']
Example: s3,kafka
How to get or fill: Select from the target types exposed on this page, separated by commas.
dataType commaArray Optional exact type filter; historical empty dataType values are not automatically included in the filter as logging.
Allows null: False
$commaArrayIn: ['lineage', 'metric', 'llm', 'logging', 'tracing', 'rum', 'keyevent', 'audit_event', 'am']
Example: logging
How to get or fill: Filter by the actual rule data category, separated by commas.
storageFormat commaArray Optional; Iceberg is not in the public list; Kafka/LogBamboo may have an empty format, which is visible when this parameter is not set.
Allows null: False
$commaArrayIn: ['json', 'parquet']
Example: json,parquet
How to get or fill: Public file formats, separated by commas.
storageClass commaArray Optional, with multiple items separated by commas; this is not a single fixed enumeration.
Allows null: False
Allows empty string: True
Example: STANDARD
How to get or fill: Take values from actual rules or the target vendor's storage class codes.
pageIndex integer Optional, defaults to 1, minimum 1.
Allows null: False
$minValue: 1
Example: 1
How to get or fill: Starts from 1; continue based on the top-level pageInfo.
pageSize integer Optional, defaults to 10, maximum 100.
Allows null: False
$minValue: 1
$maxValue: 100
Example: 10
How to get or fill: Choose between 1 and 100 per page.

Additional Parameter Notes

Data notes.*

  • Request parameter notes
Parameter Name type Description
search string Search rule name
storeType commaArray Filter by rule storage type; separate multiple values with commas
dataType commaArray Data type; separate multiple values with commas
storageFormat commaArray Storage format; separate multiple values with commas
storageClass commaArray Storage class; separate multiple values with commas
pageIndex string Page number
pageSize string Number of records returned per page

Request Example

curl --get 'https://openapi.guance.com/api/v1/log_backup_cfg/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode dataType=logging \
  --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> Array of rules on this page; [] for an empty result.
content.data[].id integer or null Record number; the creation snapshot is generated before commit and may be null; use uuid for calls.
content.data[].uuid string lgbp_ rule UUID.
content.data[].workspaceUUID string Owning workspace.
content.data[].name string Rule name; it cannot be renamed through this public modification API after creation.
content.data[].conditions string Conditions generated by extend.filters; an empty string or {} when there are no additional filters.
content.data[].syncExtensionField boolean Whether to sync extended fields.
content.data[].externalResourceAccessCfgUUID string Access configuration identifier, not credentials.
content.data[].storeType string Saved target type; historical TiDB records may be readable but cannot be created through the current OpenAPI.
content.data[].storageClass string Target storage class.
content.data[].storageFormat string json/parquet; may be empty for Kafka or LogBamboo; Iceberg is excluded from this public list/detail.
content.data[].dataType string Data category fixed by the rule; historical empty values are treated as logging.
content.data[].taskStatusCode integer Status reported by the background forwarding job; usually -1 on creation; not the current HTTP status.
content.data[].taskErrorCode string Error code of the background forwarding job; an empty string means there is no current error record; a successful save does not guarantee job success.
content.data[].openPermissionSet boolean Toggle for custom data read permissions.
content.data[].readPermissionSet array<string> Saved read principals.
content.data[].readPermissionSet[] string Identifier of a single role/member/team.
content.data[].deleteStatus string Deletion processing status; deleting means the built-in storage rule is being deleted asynchronously; historical values may be empty or completed.
content.data[].status integer 0 enabled, 2 disabled, 3 deleted.
content.data[].creator string Creator identity.
content.data[].updator string Updater identity; may be empty initially.
content.data[].createAt integer Creation time in Unix seconds.
content.data[].updateAt integer Update time in Unix seconds; -1 if never updated.
content.data[].deleteAt integer Deletion time in Unix seconds; -1 if not deleted.
content.data[].extend object Saved scope/condition configuration: optional; usually {} on creation; on modification, the entire object is replaced; old index selections have dedicated inheritance rules, see usage notes; if omitted, it is retained. Passing null on creation may cause a 500 in subsequent extend.get; an explicit null on modification replaces the whole object with {} and still retains the dedicated inheritance rules for the new index selection.
content.data[].extend.filters array Saved scope/condition configuration: actual filter condition array; [] means there are no additional field conditions, and the whole category may be forwarded. match/not match and their normalized aliases are rejected; the log index advancedFilter structure is not mixed in here.
content.data[].extend.filters[] json Saved scope/condition configuration: full name/condition/operation/value is recommended; this is not the query_task.search structure.
content.data[].extend.filters[].name string Saved scope/condition configuration: actual field key.
content.data[].extend.filters[].condition string Saved scope/condition configuration: and/or relationship with the previous condition; ignored for the first item.
content.data[].extend.filters[].operation string Saved scope/condition configuration: commonly =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; match/contain types are not supported.
content.data[].extend.filters[].value array Saved scope/condition configuration: matching values; equality/comparison uses the first item, and set operations use multiple items.
content.data[].extend.filters[].value[] JSON Saved scope/condition configuration: a single string/number, preserving the actual type.
content.data[].extend.indexs array Saved scope/condition configuration: array of native log direct-write index names; in the new version, [] means all of this category, and a non-empty value means the specified ones. Behavior differs when the old protocol lacks regularLogIndexNames, see usage. This is not an array of UUIDs.
content.data[].extend.indexs[] string Saved scope/condition configuration: actual names, trimmed and deduplicated; selections newly added in the new version must exist in the currently available catalog.
content.data[].extend.regularLogIndexNames array or null Saved scope/condition configuration: new-version regular index selection for logs only. [] means all regular categories, non-empty means the specified ones, and null passed together with the indexs array means direct-write only; passing only this key as null on modification clears the index restriction. A missing key means the old protocol or that it is retained on modification, see usage notes for details.
content.data[].extend.regularLogIndexNames[] string Saved scope/condition configuration: a single currently selectable regular index name; when cloning, the source A must be valid; this is not a UUID.
content.data[].creatorInfo object Associated identity summary; {} if no match.
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 member status; may be omitted.
content.data[].creatorInfo.name string Display name.
content.data[].creatorInfo.username string Login name.
content.data[].creatorInfo.email string Email 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 URL; may be omitted.
content.data[].creatorInfo.acntWsNickname string Workspace nickname; may be omitted.
content.data[].updatorInfo object Associated identity summary; {} if no match.
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 member status; may be omitted.
content.data[].updatorInfo.name string Display name.
content.data[].updatorInfo.username string Login name.
content.data[].updatorInfo.email string Email 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 URL; may be omitted.
content.data[].updatorInfo.acntWsNickname string Workspace nickname; may be omitted.
content.data[].readPermissionSetInfo object When read principals are non-empty, provides an identifier→summary map; {} if no identifier can be resolved; may be omitted when the array is empty.
content.data[].readPermissionSetInfo.主体 object Member summary or role/team name/status summary; this does not prove the principal is still valid.
content.data[].readPermissionSetInfo.主体.name string Display name of the role/team/member.
content.data[].readPermissionSetInfo.主体.status integer Identity status; may be omitted.
content.data[].allow_operation boolean or null Operation display from the shared permission engine; may be null when no operation principal is configured; does not replace API permission checks.
content.data[].readPermissionSetInfo.主体.uuid string Identity UUID; may be omitted.
content.data[].readPermissionSetInfo.主体.wsAccountStatus integer Workspace member status; may be omitted.
content.data[].readPermissionSetInfo.主体.username string Login name.
content.data[].readPermissionSetInfo.主体.email string Email or system identity identifier.
content.data[].readPermissionSetInfo.主体.mobile string Mobile number; may be empty.
content.data[].readPermissionSetInfo.主体.countryCode string Country/region code; may be omitted.
content.data[].readPermissionSetInfo.主体.iconUrl string Avatar URL; may be omitted.
content.data[].readPermissionSetInfo.主体.acntWsNickname string Workspace nickname; may be omitted.
content.data[].duration string or null Workspace backup_log retention period; may be unconfigured.
content.declaration object Workspace public declaration.
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": 100,
        "uuid": "lgbp_example",
        "workspaceUUID": "wksp_example",
        "name": "production_archive",
        "conditions": "",
        "extend": {
          "filters": [],
          "regularLogIndexNames": [
            "default"
          ]
        },
        "syncExtensionField": false,
        "externalResourceAccessCfgUUID": "erac_example",
        "storeType": "s3",
        "storageFormat": "json",
        "storageClass": "STANDARD",
        "dataType": "logging",
        "taskStatusCode": -1,
        "taskErrorCode": "",
        "openPermissionSet": false,
        "readPermissionSet": [],
        "deleteStatus": "",
        "status": 0,
        "creator": "wsak_example",
        "updator": "wsak_example",
        "createAt": 1785427200,
        "updateAt": -1,
        "deleteAt": -1,
        "duration": "180d",
        "creatorInfo": {},
        "updatorInfo": {},
        "allow_operation": null
      }
    ],
    "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 Failed to read the configuration, identity information, cache, or response formatting Internal error Check the query parameters; provide traceId if the failure persists.

Feedback

Is this page helpful?