Skip to content

Create



POST /api/v1/log_backup_cfg/add

Overview

Create a data forwarding rule.

Before You Call and Usage Steps

First determine the target and data category, and prepare the complete connection configuration and scope. New rules are enabled by default; the current public module has no independent enable/disable API, so pausing requires an operation in the console. Saving an external target validates only the structure and some platform bucket configurations, and does not guarantee that write permissions/reachability have been fully verified. After creation, check taskStatusCode/taskErrorCode and the actual target data.

New-version log scope examples: regularLogIndexNames=[] selects all regular indexes; ["default"] selects only the default index; indexs=[] with regularLogIndexNames=null selects all native direct-write indexes; when both keys are [], both categories are selected; a non-empty direct-write array plus a regular [] is a union. Names in the catalog are obtained from the available index API; a clone is selectable only when source A is valid. The old protocol without regularLogIndexNames keeps the historical indexs semantics: missing key/null means no index restriction, [] follows the old execution path and is not interpreted as the new-version empty array.

LogBamboo accepts only a standalone logbamboo connection; storageClass/storageFormat must be omitted or empty. Without a standalone searchToken, querying is unavailable and custom read principals are cleared. Doris is fixed to json and has no archive class; for object storage, only dataWaitSeconds takes effect for waiting. Retention duration is controlled by the workspace or external lifecycle; the newly added compatible duration does not change retention for an individual rule.

Saving the configuration, credentials, and subsequent forwarding/cache notifications are handled in separate steps; success does not mean data has already been written. When the create save or a subsequent audit fails, the new rule may already exist; locate it by name in the list first, then handle the unfinished part to avoid duplicate creation.

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.

Body Request Parameters

