Modify¶
POST /api/v1/log_backup_cfg/{cfg_uuid}/modify
Overview¶
Modify an existing Data Forwarding rule configuration.
Before Calling and Usage Steps¶
Back up the complete configuration from Data Forwarding Rule Details. name, storeType, and dataType cannot be switched through this public modification entry point; dataType may only be returned with the same value. In a modification, omitted top-level fields are preserved; a provided extend replaces the entire object, an explicit null is treated as {}, and legacy configurations such as filters must be filled back in. When a new-version index selection already exists, omitting both selection keys preserves the original scope; passing only indexs without regularLogIndexNames is rejected, and passing only regularLogIndexNames=null in a modification clears the index restriction. Omitting accessCfg preserves the entire object; when provided, the target connection should be fully filled back in, with the old SK/password/service account JSON filled back in when omitted, while Kafka partitionFields and object storage dataWaitSeconds are inherited separately.
New-version log scope examples: regularLogIndexNames=[] selects all regular indexes; ["default"] selects only the default; indexs=[] with regularLogIndexNames=null selects all native direct-write indexes; both keys as [] selects all indexes in both categories; a non-empty direct-write array plus regular [] is their union. Obtain names from the available indexes API; a clone is selectable only when source A is valid. The legacy protocol without regularLogIndexNames retains the historical indexs semantics: a missing key/null means no index restriction, and [] follows the legacy execution path and is not interpreted as the new-version empty array.
When storeType=security_logging, use the log data type logging. storageFormat is omitted, passed as an empty string, or set to json, and storageClass is omitted or left empty. Filters are submitted through extend.filters; extend.indexs or extend.regularLogIndexNames cannot be submitted. To retain the original target, omit accessCfg or pass an empty object. When updating the target, accessCfg contains only securityLogging.
LogBamboo only accepts a standalone logbamboo connection; storageClass/storageFormat must be omitted or empty. Without a separate searchToken, queries are unavailable and custom read principals are cleared. Doris is fixed to json and has no archive storage class; for object storage, only dataWaitSeconds applies to waiting. Retention duration is controlled by the current Workspace or the external storage lifecycle; this modification does not provide independent retention control for individual rules.
Saving the configuration and credentials is handled in separate steps from subsequent forwarding/cache notifications; success does not mean data has already been written. If a modification notification fails, the changes may already have been saved; read the current state and actual forwarding results before retrying.
Path Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| cfg_uuid | string | Y | UUID of a rule in the current Workspace that has not been deleted and is not in the deleting state; not the name. Example: lgbp_exampleHow to obtain or enter: Obtain it from content.data[].uuid in the Data Forwarding Rule List. |
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 the required permission from API Key Management in the target Workspace. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| readPermissionSet[*] | string | A single principal. Do not treat a role name as a UUID; verify the actual read result. Example: wsAdminHow to obtain or enter: Use a role UUID from the current 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 enter: Use the actual fields and values for the corresponding dataType, and verify the match scope before saving. |
|
| extend.filters[*] | json | The complete name/condition/operation/value is recommended; this is not the query_task.search structure. Example: {"name": "env", "condition": "and", "operation": "=", "value": ["production"]}How to obtain or enter: One condition per item; for complex nesting, validate the existing configuration first. |
|
| extend.filters[*].name | string | Actual field key. Example: envHow to obtain or enter: Fill in according to the actual original field, relationship, operation, and value. |
|
| extend.filters[*].condition | string | Relationship between and/or and the preceding condition; ignored for the first item. Example: andHow to obtain or enter: Fill in according to the actual original field, relationship, operation, and value. |
|
| extend.filters[*].operation | string | Common operations are =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, and not_exist; match/contain types are not supported. Example: =How to obtain or enter: Fill in according to the actual original field, relationship, operation, and value. |
|
| extend.filters[*].value | array | Match value; the first item is used for equality/comparison, and multiple items are used for set operations. Example: ["production"]How to obtain or enter: Fill in according to the actual original field, relationship, operation, and value. |
|
| extend.filters[*].value[*] | JSON | A single string/numeric value; the actual type is preserved. Example: productionHow to obtain or enter: Use the original field value. |
|
| extend.indexs | array | Array of native direct-write log index names; in the new version, [] means all indexes of that category, and a non-empty array means specified ones. Behavior differs in the legacy protocol when regularLogIndexNames is missing; see Usage. This is not a UUID array. Example: ["native_app_logs"]How to obtain or enter: From content.items in Available Forwarding Indexes, take name for items with type=native; note the spelling indexs. |
|
| extend.indexs[*] | string | Actual name; trimmed and deduplicated. Newly added selections in the new version must be in the currently available catalog. Example: native_app_logsHow to obtain or enter: From Available Forwarding Indexes, take name for native items. |
|
| extend.regularLogIndexNames | array or null | New-version regular index selection for logs only. [] means all regular indexes; non-empty means specified; null together with an indexs array means direct write only. Passing only this key as null in a modification clears the index restriction. A missing key means the legacy protocol or retention during modification; see Usage for details. Example: ["default"]How to obtain or enter: From Available Forwarding Indexes, take name for type=log items (including default, regular indexes, and eligible clones). |
|
| extend.regularLogIndexNames[*] | string | A single currently selectable regular index name; when it includes a clone, source A must be valid. This is not a UUID. Example: defaultHow to obtain or enter: Take the name of a log item in Available Forwarding Indexes. |
|
| accessCfg.serviceAccountJson.type | string | Credential type. Example: service_accountHow to obtain or enter: Preserve the original value from the same service account JSON. |
|
| accessCfg.serviceAccountJson.project_id | string | GCP project ID. Example: project-exampleHow to obtain or enter: 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 enter: Preserve the original value from the same service account JSON. |
|
| accessCfg.serviceAccountJson.client_email | string | Service account email identifier. Example: xxx@truewatch.comHow to obtain or enter: Preserve the original value from the same service account JSON. |
|
| extend | json | Optional; usually {} on creation. In a modification, passing a value replaces the entire object, while the legacy index selection has dedicated inheritance rules; see Usage. Omitting it preserves the existing value. Passing null on creation may cause a 500 in subsequent extend.get calls; in a modification, explicit null is treated as {} for a full replacement, while the dedicated inheritance rules for new-version index selection still apply. Allows null: True Example: {"filters": []}How to obtain or enter: Construct filters with actual fields; for the log scope, use the following indexs and regularLogIndexNames fields together. |
|
| syncExtensionField | boolean | Optional; defaults to false on creation and is preserved if omitted in a modification. This affects the structure of the returned log message and the masking method; it is not a whitelist for selecting fields. Allows null: False Example: falseHow to obtain or enter: Set to true when forwarding complete logs and extended fields; set to false to retain the original message-only behavior. |
|
| openPermissionSet | boolean | Optional; false on creation and preserved if omitted in a modification. readPermissionSet controls data query permissions, not rule management API permissions. When LogBamboo has no separate searchToken, it is forcibly disabled and read principals are cleared. Allows null: False Example: falseHow to obtain or enter: Enable it when additional restrictions on reading forwarded data are required. |
|
| readPermissionSet | array | Optional complete array of read principals; usually configured for non-owner roles, while the owner/creator retains a read path. [] on creation; in a modification, passing a value replaces the entire array, and omitting it preserves it; an empty array does not mean everyone can query. Allows null: False Example: ["wsAdmin"]How to obtain or enter: Obtain roles from role management in the current Workspace, such as wsAdmin/general/readOnly; enter members/teams using their actual UUIDs in the current Workspace. |
|
| storageClass | string | Optional archive storage class; available values depend on the site/provider, and the source does not list a unified enum at this layer. For LogBamboo, it must be omitted or empty; Doris clears it. Whether archived data can be queried directly depends on the target recovery state. Allows null: False Allows empty string: True Example: STANDARDHow to obtain or enter: Configure the actual storage class code for the target provider, such as STANDARD/ARCHIVE; obtain it from the bucket policy and a verified configuration in the console. |
|
| storageFormat | string | Storage format saved in this request; if omitted, the existing value is used. Historical empty values or explicit empty values are normalized to json. The Kafka modification path does not perform the clearing done during creation, so the result can be a supported json/parquet; LogBamboo must be empty, Doris is fixed to json, and other combinations are validated according to current storage capabilities. Allows null: False Allows empty string: True Allowed values: ['json', 'parquet'] Example: jsonHow to obtain or enter: For object storage, select json/parquet; omit it for LogBamboo, Kafka does not use a file format, and Doris is fixed to json. |
|
| dataType | string | Optional; defaults to logging on creation. In a modification, 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. Allows null: False Allowed values: ['lineage', 'metric', 'llm', 'logging', 'tracing', 'rum', 'keyevent', 'audit_event', 'am'] Example: loggingHow to obtain or enter: Select lineage/metric/llm/logging/tracing/rum/keyevent/audit_event/am; determine it from the target's original data category. |
|
| accessCfg | json | Optional, but usually conditionally required for external targets. OpenAPI submits raw credentials directly over HTTPS and does not use Front's Web AES wrapper. In a modification, omitting the entire object preserves it; if provided, the entire object is replaced, and only specified sensitive values/partitions/wait settings can be inherited. Allows 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 enter: Obtain the complete authorized connection object from the target storage administrator, or construct it based on a verified configuration in the console. |
|
| accessCfg.securityLogging | object | Conditionally required | Only applicable when storeType=security_logging. Required when updating the target. For self, submit only mode. For cross-Workspace backup on the same site, submit mode=sameSite, targetWorkspaceUUID, and the target Workspace's Client Token (token field); the two must match.Allows null: False Example: {"mode":"self"}How to obtain or enter: Select self when backing up to the current Workspace. When backing up to another Workspace on the same site, enter the target Workspace UUID and that Workspace's Client Token. |
| accessCfg.logbamboo | json | Only this child object and system-supplied fields are allowed for this target. The endpoint and index must be created in advance, and query requires a separate searchToken. Allows null: False Example: {"endpoint": "https://archive.example.com", "index": "app_logs", "ingestToken": "<INGEST-TOKEN-AT-LEAST-16>"}How to obtain or enter: Use the standalone service configuration only when storeType=logbamboo. |
|
| accessCfg.logbamboo.endpoint | string | Must not contain user credentials, subpaths, query/fragment, or whitespace; trailing slashes are normalized and removed. Allows null: False Allows empty string: True Example: https://archive.example.comHow to obtain or enter: Root address of the target HTTP(S) service. |
|
| accessCfg.logbamboo.index | string | 1 to 128 characters; letters, digits, dots, underscores, and hyphens are allowed; cannot be . or ... Allows null: False Allows empty string: True Example: app_logsHow to obtain or enter: The target index that has already been created. |
|
| accessCfg.logbamboo.ingestToken | string | At least 16 printable, non-whitespace ASCII characters, without the Bearer prefix. In a modification, omitting it, an empty string, or a masked value inherits the old token; on creation it must be valid. Allows null: False Allows empty string: True Example: <INGEST-TOKEN-AT-LEAST-16>How to obtain or enter: Obtain a separate write token from the service administrator. |
|
| accessCfg.logbamboo.searchToken | string | Optional; if not provided, queries cannot be executed. In a modification, omitting it inherits the existing value, and an empty string removes it. After removal, openPermissionSet and readPermissionSet are cleared/disabled. Allows null: False Allows empty string: True Example: <SEARCH-TOKEN-AT-LEAST-16>How to obtain or enter: Obtain a separate 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. Omitting it normalizes to empty; when updating the full object, it must be explicitly retained. Allows null: False Allows empty string: True Example: <PEM-CA>How to obtain or enter: Optional target CA certificate. |
|
| accessCfg.provider | string | For object storage, this must match the target provider; GCS is fixed to google. Allows null: False Allowed values: ['aliyun', 'aws', 'huawei', 'volcengine', 'google'] Example: awsHow to obtain or enter: Actual cloud provider: aliyun/aws/huawei/volcengine/google. |
|
| accessCfg.grantType | string | When modifying an existing non-special target, the old grantType is inherited; do not rely on this field to switch authorization modes. Verify the specific authorization combination in the console first. Allows null: False Allowed values: ['role', 'ram', 'account', 'serviceAccount'] Example: ramHow to obtain or enter: Select ram keys, role, account site account, or GCS serviceAccount according to the target authorization method. |
|
| accessCfg.cloudAccountId | string | Provided for role/account authorization as required by the target; this is not DF-API-KEY. Allows null: False Example: cloud-account-exampleHow to obtain or enter: The 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 site platform reserved forwarding bucket. Allows null: False Example: customer-archive-exampleHow to obtain or enter: Name of your own object storage bucket. |
|
| accessCfg.externalId | string | Required for role-based authorization. When modifying s3/oss role configurations, the historical externalId digest may be retained. Allows null: False Example: external-id-exampleHow to obtain or enter: The External ID agreed upon for AWS role trust authorization. |
|
| accessCfg.role | string | Role authorization identity; use the name/identifier required by the console, not a RBAC role in the current Workspace. Allows null: False Example: archive-roleHow to obtain or enter: Obtain it from the role authorized by the target cloud account. |
|
| accessCfg.ak | string | Used with sk for key-based authorization; details may return the AK identifier, which does not mean all secrets are returned. Allows null: False Example: <EXTERNAL-AK>How to obtain or enter: Target access key ID. |
|
| accessCfg.sk | string | In a modification, omitting it or providing an empty value attempts to retain the old SK; it cannot be cleared with an empty string. On creation, provide the complete value. Allows null: False Example: <EXTERNAL-SK>How to obtain or enter: Secret key paired with ak. |
|
| accessCfg.serviceAccountJson | json | Required only under the corresponding GCS authorization conditions; at least type/project_id/private_key/client_email must be non-empty. Do not pass a JSON string; details are not returned. Allows null: False Example: {"type": "service_account", "project_id": "project-example", "private_key": "<PEM-PRIVATE-KEY>", "client_email": "xxx@truewatch.com"}How to obtain or enter: For GCS serviceAccount authorization, use the complete service account JSON object downloaded from Google; do not upload real content to documentation. |
|
| accessCfg.partitionFields | array | Optional; in a modification, omitting it inherits the old value, and explicit [] clears rule-level partitions. Providing it for non-Kafka targets returns 406; members must be non-empty strings. Allows null: False Example: ["app_id", "userid"]How to obtain or enter: For Kafka only, select partition keys from actual forwarded data fields. |
|
| accessCfg.partitionFields[*] | string | A single partition field, not a partition number. Allows null: False $notEmptyString: True Example: app_idHow to obtain or enter: Actual data field name. |
|
| accessCfg.topic | string | For Kafka, fill it according to the target forwarding configuration; whether an empty value automatically creates the target depends on downstream, and saving does not prove writability. Allows null: False Allows empty string: True Example: archive_logsHow to obtain or enter: Target topic in the Kafka cluster. |
|
| accessCfg.url | string | Kafka connection address; network/authorization and protocol must match. Allows null: False Example: kafka.example.com:9092How to obtain or enter: Reachable broker address provided by the Kafka administrator. |
|
| accessCfg.securityProtocol | string | Kafka authentication protocol; the two sasl modes require non-empty username/password. Allows null: False Allowed values: ['plaintext', 'sasl_plaintext', 'sasl_ssl'] Example: sasl_sslHow to obtain or enter: plaintext/sasl_plaintext/sasl_ssl. |
|
| accessCfg.ca | string | Provided as needed for Kafka/Doris; not a private key; omit if unused. Allows null: False Allows empty string: True Example: <PEM-CA>How to obtain or enter: PEM CA content used for target TLS verification. |
|
| accessCfg.mechanism | string | Kafka SASL mechanism; select according to cluster requirements. Allows null: False Allows empty string: True Allowed values: ['plain', 'scram-sha-256', 'scram-sha-512'] Example: scram-sha-256How to obtain or enter: plain/scram-sha-256/scram-sha-512. |
|
| accessCfg.username | string | Conditionally required for Kafka SASL and Doris; usernames are not automatically inherited during modification. Allows null: False Allows empty string: True Example: archive_writerHow to obtain or enter: Account authorized to write to the target system. |
|
| accessCfg.password | string | For non-special targets during modification, omitting it or providing an empty value attempts to retain the old password; it cannot be cleared. Allows null: False Allows empty string: True Example: <EXTERNAL-PASSWORD>How to obtain or enter: Target account password. |
|
| accessCfg.endpoints | string | Conditionally required for Doris; no credentials, subpaths, query, or fragment; the port must be valid. Allows null: False Example: https://doris.example.com:8030How to obtain or enter: Doris FE HTTP(S) root address; separate multiple addresses with commas. |
|
| accessCfg.database | string | Doris database name must match [A-Za-z_][A-Za-z0-9_]{0,63}. Allows null: False Example: archive_dbHow to obtain or enter: A prepared Doris database. |
|
| accessCfg.table | string | Doris table name must match [A-Za-z][A-Za-z0-9_]{0,63}; subsequent creation/write behavior is performed by the target service. Allows null: False Example: archive_logsHow to obtain or enter: Doris target table name. |
|
| accessCfg.replicationNum | integer | Can only be provided for Doris; a non-negative integer; omit or use 0 to use the cluster default; bool is invalid. Allows null: False $minValue: 0 Example: 0How to obtain or enter: Number of replicas for a new Doris table; determine it according to cluster node capacity. |
|
| accessCfg.region | string | For object storage, provide it explicitly; the current validation requires it to be non-empty before post-default filling and does not rely on the default site region stated in the text. Allows null: False Example: us-east-1How to obtain or enter: Region where the target bucket is located; for GCS, use the actual GCP region. |
|
| accessCfg.endpoint | string | For s3/obs/oss/tos with ram, provide it according to actual network requirements; this is not a Kafka broker or the endpoint of the LogBamboo child object. Allows null: False Example: https://s3.example.comHow to obtain or enter: Custom service access endpoint for object storage. |
|
| accessCfg.bucketPath | string | Optional; an empty string is the bucket root prefix. When providing the complete object in a modification, fill it back in. Allows null: False Allows empty string: True Example: production/logsHow to obtain or enter: Target prefix within your own bucket, excluding credentials. |
|
| accessCfg.dataWaitSeconds | integer | Effective only for object storage; defaults to 3600 on creation. In a modification, omitting it inherits the old effective value; otherwise 3600 is used. Non-object targets remove this key; bool or other values are invalid. Allows null: False Allowed values: [300, 900, 1800, 3600] Example: 3600How to obtain or enter: For object storage, select 300/900/1800/3600 seconds; 300 means 5 minutes. |
|
| accessCfg.isEncrypt | boolean | Optional; encryption is disabled by default. This is not a credential transmission/at-rest encryption switch, and no key management parameters are provided. Allows null: False Example: falseHow to obtain or enter: Fill it in according to the target's forwarding data encryption requirements. |
Request Example¶
curl --request POST 'https://openapi.truewatch.com/api/v1/log_backup_cfg/lgbp_example/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"dataType":"logging","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 | Database ID of the existing Data Forwarding rule. |
| content.uuid | string | lgbp_ rule UUID. |
| content.workspaceUUID | string | Workspace to which it belongs. |
| content.name | string | Rule name; after creation, this public modification 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 extended fields are synchronized. |
| content.externalResourceAccessCfgUUID | string | Access configuration identifier, not a credential. |
| content.storeType | string | Saved target type; historical TiDB may be readable but cannot be created through the current OpenAPI. |
| content.storageClass | string | Target archive storage class. |
| content.storageFormat | string | Format actually saved in this request; a Kafka modification can be json/parquet and must not be assumed empty based on creation behavior. LogBamboo is empty, and Doris is fixed to json. |
| content.dataType | string | Data category fixed for the rule; historical empty values are treated as logging. |
| content.taskStatusCode | integer | Status reported by the background forwarding task; usually -1 on creation and not the current HTTP status. |
| content.taskErrorCode | string | Background forwarding error code; an empty string means no current error record. A successful save does not guarantee task success. |
| content.openPermissionSet | boolean | Switch for custom data read permissions. |
| content.readPermissionSet | array<string> |
Saved read principals. |
| content.readPermissionSet[] | string | A single role/member/team identifier. |
| content.deleteStatus | string | Deletion processing status; deleting means a built-in storage rule is being deleted asynchronously, and historical 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 timestamp in seconds. |
| content.updateAt | integer | Update Unix timestamp in seconds; -1 if not updated. |
| content.deleteAt | integer | Deletion Unix timestamp in seconds; -1 if not deleted. |
| content.extend | object | Saved scope/condition configuration: Optional; usually {} on creation. In a modification, passing a value replaces the entire object, while the legacy index selection has dedicated inheritance rules; see Usage. Omitting it preserves the existing value. Passing null on creation may cause a 500 in subsequent extend.get calls; in a modification, explicit null is treated as {} for a full replacement, while the dedicated inheritance rules for new-version index selection still apply. |
| 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: The complete name/condition/operation/value is recommended; 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: Relationship between and/or and the preceding condition; ignored for the first item. |
| content.extend.filters[].operation | string | Saved scope/condition configuration: Common operations are =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, and not_exist; match/contain types are not supported. |
| content.extend.filters[].value | array | Saved scope/condition configuration: Match value; the first item is used for equality/comparison, and multiple items are used for set operations. |
| content.extend.filters[].value[] | JSON | Saved scope/condition configuration: A single string/numeric value; the actual type is preserved. |
| content.extend.indexs | array | Saved scope/condition configuration: Array of native direct-write log index names; in the new version, [] means all indexes of that category, and a non-empty array means specified ones. Behavior differs in the legacy 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. Newly added 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. [] means all regular indexes; non-empty means specified; null together with an indexs array means direct write only. Passing only this key as null in a modification clears the index restriction. A missing key means the legacy protocol or retention during modification; see Usage for details. |
| content.extend.regularLogIndexNames[] | string | Saved scope/condition configuration: A single currently selectable regular index name; when it includes a clone, source A must be valid. This is not a UUID. |
| content.declaration | object or null | Workspace common declaration attached to a non-empty business object; may be null or an empty object when not configured; an empty object is not added. |
{
"code": 200,
"content": {
"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": 1785427300,
"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 | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Correct the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | The JSON top level is not an object | Some json file format is invalid | Submit a JSON object from the parameter table. |
| 406 | ft.ParameterValidationFailed | Data category/storage target/connection/name/wait/index selection or immutable field validation mismatch | Parameter parsing failed | Fill in all fields according to the target combination; do not use internal TiDB/Iceberg parameters or unknown fields. |
| 406 | ft.UnsupportRuleType | filters uses match/not match or 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 enter the target region. |
| 400 | ft.LogBackupCfgProviderInvalid | The provider is empty or GCS is not google, etc. | Invalid type of external storage provider | Enter a provider that matches the actual target. |
| 404 | ft.LogBackupCfgUserNameInvalid | Kafka SASL username is empty | Invalid username in the backup rule configuration | Provide a username that matches the protocol. |
| 404 | ft.LogBackupCfgPasswordInvalid | Kafka SASL password is empty | Invalid password in the backup rule configuration | Provide a valid password or retain it according to the inheritance rules during modification. |
| 406 | ft.DataTransferBucketUnavailable | The target uses a platform-reserved data forwarding bucket | Bucket unavailable | Use a customer-owned authorized bucket. |
| 500 | ft.InternalServerError | Database, cache, field shape, or normal downstream 5xx/timeout handling failed | Internal error | First read the saved rule by the original configuration UUID and verify actual forwarding/cache notifications, then decide whether to make another modification. This API does not create query tasks and does not use task_id for troubleshooting. Keep the traceId. |
| 404 | ft.ObjectNotExists | The connection configuration associated with the rule does not exist | The specified object does not exist | Verify the lifecycle of the associated resource before modifying. |
| 400 | ft.WKSPTypeUnsupportAction | The current edition is not pay/enterprise/unlimited | The current Workspace edition is not supported | Confirm that the edition is supported. |
| 404 | ft.LogBackupCfgNoExists | The target does not exist, has been deleted, is being deleted, or is in another Workspace | The specified Data Forwarding configuration does not exist | Obtain a valid UUID from the list; do not modify during deleting. |
| 403 | ft.Forbidden | The target is the Iceberg format excluded by this public API | You do not have permission to perform this operation | Use the corresponding supported dedicated management entry point. |