Create Default Type Log Index¶
POST /api/v1/log_index_cfg/add
Overview¶
Create an internal log index configuration.
Prerequisites and Usage Steps¶
First, confirm that the workspace has multi-index enabled and has quota. The default maximum number of internal indexes is 30, but this can be adjusted in the workspace configuration. Enabled, disabled, and cloned internal indexes all count toward the quantity; bound external indexes are not counted against this internal quota. For creation, it is recommended to specify name, duration, and extend completely; new scopedb indexes are full-line indexes. directIndex=true indicates native direct write; the condition-based routing and direct write method must be consistent with the collection side.
The public create Body does not declare cloneConfig, so you cannot create a clone by adding hidden fields. For bulk templates and clone configurations, see the public structure of the import API.
Storage configuration, actual downstream operations, and database commit are not the same atomic step. If an error or timeout occurs, first check the current configuration in the list and details, then verify the actual storage state; do not directly repeat the create operation. Successful index creation does not guarantee that the physical index has been built or that data exists. Before shortening retention, confirm the data retention requirements.
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 |
|---|---|---|---|
| storagePolicy.longStorageEnabled | boolean | If omitted in the object, the default is false. Disabling normalizes longStorageDuration to empty; this does not mean historical data is immediately deleted. Example: falseHow to obtain or enter: true enables long-term storage, false disables it. Explicit JSON booleans are recommended. |
|
| storagePolicy.longStorageDuration | string | Conditionally required when enabled. The field is a string containing d, not seconds/hours; do not apply the 3600d range for metric rp to logs. Example: 180dHow to obtain or enter: For pay, the default options are 90d/120d/180d/360d; for enterprise/unlimited, the default range is 1d to 1800d and must be strictly greater than duration. |
|
| extend.matchMode | string | Omitted/empty values are treated as basic. advanced uses advancedFilter; basic uses filters. When switching modes, provide the corresponding complete conditions at the same time. Example: basicHow to obtain or enter: Use basic for basic matching and advanced for advanced matching. |
|
| extend.filters | array | Array of leaves for basic; non-empty conditions generate conditions. Create/modify basic explicitly rejects operation match or not match; for complex semantics such as text contains, prefer the corresponding advanced operators. Example: [{"name": "env", "condition": "and", "operation": "=", "value": ["production"]}]How to obtain or enter: Conditions based on actual log fields; to clear basic matching, explicitly pass filters=[]. |
|
| extend.filters[*].name | string | Actual field name; do not add backticks. Example: envHow to obtain or enter: Fill in according to actual log fields, values, and matching relationships. |
|
| extend.filters[*].condition | string | Relationship with the previous condition: and/or. The connector for the first item is ignored. Example: andHow to obtain or enter: Fill in according to actual log fields, values, and matching relationships. |
|
| extend.filters[*].operation | string | Common operators: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; basic prohibits match/not match. Example: =How to obtain or enter: Fill in according to actual log fields, values, and matching relationships. |
|
| extend.filters[*].value | array | Condition value array; = and comparisons use the first item. For existence operators, a non-empty placeholder array is still recommended. Example: ["production"]How to obtain or enter: Fill in according to actual log fields, values, and matching relationships. |
|
| extend.filters[*] | json | Condition object; field name/operator/value should be complete. Example: {"name": "env", "condition": "and", "operation": "=", "value": ["production"]}How to obtain or enter: Each item represents one basic condition. |
|
| extend.filters[*].value[*] | JSON | A single comparison value; do not use a display name in place of the actual value. Example: productionHow to obtain or enter: Take the original log field value and preserve the string/numeric type. |
|
| extend.advancedFilter | json | Required root group object when advanced is used. A group uses type=group, condition, and filters; a leaf uses type=rule, name, operation, and value. Example: {"type": "group", "condition": "and", "filters": [{"type": "rule", "name": "env", "operation": "=", "value": ["production"]}]}How to obtain or enter: In advanced mode, organize according to the following recursive group/rule structure; avoid copying the flat basic format. |
|
| extend.advancedFilter.type | string | Root node type; cannot be rule. Example: groupHow to obtain or enter: The root node is always group. |
|
| extend.advancedFilter.condition | string | Logical relationship of child conditions in the same group. Example: andHow to obtain or enter: and/or; default is and. |
|
| extend.advancedFilter.filters | array | Array of child nodes; nesting the same group structure is allowed. An empty group generates an empty condition. Example: [{"type": "rule", "name": "env", "operation": "=", "value": ["production"]}]How to obtain or enter: Fill in rule leaves or recursive group child nodes. |
|
| extend.advancedFilter.filters[*] | json | A rule leaf or group object. Example: {"type": "rule", "name": "env", "operation": "=", "value": ["production"]}How to obtain or enter: Fill in leaves according to actual log fields, and continue recursively for groups using the same structure. |
|
| extend.advancedFilter.filters[*].type | string | rule is a leaf, and group is a recursive group. Example: ruleHow to obtain or enter: Fill in according to the corresponding group/rule node structure. |
|
| extend.advancedFilter.filters[*].name | string | Non-empty field name; required for rule. Example: envHow to obtain or enter: Fill in according to the corresponding group/rule node structure. |
|
| extend.advancedFilter.filters[*].operation | string | rule allows =, !=, in, not_in, match, not_match, wildcard, not_wildcard, regexp, not_regexp, >, <, >=, <=, exist, not_exist. Example: =How to obtain or enter: Fill in according to the corresponding group/rule node structure. |
|
| extend.advancedFilter.filters[*].value | array | Array required for rule; exist/not_exist can use []; other operators do not allow an empty array. Example: ["production"]How to obtain or enter: Fill in according to the corresponding group/rule node structure. |
|
| extend.advancedFilter.filters[*].condition | string | Group subgroups use and/or. Example: andHow to obtain or enter: Fill in according to the corresponding group/rule node structure. |
|
| extend.advancedFilter.filters[*].filters | array | Recursive array for group subgroups; omit for rule leaves. Example: []How to obtain or enter: Fill in according to the corresponding group/rule node structure. |
|
| extend.advancedFilter.filters[*].value[*] | JSON | A single string or numeric value. regexp values do not contain backticks. Example: productionHow to obtain or enter: Take the original log value. |
|
| extend.extendFields | array | Optional array of key fields. Submit using the tag/alias structure, and tag must be non-empty. Create does not enforce this structure validation, while modify does. Import additionally synchronizes field indexes according to the field acceleration switch; direct modify only saves this configuration. Example: [{"tag": "service", "alias": "服务"}]How to obtain or enter: Select key display fields from actual log fields. |
|
| extend.extendFields[*] | json | Only tag/alias keys are allowed. Example: {"tag": "service", "alias": "服务"}How to obtain or enter: Fill in according to the field key and display alias. |
|
| extend.extendFields[*].tag | string | Conditionally required, non-empty key. Example: serviceHow to obtain or enter: Actual log field name. |
|
| extend.extendFields[*].alias | string | Optional display alias. Example: 服务How to obtain or enter: Business display name; can be omitted. |
|
| extend.topFields | array | Optional display configuration, using the same tag/alias object. Regular modify is not a separate top-pinning API. Example: [{"tag": "host", "alias": "主机"}]How to obtain or enter: Retain the console's pinned field list. |
|
| extend.topFields[*] | json | Single display field object. Example: {"tag": "host", "alias": "主机"}How to obtain or enter: Populate from the existing list. |
|
| extend.topFields[*].tag | string | Field key. Example: hostHow to obtain or enter: Actual field name. |
|
| extend.topFields[*].alias | string | Optional alias. Example: 主机How to obtain or enter: Display alias. |
|
| extend.services | array | Optional display information; does not replace the actual matching conditions of filters. Example: ["checkout-api"]How to obtain or enter: Retain the related service display configuration in the console. |
|
| extend.services[*] | string | Single service display value. Example: checkout-apiHow to obtain or enter: Actual service name. |
|
| name | string | Y | Required for creation; the declared maximum is 256 characters while the actual storage column is 128, so 128 or fewer is recommended. ES log storage does not allow hyphens. Do not use the reserved name default or another index UUID. Regular indexes cannot be renamed through modify. Null allowed: False Maximum length: 256 Example: production_logsHow to obtain or enter: Name according to business needs; first check the names already used in this workspace from the Log Index List. |
| desc | string | Optional description, up to 1024 characters. For regular modify, omission preserves it, and an empty string clears it; for external binding modification, omission clears it. Null allowed: False Empty string allowed: True Maximum length: 1024 Example: 生产服务日志。How to obtain or enter: Enter the purpose, source, and maintenance responsibility. |
|
| extend | json | Optional extension object containing actual matching and display configuration. Regular modify merges by first-level keys; keys not provided are preserved, and arrays or nested objects are replaced as a whole; {} does not clear existing filters. Avoid null; some modification branches return 500. Import recover replaces extend as a whole. Null allowed: True Example: {"matchMode": "basic", "filters": [{"name": "env", "condition": "and", "operation": "=", "value": ["production"]}]}How to obtain or enter: Construct matching conditions from actual log fields and values; retain other display configurations from the original details. |
|
| duration | string | A regular create defaults to 3d in most cases. For non-TLS storage, pay allows 3d/7d/14d/30d/60d/90d by default, and enterprise/unlimited allows 1d to 1800d by default; the site configuration prevails. For modify, omission preserves the value. For TLS, setting is used; this field does not control the actual duration. Null allowed: False Example: 7dHow to obtain or enter: Select the standard retention days according to the current workspace edition and log storage, using an integer followed by d. |
|
| storagePolicy | json | Optional complete long-term policy object. For regular create, omit it or use {}; for modify, omission preserves it, {} is normalized to disabled, and use longStorageEnabled=false to explicitly disable it. The long-term duration must be strictly greater than the standard duration, and the unit is still days. Null allowed: False Example: {"longStorageEnabled": false}How to obtain or enter: Long-term storage can be enabled only when log storage is scopedb and the edition is pay/enterprise/unlimited; first confirm the workspace capabilities. |
|
| directIndex | boolean | Optional; defaults to false for creation. Direct write does not route by regular matching order. Regular modify does not have this field, and import recover does not convert existing index modes. Null allowed: False Example: falseHow to obtain or enter: false for regular match-routing indexes; true for native direct-write indexes that write directly by index name. |
|
| isFullLineIndex | int | Accepts only 0/1 or a boolean. For scopedb create, the default is 1 and 0 is not allowed. An existing Message index can change from 0 to 1 but not from 1 to 0; the switch synchronizes the message field index and is irreversible. For modify, omission preserves the value. Null allowed: False Example: 1How to obtain or enter: For scopedb log creation, use 1/true; for other log storage, keep 0/false. |
|
| setting | json | For TLS creation, hot_retention is required. The total duration is converted from the sum of the three hour values to days. When providing setting in regular modification, provide hot storage and any required stages completely; do not send only cold_retention. Other storage types do not interpret this field as TLS. Null allowed: False Example: {"hot_retention": 168}How to obtain or enter: Configure standard/Infrequent Access/archive retention only when the workspace log storage is volctls; values are in hours. |
|
| setting.hot_retention | int | Conditionally required for TLS; the default range is 1 to 1800 days, corresponding to 24..43200 hours and must be a multiple of 24. Hot storage must be at least 7 days when cold storage is used, and at least 30 days when archive storage is used. Null allowed: False Example: 168How to obtain or enter: Enter days × 24; for example, 7 days = 168 hours. |
|
| setting.cold_retention | int | Optional; default 30..1800 days and an integer number of whole-day hours. Do not use 0 to indicate omission; the total must not exceed 1800 days. Null allowed: False Example: 720How to obtain or enter: Infrequent Access storage days × 24; for example, 30 days = 720 hours. Omit when this stage is not enabled. |
|
| setting.archive_retention | int | Optional; default 60..1800 days and an integer number of whole-day hours; hot storage must be at least 30 days, and the total must not exceed 1800 days. Null allowed: False Example: 1440How to obtain or enter: Archive days × 24; for example, 60 days = 1440 hours. Omit when this stage is not enabled. |
Additional Parameter Notes¶
1. Request parameter descriptions
| Parameter | type | Required | Description |
|---|---|---|---|
| name | String | Yes | Index name |
| desc | String | Index description | |
| extend | Json | Extension information used for frontend display | |
| duration | Json | Total index storage duration. Example: 60d | |
| directIndex | Boolean | Native direct-write index, default false, added in the 2025-06-25 iteration | |
| setting | Json | Index configuration information when logs use Volcengine storage |
2. Parameter descriptions in setting
| Parameter | type | Required | Description |
|---|---|---|---|
| hot_retention | int | Yes | Standard storage - hot data; must be an integer number of whole-day hours. Unit: hours (h) |
| cold_retention | int | Infrequent Access storage - cold data; must be an integer number of whole-day hours. Unit: hours (h) | |
| archive_retention | int | Archive storage - archive data; must be an integer number of whole-day hours. Unit: hours (h) |
2.1 Volcengine storage duration limits:
Standard storage: hot data storage. Data range: 1-1800 days. If Infrequent Access storage is present, the data range is 7-1800 days; if archive storage is present, the data range is 30-1800 days.
Infrequent Access storage: cold data storage. Data range: 30-1800 days.
Archive storage: archive data storage. Data range: 60-1800 days.
2.2 Volcengine storage duration limits:
The total storage duration (standard storage + Infrequent Access storage + archive storage) cannot exceed 1800 days.
3. Parameter descriptions in extend
| Parameter | type | Required | Description |
|---|---|---|---|
| matchMode | String | Match mode. Valid values: basic, advanced; defaults to basic if omitted |
|
| filters | Array[dict] | List of basic matching filter conditions. Native direct-write indexes do not require configuration; in advanced mode, an empty array is recommended |
|
| advancedFilter | Dict | Advanced matching condition tree; takes effect when matchMode=advanced |
|
| extendFields | Array | Index extension field information | |
| extendFields[*].tag | String | Yes | Key field name |
| extendFields[*].alias | String | Key field alias | |
| services | String | Matching services |
4. Main structure of extend.filters
| Parameter | type | Required | Description |
|---|---|---|---|
| condition | string | Relationship with the previous filter condition. Valid values: and, or; default: and |
|
| name | string | Field name to filter | |
| operation | string | Operator. Valid values: in, not_in |
|
| value | array | List of values | |
| value[#] | string/int/boolean | Can be a string, number, or boolean |
5. Main structure of extend.advancedFilter
| Parameter | type | Required | Description |
|---|---|---|---|
| type | string | Yes | The root node is fixed to group |
| condition | string | Yes | Relationship among child nodes in the current group. Valid values: and, or |
| filters | array | Yes | List of child nodes; elements can be rule or group |
| filters[#].type | string | Yes | Node type. Valid values: rule, group |
| filters[#].name | string | Required for rule | Log field name |
| filters[#].operation | string | Required for rule | Operator. Valid values: =, !=, in, not_in, match, not_match, wildcard, not_wildcard, regexp, not_regexp, >, <, >=, <=, exist, not_exist |
| filters[#].value | array | Required for rule | List of values; exist / not_exist use an empty array |
When matchMode=advanced, the backend generates conditions in DQL where style, for example IN, NOT IN, = match('xxx'), = wildcard('xxx'); regular filters still retain the legacy generated format.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/log_index_cfg/add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"name":"production_logs","desc":"生产服务日志。","duration":"7d","directIndex":false,"isFullLineIndex":1,"extend":{"matchMode":"basic","filters":[{"name":"env","condition":"and","operation":"=","value":["production"]}]}}'
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 | Database record number; may be null in snapshots before a create is committed. Operations use uuid. |
| content.uuid | string | lgim_ index configuration UUID; the default index uses default. |
| content.workspaceUUID | string | Owning workspace. |
| content.sourceIndexUUID | string | UUID of source A for clone index B; empty for regular indexes. |
| content.name | string | Index name. |
| content.desc | string | Description. |
| content.conditions | string | Actual condition string generated from extend; do not modify this field directly in regular requests. |
| content.sortNo | integer or string | Matching order identifier; usually 0 for native direct write or clones. |
| content.duration | string | Standard storage duration; for TLS, the total days of hot, cold, and archive storage. |
| content.isBindCustomStore | integer or boolean | 1/true indicates binding to external storage. |
| content.directIndex | integer or boolean | 1/true indicates native direct write. |
| content.isFullLineIndex | integer | 1 for full-line, 0 for Message. |
| content.queryType | string | Query category, for example logging/standard or the mode returned by external SLS. |
| content.exterStoreProject | string | External project/database identifier; usually empty for internal indexes. |
| content.exterStoreName | string | External resource name; usually empty for internal indexes. |
| content.externalResourceAccessCfgUUID | string | Access configuration identifier, not the credential itself. |
| content.storeType | string | Usually empty for internal indexes; the actual type when bound to external storage. |
| content.region | string | External region code. |
| content.isPublicNetworkAccess | integer or boolean | Public network access flag. |
| content.status | integer | 0 enabled, 2 disabled, 3 deleted. |
| content.creator | string | Creator identity. |
| content.updator | string | Last updater identity. |
| 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.storagePolicy | object | Optional complete long-term policy object. For regular create, omit it or use {}; for modify, omission preserves it, {} is normalized to disabled, and use longStorageEnabled=false to explicitly disable it. The long-term duration must be strictly greater than the standard duration, and the unit is still days. |
| content.storagePolicy.longStorageEnabled | boolean | If omitted in the object, the default is false. Disabling normalizes longStorageDuration to empty; this does not mean historical data is immediately deleted. |
| content.storagePolicy.longStorageDuration | string | Conditionally required when enabled. The field is a string containing d, not seconds/hours; do not apply the 3600d range for metric rp to logs. |
| content.setting | object | For TLS creation, hot_retention is required. The total duration is converted from the sum of the three hour values to days. When providing setting in regular modification, provide hot storage and any required stages completely; do not send only cold_retention. Other storage types do not interpret this field as TLS. |
| content.setting.hot_retention | integer | Conditionally required for TLS; the default range is 1 to 1800 days, corresponding to 24..43200 hours and must be a multiple of 24. Hot storage must be at least 7 days when cold storage is used, and at least 30 days when archive storage is used. |
| content.setting.cold_retention | integer | Optional; default 30..1800 days and an integer number of whole-day hours. Do not use 0 to indicate omission; the total must not exceed 1800 days. |
| content.setting.archive_retention | integer | Optional; default 60..1800 days and an integer number of whole-day hours; hot storage must be at least 30 days, and the total must not exceed 1800 days. |
| content.extend | object | Optional extension object containing actual matching and display configuration. Regular modify merges by first-level keys; keys not provided are preserved, and arrays or nested objects are replaced as a whole; {} does not clear existing filters. Avoid null; some modification branches return 500. Import recover replaces extend as a whole. |
| content.extend.matchMode | string | Omitted/empty values are treated as basic. advanced uses advancedFilter; basic uses filters. When switching modes, provide the corresponding complete conditions at the same time. |
| content.extend.filters | array | Array of leaves for basic; non-empty conditions generate conditions. Create/modify basic explicitly rejects operation match or not match; for complex semantics such as text contains, prefer the corresponding advanced operators. |
| content.extend.filters[].name | string | Actual field name; do not add backticks. |
| content.extend.filters[].condition | string | Relationship with the previous condition: and/or. The connector for the first item is ignored. |
| content.extend.filters[].operation | string | Common operators: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; basic prohibits match/not match. |
| content.extend.filters[].value | array | Condition value array; = and comparisons use the first item. For existence operators, a non-empty placeholder array is still recommended. |
| content.extend.filters[] | json | Condition object; field name/operator/value should be complete. |
| content.extend.filters[].value[] | JSON | A single comparison value; do not use a display name in place of the actual value. |
| content.extend.advancedFilter | json | Required root group object when advanced is used. A group uses type=group, condition, and filters; a leaf uses type=rule, name, operation, and value. |
| content.extend.advancedFilter.type | string | Root node type; cannot be rule. |
| content.extend.advancedFilter.condition | string | Logical relationship of child conditions in the same group. |
| content.extend.advancedFilter.filters | array | Array of child nodes; nesting the same group structure is allowed. An empty group generates an empty condition. |
| content.extend.advancedFilter.filters[] | json | A rule leaf or group object. |
| content.extend.advancedFilter.filters[].type | string | rule is a leaf, and group is a recursive group. |
| content.extend.advancedFilter.filters[].name | string | Non-empty field name; required for rule. |
| content.extend.advancedFilter.filters[].operation | string | rule allows =, !=, in, not_in, match, not_match, wildcard, not_wildcard, regexp, not_regexp, >, <, >=, <=, exist, not_exist. |
| content.extend.advancedFilter.filters[].value | array | Array required for rule; exist/not_exist can use []; other operators do not allow an empty array. |
| content.extend.advancedFilter.filters[].condition | string | Group subgroups use and/or. |
| content.extend.advancedFilter.filters[].filters | array | Recursive array for group subgroups; omit for rule leaves. |
| content.extend.advancedFilter.filters[].value[] | JSON | A single string or numeric value. regexp values do not contain backticks. |
| content.extend.extendFields | array | Optional array of key fields. Submit using the tag/alias structure, and tag must be non-empty. Create does not enforce this structure validation, while modify does. Import additionally synchronizes field indexes according to the field acceleration switch; direct modify only saves this configuration. |
| content.extend.extendFields[] | json | Only tag/alias keys are allowed. |
| content.extend.extendFields[].tag | string | Conditionally required, non-empty key. |
| content.extend.extendFields[].alias | string | Optional display alias. |
| content.extend.topFields | array | Optional display configuration, using the same tag/alias object. Regular modify is not a separate top-pinning API. |
| content.extend.topFields[] | json | Single display field object. |
| content.extend.topFields[].tag | string | Field key. |
| content.extend.topFields[].alias | string | Optional alias. |
| content.extend.services | array | Optional display information; does not replace the actual matching conditions of filters. |
| content.extend.services[] | string | Single service display value. |
| content.cloneConfig | null | This public create API does not accept cloneConfig; in the create response, this field is always null. To import a clone with the source configuration, use the index import API. |
| content.declaration | object | Workspace public declaration; attached to single-entity responses. |
{
"code": 200,
"content": {
"id": null,
"uuid": "lgim_example",
"workspaceUUID": "wksp_example",
"sourceIndexUUID": "",
"name": "production_logs",
"desc": "生产服务日志。",
"duration": "7d",
"directIndex": false,
"isFullLineIndex": 1,
"extend": {
"matchMode": "basic",
"filters": [
{
"name": "env",
"condition": "and",
"operation": "=",
"value": [
"production"
]
}
]
},
"conditions": "{ `env` = 'production' }",
"sortNo": 1,
"isBindCustomStore": 0,
"queryType": "logging",
"exterStoreProject": "",
"exterStoreName": "",
"externalResourceAccessCfgUUID": "",
"storeType": "",
"region": "",
"isPublicNetworkAccess": 0,
"setting": {},
"storagePolicy": {},
"status": 0,
"creator": "wsak_example",
"updator": "wsak_example",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"cloneConfig": null,
"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 field is missing, or the field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Request JSON syntax is invalid | 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, or the policy is not an object | Some JSON file format error | Submit an object according to the parameter table; use a JSON object for storagePolicy. |
| 429 | ft.OperationTooFrequently | Concurrent storage write/index relationship operations in the same workspace, or lock lease expiration | Your operation is too frequent. Please try again later. | Wait for in-flight operations to complete, then back off and retry; query the current state first. |
| 500 | ft.InternalServerError | Database, cache, downstream connection/common 5xx, or field shape exception | Internal error | First read the configuration and verify the actual storage state. If the failure persists, provide the traceId; do not treat the error as unsaved or directly repeat the create operation. |
| 406 | ft.InvalidDuration | Retention string format is invalid or does not match the tiers allowed by the current edition | Invalid duration | Use an integer followed by d and verify the durations available for the edition. |
| 406 | ft.InvalidDurationRange | Standard/long-term retention exceeds the range, or long-term retention is not greater than the standard duration | Exceeds the valid data retention duration range | Check both durations and the current workspace capabilities. |
| 400 | ft.InvalidActionForbiddenChange | The edition or log storage type does not allow enabling the long-term policy | Changing the index merge status switch is prohibited | Enable only on supported editions and scopedb logs. |
| 406 | ft.CurrentVersionUnsupportRp | The current edition does not support changing the storage policy | The current edition does not support rp:{} |
Have the administrator confirm the workspace edition capabilities. |
| 404 | ft.MissingVolctlsHotRetention | TLS setting is missing a non-zero hot_retention | Volcengine storage: the standard storage (hot storage) field is missing | Provide the complete hot storage hours and any required hot/cold/archive fields. |
| 400 | ft.InvalidHotRetention | TLS hot duration is not an integer number of whole-day hours | Volcengine storage: invalid hot data storage duration; must be an integer number of whole-day hours | Use days × 24. |
| 400 | ft.InvalidRetention | A TLS stage duration is out of range | Volcengine storage: invalid {} storage duration; range {} days | Enter hours according to the hot/cold/archive ranges on this page. |
| 400 | ft.InvalidRetentionFullDayhours | Cold/archive duration is not an integer number of whole-day hours | Volcengine storage: invalid {} storage duration; must be an integer number of whole-day hours | Use a multiple of 24. |
| 400 | ft.InvalidColdRententionHot | Hot stage is less than 7 days when cold storage is present | When Infrequent Access storage exists in the storage engine, standard storage must be greater than or equal to {} days | The hot stage must be at least 168 hours. |
| 400 | ft.InvalidArchiveRententionHot | Hot stage is less than 30 days when archive storage is present | When archive storage exists in the storage engine, standard storage must be greater than or equal to {} days | The hot stage must be at least 720 hours. |
| 400 | ft.InvalidAllRetention | TLS total retention duration exceeds the allowed range | Volcengine storage: invalid total storage duration; range {} days | The total must not exceed 1800 days, corresponding to 43200 hours. |
| 406 | ft.InvalidParameter | Advanced node type, structure, value array, or logical relationship error | Parameter {} is invalid |
Use the group/rule structure; value arrays must be non-empty except for existence operators. |
| 406 | ft.InvalidOperationSymbol | Filter operator is not supported | Invalid operator {} |
Select the operator according to basic/advanced. |
| 400 | ft.SpecialCharactersExist | Field name or regular expression contains a disallowed backtick | Special characters exist on the left side of the operator | Pass the actual field or regex value; do not add backticks manually. |
| 406 | ft.UnsupportRuleType | Basic condition uses operation=match/not match | Unsupported rule type: {} |
Use a supported basic condition or switch to advanced. |
| 400 | ft.NotEnabledLogIndexCfg | Multi-index is not enabled for the workspace | The workspace has not enabled or has disabled the log multi-index configuration | Have the administrator enable it and confirm workspace support. |
| 400 | ft.ForIndexCfgNameExists | A non-deleted index with the same name already exists in the current workspace | The specified index configuration name already exists | Use a unique name. |
| 400 | ft.LogIndexCfgQuantityExceedsMaximumValue | The number of internal indexes/clones exceeds the workspace quota | The number of custom log index configurations exceeds the maximum {} | Inventory existing indexes, then adjust the plan or quota; disabling does not release quota. |
| 400 | ft.InvalidLogIndexName | The create name for ES log storage contains a hyphen | Invalid index name | Use a name that does not contain hyphens. |
| 403 | ft.Forbidden | Insufficient permissions or the current edition does not allow this API | You do not have permission to perform this operation | Use an API Key with the corresponding index permission and a supported edition. |