Parameter Type Required Description
readPermissionSet[*] string Single principal. Do not treat a role name as a UUID; verify the actual readable result.
Example: wsAdmin
How to obtain or fill in: Use a role UUID from this workspace; the shared permission engine also recognizes acnt_/group_ principals.
extend.filters array Actual filter condition array; [] means no additional field conditions, and the entire category may be forwarded. match/not match and their normalized aliases are rejected; do not mix the log index advancedFilter structure into this field.
Example: [{"name": "env", "condition": "and", "operation": "=", "value": ["production"]}]
How to obtain or fill in: Use the actual fields and values for the corresponding dataType, and verify the match scope before saving.
extend.filters[*] json Recommended to use complete name/condition/operation/value; this is not the query_task.search structure.
Example: {"name": "env", "condition": "and", "operation": "=", "value": ["production"]}
How to obtain or fill in: Each item is one condition; for complex nesting, validate against an existing configuration first.
extend.filters[*].name string Actual field key.
Example: env
How to obtain or fill in: Fill in according to the actual raw field, relationship, operation, and value.
extend.filters[*].condition string and/or relationship with the previous condition; ignored for the first item.
Example: and
How to obtain or fill in: Fill in according to the actual raw field, relationship, operation, and value.
extend.filters[*].operation string Common operations: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; match/contain types are not supported.
Example: =
How to obtain or fill in: Fill in according to the actual raw field, relationship, operation, and value.
extend.filters[*].value array Match values. For equality/comparison, the first item is used; for set operations, multiple items are used.
Example: ["production"]
How to obtain or fill in: Fill in according to the actual raw field, relationship, operation, and value.
extend.filters[*].value[*] JSON A single string/number; preserve the actual type.
Example: production
How to obtain or fill in: Use the raw field value.
extend.indexs array Array of native direct-write log index names; in the new version, [] means all indexes of this category, and a non-empty array means specified indexes. Behavior differs for the old protocol when regularLogIndexNames is missing; see Usage. This is not a UUID array.
Example: ["native_app_logs"]
How to obtain or fill in: Obtain name from content.items where type=native in Available Forwarding Indexes; note the spelling indexs.
extend.indexs[*] string Actual name, trimmed and deduplicated; new selections in the new version must be in the currently available catalog.
Example: native_app_logs
How to obtain or fill in: Obtain the name of the native item from Available Forwarding Indexes.
extend.regularLogIndexNames array or null New-version regular index selection for logs only. [] selects all regular indexes; non-empty specifies indexes; null passed together with an indexs array means direct-write only; when updating, passing null for this key alone clears the index restriction. Missing this key indicates the old protocol or retention on update; see Usage for details.
Example: ["default"]
How to obtain or fill in: Obtain name from type=log in Available Forwarding Indexes (including default, regular indexes, and eligible clones).
extend.regularLogIndexNames[*] string A single currently selectable regular index name; if it is a clone, source A must be valid; this is not a UUID.
Example: default
How to obtain or fill in: Obtain the name of the log item from Available Forwarding Indexes.
accessCfg.serviceAccountJson.type string Credential type.
Example: service_account
How to obtain or fill in: Preserve the original value from the same service account JSON.
accessCfg.serviceAccountJson.project_id string GCP project ID.
Example: project-example
How to obtain or fill in: Preserve the original value from the same service account JSON.
accessCfg.serviceAccountJson.private_key string Credential private key; use the complete multi-line string from the original JSON.
Example: <PEM-PRIVATE-KEY>
How to obtain or fill in: Preserve the original value from the same service account JSON.
accessCfg.serviceAccountJson.client_email string Service account email identifier.
Example: xxx@guance.com
How to obtain or fill in: Preserve the original value from the same service account JSON.
name string Y Required on create; maximum 64 UTF-16 code units (most Chinese characters count as 1; non-BMP characters such as some emoji count as 2), and must be unique. Updates do not declare name; renaming is not supported through this API. The caller should provide a non-empty value, although the current name validation does not enforce non-emptiness.
Allowed null: False
Maximum length: 64
Example: production_archive
How to obtain or fill in: Name it according to business needs; first check names of non-deleted/deleting records in the same workspace from the Data Forwarding Rule List.
extend json Optional; on create this is usually {}. On update, the passed value replaces the whole object; legacy index selections have dedicated inheritance rules, see Usage; omit to preserve. Passing null on create may cause a 500 in a later extend.get; on update, an explicit null replaces the whole object as {} while still preserving the dedicated inheritance rules for new-version index selections.
Allowed null: True
Example: {"filters": []}
How to obtain or fill in: Build filters from actual fields; for log scope, you can use the following indexs and regularLogIndexNames fields.
syncExtensionField boolean Optional; defaults to false on create; omit on update to preserve. Affects the structure and masking method of the message returned for logs; it is not a whitelist for selecting fields.
Allowed null: False
Example: false
How to obtain or fill in: Use true when the full log and extension fields need to be forwarded; use false for the original message-only mode.
openPermissionSet boolean Optional; false on create; omit on update to preserve. readPermissionSet controls data query permissions, not rule management API permissions. When LogBamboo has no standalone searchToken, this is forcibly disabled and read principals are cleared.
Allowed null: False
Example: false
How to obtain or fill in: Enable when you need to additionally restrict reading of forwarded data.
readPermissionSet array Optional complete array of read principals; usually configure non-owner roles; the owner/creator retains a read path. On create, []; on update, the passed value replaces the whole array; omit to preserve. An empty array does not mean everyone can query.
Allowed null: False
Example: ["wsAdmin"]
How to obtain or fill in: Obtain roles from role management in this workspace, such as wsAdmin/general/readOnly; fill in members/teams with their actual UUIDs in this workspace.
storeType string Optional on create; fixed to the existing value on update. The public API does not support creating TiDB or Iceberg; legacy TiDB may appear in lists/details, but do not attempt to append hidden parameters based on it.
Allowed null: False
Empty string allowed: True
Allowed values: ['guanceObject', 's3', 'obs', 'oss', 'kafka', 'tos', 'gcs', 'doris', 'logbamboo']
Example: s3
How to obtain or fill in: Object storage s3/oss/obs/tos/gcs, messaging kafka, database doris, service logbamboo, platform built-in object storage guanceObject; omit or leave empty for the site default.
storageClass string Optional archive class; available values are determined by the site/provider; the source code does not list a unified enumeration at this layer. For LogBamboo, omit or leave empty; Doris clears it. Whether archived data can be queried directly depends on the target restore state.
Allowed null: False
Empty string allowed: True
Example: STANDARD
How to obtain or fill in: Configure the actual storage class code for the target provider, such as STANDARD/ARCHIVE; obtain it from the bucket policy and a configuration verified in the console.
storageFormat string Optional; usually defaults to json; omit on update to preserve. The public enumeration excludes iceberg. LogBamboo rejects explicit json/parquet as well; Kafka is normalized to empty, and Doris forces json.
Allowed null: False
Empty string allowed: True
Allowed values: ['json', 'parquet']
Example: json
How to obtain or fill in: Choose json/parquet for object storage; omit for LogBamboo; Kafka does not use a file format; Doris is fixed to json.
dataType string Optional; defaults to logging on create; on update, only the original category may be returned and it cannot be switched. metric must be paired with an available target; logbamboo does not support lineage. The dataType in the request query cannot override the rule category.
Allowed null: False
Allowed values: ['lineage', 'metric', 'llm', 'logging', 'tracing', 'rum', 'keyevent', 'audit_event', 'am']
Example: logging
How to obtain or fill in: Choose lineage/metric/llm/logging/tracing/rum/keyevent/audit_event/am; determine it from the target's original data category.
duration string This field exists only on create; the current implementation uses it for audit context and does not save it as a per-rule retention setting; do not rely on it to change bucket lifecycle. The duration in lists comes from the workspace backup_log retention period.
Allowed values: ['180d', '360d', '720d']
Example: 180d
How to obtain or fill in: Legacy declared compatible values 180d/360d/720d.
accessCfg json Optional, but usually conditionally required for external targets. OpenAPI submits the raw credentials directly over HTTPS and does not use Front's Web AES wrapper. On update, omit the entire object to preserve it; when provided, it replaces the whole object, and only specified sensitive values/partitions/waiting can be inherited.
Allowed null: False
Example: {"provider": "aws", "grantType": "ram", "region": "us-east-1", "bucket": "customer-archive-example", "ak": "<EXTERNAL-AK>", "sk": "<EXTERNAL-SK>"}
How to obtain or fill in: Obtain the complete authorized connection object from the target storage administrator, or construct it based on a configuration verified in the console.
accessCfg.logbamboo json This target allows only this sub-object and system-supplied fields; the endpoint and index must be created in advance, and query requires a standalone searchToken.
Allowed null: False
Example: {"endpoint": "https://archive.example.com", "index": "app_logs", "ingestToken": "<INGEST-TOKEN-AT-LEAST-16>"}
How to obtain or fill in: Use the standalone service configuration only when storeType=logbamboo.
accessCfg.logbamboo.endpoint string No user password, subpath, query/fragment, or whitespace; trailing / is removed during normalization.
Allowed null: False
Empty string allowed: True
Example: https://archive.example.com
How to obtain or fill in: Root address of the target HTTP(S) service.
accessCfg.logbamboo.index string 1..128 characters, allows letters, digits, dots, underscores, and hyphens; cannot be . or ...
Allowed null: False
Empty string allowed: True
Example: app_logs
How to obtain or fill in: Target index that has been created.
accessCfg.logbamboo.ingestToken string At least 16 printable non-whitespace ASCII characters, without the Bearer prefix. On update, omit/empty string or a masked value inherits the old token; on create, a valid token is required.
Allowed null: False
Empty string allowed: True
Example: <INGEST-TOKEN-AT-LEAST-16>
How to obtain or fill in: Obtain a standalone write token from the service administrator.
accessCfg.logbamboo.searchToken string Optional; if not provided, queries cannot be executed. On update, omit to inherit; an empty string removes it. After removal, openPermissionSet and readPermissionSet are cleared/disabled.
Allowed null: False
Empty string allowed: True
Example: <SEARCH-TOKEN-AT-LEAST-16>
How to obtain or fill in: Obtain a standalone query token from the administrator; it cannot be the same as ingestToken.
accessCfg.logbamboo.ca string Must be a loadable PEM CA and must not contain PRIVATE KEY; omitted normalizes to empty; full object updates must explicitly preserve it.
Allowed null: False
Empty string allowed: True
Example: <PEM-CA>
How to obtain or fill in: Optional target CA certificate.
accessCfg.provider string Object storage must match the target provider; GCS is fixed to google.
Allowed null: False
Allowed values: ['aliyun', 'aws', 'huawei', 'volcengine', 'google']
Example: aws
How to obtain or fill in: Actual cloud provider aliyun/aws/huawei/volcengine/google.
accessCfg.grantType string On update of an existing non-special target, the old grantType is inherited; do not rely on this field to switch authorization mode; verify the specific authorization combination in the console first.
Allowed null: False
Allowed values: ['role', 'ram', 'account', 'serviceAccount']
Example: ram
How to obtain or fill in: Choose ram key, role, account site account, or GCS serviceAccount according to the target authorization method.
accessCfg.cloudAccountId string Provide for role/account authorization as required by the target; this is not DF-API-KEY.
Allowed null: False
Example: cloud-account-example
How to obtain or fill in: Authorization association ID obtained from cloud account management; use it as is.
accessCfg.bucket string Required for GCS; for object storage, provide a real accessible bucket; do not use a bucket reserved by the site platform for forwarding.
Allowed null: False
Example: customer-archive-example
How to obtain or fill in: Name of your own object storage bucket.
accessCfg.externalId string Required for role authorization; when updating s3/oss role configurations, a historical externalId digest may be retained.
Allowed null: False
Example: external-id-example
How to obtain or fill in: External ID agreed upon for AWS role trust authorization.
accessCfg.role string Role authorization identity identifier; use the name/identifier required by the console; this is not an RBAC role in this workspace.
Allowed null: False
Example: archive-role
How to obtain or fill in: Obtain it from the role authorized in the target cloud account.
accessCfg.ak string Used together with sk for key authorization; details may return the AK identifier, which does not mean all secrets are returned.
Allowed null: False
Example: <EXTERNAL-AK>
How to obtain or fill in: Target access key ID.
accessCfg.sk string On update, omit/empty attempts to preserve the old SK; an empty string cannot clear it; on create, provide the complete value.
Allowed null: False
Example: <EXTERNAL-SK>
How to obtain or fill in: Key paired with ak.
accessCfg.serviceAccountJson json Required only for the corresponding GCS authorization condition; at least type/project_id/private_key/client_email must be non-empty; do not pass a JSON string; details do not return it.
Allowed null: False
Example: {"type": "service_account", "project_id": "project-example", "private_key": "<PEM-PRIVATE-KEY>", "client_email": "xxx@guance.com"}
How to obtain or fill in: For GCS serviceAccount authorization, use the complete service account JSON object downloaded from Google; do not upload real content to the documentation.
accessCfg.partitionFields array Optional; on update, omit to inherit the old value; an explicit [] clears rule-level partitions; providing this for non-Kafka targets returns 406; members must be non-empty strings.
Allowed null: False
Example: ["app_id", "userid"]
How to obtain or fill in: Kafka only; select partition keys from actual forwarded data fields.
accessCfg.partitionFields[*] string A single partition field, not a partition number.
Allowed null: False
$notEmptyString: True
Example: app_id
How to obtain or fill in: Actual data field name.
accessCfg.topic string Fill in according to the target forwarding configuration for Kafka; whether an empty value automatically creates the target depends on the downstream; do not treat saving as proof of writability.
Allowed null: False
Empty string allowed: True
Example: archive_logs
How to obtain or fill in: Target topic in the Kafka cluster.
accessCfg.url string Kafka connection address; network/authorization and protocol must match.
Allowed null: False
Example: kafka.example.com:9092
How to obtain or fill in: Reachable broker address provided by the Kafka administrator.
accessCfg.securityProtocol string Kafka authentication protocol; the two sasl modes require non-empty username/password.
Allowed null: False
Allowed values: ['plaintext', 'sasl_plaintext', 'sasl_ssl']
Example: sasl_ssl
How to obtain or fill in: plaintext/sasl_plaintext/sasl_ssl.
accessCfg.ca string Provide for Kafka/Doris as required by the target; this is not a private key; omit if unused.
Allowed null: False
Empty string allowed: True
Example: <PEM-CA>
How to obtain or fill in: PEM CA content used for target TLS verification.
accessCfg.mechanism string Kafka SASL mechanism; choose according to cluster requirements.
Allowed null: False
Empty string allowed: True
Allowed values: ['plain', 'scram-sha-256', 'scram-sha-512']
Example: scram-sha-256
How to obtain or fill in: plain/scram-sha-256/scram-sha-512.
accessCfg.username string Conditionally required for Kafka SASL and Doris; on update, the username is not automatically inherited.
Allowed null: False
Empty string allowed: True
Example: archive_writer
How to obtain or fill in: Account authorized for write access in the target system.
accessCfg.password string On update of a non-special target, omit/empty attempts to preserve the old password; it cannot be cleared.
Allowed null: False
Empty string allowed: True
Example: <EXTERNAL-PASSWORD>
How to obtain or fill in: Target account password.
accessCfg.endpoints string Conditionally required for Doris; no credentials, subpath, query, or fragment; the port must be valid.
Allowed null: False
Example: https://doris.example.com:8030
How to obtain or fill in: Doris FE HTTP(S) root address; separate multiple addresses with English commas.
accessCfg.database string Doris database name matches [A-Za-z_][A-Za-z0-9_]{0,63}.
Allowed null: False
Example: archive_db
How to obtain or fill in: Prepared Doris database.
accessCfg.table string Doris table name matches [A-Za-z][A-Za-z0-9_]{0,63}; subsequent create/write behavior is performed by the target service.
Allowed null: False
Example: archive_logs
How to obtain or fill in: Doris target table name.
accessCfg.replicationNum integer Only for Doris; non-negative integer; omit or 0 to use the cluster default; bool is invalid.
Allowed null: False
$minValue: 0
Example: 0
How to obtain or fill in: Number of replicas for a newly created Doris table, determined by cluster node capacity.
accessCfg.region string Object storage should provide this explicitly; the current validation requires a non-empty value before later default filling, and does not rely on the default site region stated in the text.
Allowed null: False
Example: us-east-1
How to obtain or fill in: Region where the target bucket is located; GCS uses the actual GCP region.
accessCfg.endpoint string Provide for s3/obs/oss/tos with ram as required by the actual network; this is not a Kafka broker or the LogBamboo sub-object endpoint.
Allowed null: False
Example: https://s3.example.com
How to obtain or fill in: Custom service access endpoint for object storage.
accessCfg.bucketPath string Optional; an empty string means the bucket root prefix; when providing a complete object on update, it should be filled back in.
Allowed null: False
Empty string allowed: True
Example: production/logs
How to obtain or fill in: Target prefix inside your own bucket, excluding credentials.
accessCfg.dataWaitSeconds integer Effective only for object storage; defaults to 3600 on create; on update, omit to inherit the old effective value, otherwise 3600; non-object targets remove this key; bool or other values are invalid.
Allowed null: False
Allowed values: [900, 1800, 3600]
Example: 3600
How to obtain or fill in: Choose 900/1800/3600 seconds for object storage.
accessCfg.isEncrypt boolean Optional; no encryption by default; this is not a credential transmission/at-rest encryption switch, and no key management parameters are provided.
Allowed null: False
Example: false
How to obtain or fill in: Fill in according to the target's forwarding data encryption requirements.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/log_backup_cfg/add' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"name":"production_archive","dataType":"logging","storeType":"s3","storageFormat":"json","storageClass":"STANDARD","extend":{"filters":[],"regularLogIndexNames":["default"]},"syncExtensionField":false,"accessCfg":{"provider":"aws","grantType":"ram","region":"us-east-1","bucket":"customer-archive-example","ak":"<EXTERNAL-AK>","sk":"<EXTERNAL-SK>","dataWaitSeconds":3600}}'

Response

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

Field Type Description
content.id integer or null Record number; the creation snapshot is generated before submission and may be null; use uuid for calls.
content.uuid string lgbp_ rule UUID.
content.workspaceUUID string Workspace it belongs to.
content.name string Rule name; after creation, this public update API cannot rename it.
content.conditions string Conditions generated from extend.filters; empty string or {} when there are no additional filters.
content.syncExtensionField boolean Whether to sync extension fields.
content.externalResourceAccessCfgUUID string Access configuration identifier, not a credential.
content.storeType string Saved target type; legacy TiDB may be readable but cannot be created by the current OpenAPI.
content.storageClass string Target archive class.
content.storageFormat string json/parquet; may be empty for Kafka or LogBamboo; Iceberg is excluded from this public list/detail.
content.dataType string Data category fixed for the rule; legacy empty values are treated as logging.
content.taskStatusCode integer Status reported by the background forwarding task; usually -1 on create; not the current HTTP status.
content.taskErrorCode string Background forwarding error code; an empty string means no current error record; successful saving does not guarantee task success.
content.openPermissionSet boolean Custom data read permission switch.
content.readPermissionSet array<string> Saved read principals.
content.readPermissionSet[] string Single role/member/team identifier.
content.deleteStatus string Deletion processing status; deleting means a built-in storage rule is being deleted asynchronously; legacy values may be empty or completed.
content.status integer 0 enabled, 2 disabled, 3 deleted.
content.creator string Creator identity.
content.updator string Updater identity; may be empty initially.
content.createAt integer Creation Unix seconds.
content.updateAt integer Update Unix seconds; -1 if not updated.
content.deleteAt integer Deletion Unix seconds; -1 if not deleted.
content.extend object Saved scope/condition configuration: optional; on create this is usually {}; on update, the passed value replaces the whole object; legacy index selections have dedicated inheritance rules, see Usage; omit to preserve. Passing null on create may cause a 500 in a later extend.get; on update, an explicit null replaces the whole object as {} while still preserving the dedicated inheritance rules for new-version index selections.
content.extend.filters array Saved scope/condition configuration: actual filter condition array; [] means no additional field conditions, and the entire category may be forwarded. match/not match and their normalized aliases are rejected; do not mix the log index advancedFilter structure into this field.
content.extend.filters[] json Saved scope/condition configuration: recommended to use complete name/condition/operation/value; this is not the query_task.search structure.
content.extend.filters[].name string Saved scope/condition configuration: actual field key.
content.extend.filters[].condition string Saved scope/condition configuration: and/or relationship with the previous condition; ignored for the first item.
content.extend.filters[].operation string Saved scope/condition configuration: common operations: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; match/contain types are not supported.
content.extend.filters[].value array Saved scope/condition configuration: match values. For equality/comparison, the first item is used; for set operations, multiple items are used.
content.extend.filters[].value[] JSON Saved scope/condition configuration: a single string/number; preserve the actual type.
content.extend.indexs array Saved scope/condition configuration: array of native direct-write log index names; in the new version, [] means all indexes of this category, and a non-empty array means specified indexes. Behavior differs for the old protocol when regularLogIndexNames is missing; see Usage. This is not a UUID array.
content.extend.indexs[] string Saved scope/condition configuration: actual name, trimmed and deduplicated; new selections in the new version must be in the currently available catalog.
content.extend.regularLogIndexNames array or null Saved scope/condition configuration: new-version regular index selection for logs only. [] selects all regular indexes; non-empty specifies indexes; null passed together with an indexs array means direct-write only; when updating, passing null for this key alone clears the index restriction. Missing this key indicates the old protocol or retention on update; see Usage for details.
content.extend.regularLogIndexNames[] string Saved scope/condition configuration: a single currently selectable regular index name; if it is a clone, source A must be valid; this is not a UUID.
content.declaration object or null Workspace common declaration attached to non-empty business objects; may be null or an empty object when not configured; an empty object is not added.
{
  "code": 200,
  "content": {
    "id": null,
    "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,
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

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 Request fields are missing, or field values violate the declared validation conditions Parameter parsing failed Check parameter location, field names, types, and values.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError JSON top level is not an object Some JSON file format error Submit a JSON object from the parameter table.
406 ft.ParameterValidationFailed Data category/storage target/connection/name/wait/index selection or immutable field validation does not match Parameter parsing failed Fill in completely according to the target combination; do not use internal TiDB/Iceberg parameters or unknown fields.
406 ft.UnsupportRuleType filters uses match/not match and the corresponding normalized aliases Unsupported rule type: {} Use supported equality, set, or regular expression conditions instead.
400 ft.LogBackupCfgRegionInvalid Object storage region is empty Invalid region for external storage Explicitly fill in the target region.
400 ft.LogBackupCfgProviderInvalid Provider is empty or GCS is not google, etc. Invalid external storage provider type Fill in a provider that matches the actual target.
404 ft.LogBackupCfgUserNameInvalid Kafka SASL username is empty Invalid username in backup rule configuration Provide a username that matches the protocol.
404 ft.LogBackupCfgPasswordInvalid Kafka SASL password is empty Invalid password in backup rule configuration Provide a valid password, or, on update, preserve it according to the inheritance rules.
406 ft.DataTransferBucketUnavailable The target uses a data forwarding bucket reserved by the platform Bucket unavailable Use a customer-owned authorized bucket.
500 ft.InternalServerError Database, cache, field shape, or general downstream 5xx/timeout processing failed Internal error First check whether the rule has been saved by name in the data forwarding list, then handle the audit or unfinished steps; this API does not create query tasks. Keep the traceId.
400 ft.BackupLogNameRepeat A non-deleted record with the same name exists in the workspace, including rules being deleted A data forwarding configuration with the same name {} already exists in the current workspace Use a unique name or wait for deletion to complete and then check again.
403 ft.Forbidden The free/Free Plan edition does not allow creation You do not have permission to perform this operation Confirm the supported edition and API Key permissions.

Feedback

Is this page helpful?