Skip to content

Modify Default-Type Log Index Configuration



POST /api/v1/log_index_cfg/{cfg_uuid}/modify

Overview

Modify the internal Log Index matching, retention, and display configuration.

Before Calling and Usage Steps

First read the details and back up the existing configuration, then modify the description, matching conditions, standard/long-term retention, TLS stages, or full-line mode as needed. For regular indexes, omitted fields are retained; extend is merged by first-level keys. To clear regular matching, explicitly pass filters=[]; passing {} cannot clear existing filters. Arrays/nested objects are replaced as a whole under the corresponding key. Avoid extend=null. The index name and directIndex are not part of this modification body.

The special cfg_uuid=default saves only extend and isFullLineIndex; desc/duration/storagePolicy/setting are not treated as regular index retention settings in this branch. Do not infer from a success response that the default index retention period has been changed. The 0→1 full-line switch for scopedb is irreversible; when source A is upgraded, existing B is also upgraded synchronously. You can directly adjust B's own publicly editable configuration; do not use this body to change B's name or source, or to create another B.

Storage configuration, actual downstream operations, and database commit are not the same atomic step. On error/timeout, first check the current configuration from the list and details, then verify the actual storage state; do not directly repeat the create operation. A successful index creation does not guarantee that the physical index has been created or that data exists; confirm data retention requirements before shortening retention.

The default response is a synthetic object that only guarantees its default index fields and workspaceName/workspaceStatus; for regular entities, id, desc, creator, updator, setting, cloneConfig, etc. are not guaranteed to be present.

Route Parameters

Parameter Type Required Description
cfg_uuid string Y Path configuration UUID, not the index name; the default index supports only partial modification; see usage.
Example: lgim_example
How to obtain or fill: Get the current Workspace configuration from Log Index List content.data[].uuid; use default for the default index.

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: Obtain an OpenAPI Key with the required operation permission from API Key Management in the target Workspace.

Body Request Parameters

Parameter Type Required Description
storagePolicy.longStorageEnabled boolean If omitted within the object, defaults to false. Disabling normalizes longStorageDuration to empty, and does not mean historical data is immediately deleted.
Example: false
How to obtain or fill: true enables long-term storage, false disables it; explicitly use a JSON boolean.
storagePolicy.longStorageDuration string Conditionally required when enabled. The field is a string containing d, not seconds/hours; do not apply the 3600d range of metric rp to logs.
Example: 180d
How to obtain or fill: 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 If omitted/empty, basic is used. advanced uses advancedFilter, and basic uses filters; when switching modes, provide the complete conditions for the corresponding mode.
Example: basic
How to obtain or fill: basic for regular matching, advanced for advanced matching.
extend.filters array Leaf array for basic; non-empty conditions generate conditions. Create/modify basic explicitly rejects operation values of match or not match; for complex semantics such as text contains, prefer the corresponding advanced operation.
Example: [{"name": "env", "condition": "and", "operation": "=", "value": ["production"]}]
How to obtain or fill: Conditions on actual log fields; to clear regular matching, explicitly pass filters=[].
extend.filters[*].name string Actual field name, without backticks.
Example: env
How to obtain or fill: Fill in based on the actual log field, value, and matching relationship.
extend.filters[*].condition string and/or relationship with the previous condition; the connector for the first item is ignored.
Example: and
How to obtain or fill: Fill in based on the actual log field, value, and matching relationship.
extend.filters[*].operation string Common operations: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; basic prohibits match/not match.
Example: =
How to obtain or fill: Fill in based on the actual log field, value, and matching relationship.
extend.filters[*].value array Array of condition values; for = and comparisons, the first item is used; for existence-type operations, a non-empty placeholder array is still recommended.
Example: ["production"]
How to obtain or fill: Fill in based on the actual log field, value, and matching relationship.
extend.filters[*] json Condition object; field name/operation/value should be complete.
Example: {"name": "env", "condition": "and", "operation": "=", "value": ["production"]}
How to obtain or fill: 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: production
How to obtain or fill: Use the raw log field value and preserve the string/numeric type.
extend.advancedFilter json Root group object required for advanced. Groups use type=group, condition, filters; leaves use type=rule, name, operation, value.
Example: {"type": "group", "condition": "and", "filters": [{"type": "rule", "name": "env", "operation": "=", "value": ["production"]}]}
How to obtain or fill: 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; must not be rule.
Example: group
How to obtain or fill: The root node is fixed as group.
extend.advancedFilter.condition string Logical relationship of child conditions in the same group.
Example: and
How to obtain or fill: and/or; the default is and.
extend.advancedFilter.filters array Array of child nodes; the same group structure may be nested; an empty group generates an empty condition.
Example: [{"type": "rule", "name": "env", "operation": "=", "value": ["production"]}]
How to obtain or fill: 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 fill: Fill leaves with actual log fields; groups continue recursively with the same structure.
extend.advancedFilter.filters[*].type string rule is a leaf, group is a recursive group.
Example: rule
How to obtain or fill: Fill in according to the corresponding group/rule node structure.
extend.advancedFilter.filters[*].name string Non-empty field name required for rule.
Example: env
How to obtain or fill: Fill in according to the corresponding group/rule node structure.
extend.advancedFilter.filters[*].operation string For rule, allowed values are =, !=, in, not_in, match, not_match, wildcard, not_wildcard, regexp, not_regexp, >, <, >=, <=, exist, not_exist.
Example: =
How to obtain or fill: Fill in according to the corresponding group/rule node structure.
extend.advancedFilter.filters[*].value array Array required for rule; [] may be used for exist/not_exist; empty arrays are not allowed for the others.
Example: ["production"]
How to obtain or fill: Fill in according to the corresponding group/rule node structure.
extend.advancedFilter.filters[*].condition string and/or is used for group subgroups.
Example: and
How to obtain or fill: Fill in according to the corresponding group/rule node structure.
extend.advancedFilter.filters[*].filters array Recursive array for group subgroups; omitted for rule leaves.
Example: []
How to obtain or fill: 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: production
How to obtain or fill: Use the raw log value.
extend.extendFields array Optional array of key fields; submit using the tag/alias structure with a non-empty tag. Creation does not enforce this structure, while modification does. Import additionally synchronizes field indexes according to the field acceleration switch; direct modify only saves this configuration.
Example: [{"tag": "service", "alias": "Service"}]
How to obtain or fill: Select key display fields from actual log fields.
extend.extendFields[*] json Only tag/alias keys are allowed.
Example: {"tag": "service", "alias": "Service"}
How to obtain or fill: Fill in the field key and display alias.
extend.extendFields[*].tag string Conditionally required non-empty key.
Example: service
How to obtain or fill: Actual log field name.
extend.extendFields[*].alias string Optional display alias.
Example: Service
How to obtain or fill: Business display name; may be omitted.
extend.topFields array Optional display configuration, using the same tag/alias object; regular modify is not a separate pinning API.
Example: [{"tag": "host", "alias": "Host"}]
How to obtain or fill: Retain the console's pinned field list.
extend.topFields[*] json A single display field object.
Example: {"tag": "host", "alias": "Host"}
How to obtain or fill: Fill in based on the existing list.
extend.topFields[*].tag string Field key.
Example: host
How to obtain or fill: Actual field name.
extend.topFields[*].alias string Optional alias.
Example: Host
How to obtain or fill: Display alias.
extend.services array Optional display information; it does not replace the actual matching conditions in filters.
Example: ["checkout-api"]
How to obtain or fill: Retain the console's related service display configuration.
extend.services[*] string A single service display value.
Example: checkout-api
How to obtain or fill: Actual service name.
desc string Optional description, up to 1024 characters. If omitted in regular modify, it is retained; an empty string clears it. If omitted in an external binding modification, it is cleared.
Null allowed: False
Empty string allowed: True
Maximum length: 1024
Example: Production service logs.
How to obtain or fill: Enter a description of 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 retained, 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 fill: Construct matching conditions from actual log fields and values; retain other display configuration from the original details.
duration string For regular creation, the default is usually 3d; for non-TLS storage, pay allows 3d/7d/14d/30d/60d/90d by default, and enterprise/unlimited allows 1d to 1800d by default, subject to site configuration. If omitted in modify, the value is retained; for TLS, the actual duration is controlled by setting, not by this field.
Null allowed: False
Example: 7d
How to obtain or fill: Select the standard retention days according to the current Workspace edition and log storage; use an integer + d.
storagePolicy json Optional complete long-term policy object. For regular creation, omit it as {}; if omitted in modification, it is retained, {} is normalized to disabled, and explicitly disable with longStorageEnabled=false. The long-term duration must be strictly greater than the standard duration, still in days.
Null allowed: False
Example: {"longStorageEnabled": false}
How to obtain or fill: Long-term storage can be enabled only when log storage is scopedb and the edition is pay/enterprise/unlimited; confirm the Workspace capability first.
isFullLineIndex int Only 0/1 or boolean is accepted. For scopedb creation, the default is 1 and 0 is not allowed; existing Message can change from 0 to 1, but not from 1 to 0; the switch synchronizes the message field index and is irreversible. If omitted in modify, it remains unchanged.
Null allowed: False
Example: 1
How to obtain or fill: New scopedb logs must use 1/true; other log storage keeps 0/false.
setting json For TLS creation, hot_retention is required; total duration is converted to days from the sum of the three hour values. When providing setting in regular modification, provide the complete hot storage and required stages; do not pass only cold_retention. Other storage types do not interpret this field as TLS.
Null allowed: False
Example: {"hot_retention": 168}
How to obtain or fill: Configure standard/cold/archive retention only when the Workspace log storage is volctls; values are in hours.
setting.hot_retention int TLS conditionally required; the default range is 1 to 1800 days, corresponding to 24..43200 hours and a multiple of 24. When cold storage is used, hot storage must be at least 7 days; when archive is used, at least 30 days.
Null allowed: False
Example: 168
How to obtain or fill: Enter days × 24; for example, 7 days = 168 hours.
setting.cold_retention int Optional; default 30..1800 days in whole-day hours; do not use 0 to indicate omission; the total must not exceed 1800 days.
Null allowed: False
Example: 720
How to obtain or fill: Cold storage days × 24; for example, 30 days = 720 hours; omit if this stage is not enabled.
setting.archive_retention int Optional; default 60..1800 days in whole-day hours; hot storage must be at least 30 days; the total must not exceed 1800 days.
Null allowed: False
Example: 1440
How to obtain or fill: Archive days × 24; for example, 60 days = 1440 hours; omit if this stage is not enabled.

Additional Parameter Notes

Description of matching conditions in extend

Parameter Type Required Description
matchMode String Matching mode; valid values: basic, advanced; defaults to basic if omitted
filters Array[dict] List of regular matching filter conditions; in advanced mode, an empty array is recommended
advancedFilter Dict Advanced matching condition tree; takes effect when matchMode=advanced

The advancedFilter root node is fixed as group, and group.filters can nest rule or group. Valid values for rule.operation: =, !=, in, not_in, match, not_match, wildcard, not_wildcard, regexp, not_regexp, >, <, >=, <=, exist, not_exist. value is always an array; use an empty array for exist / not_exist. When matchMode=advanced, the backend generates conditions in DQL where style; regular filters still retain the historical generated format.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/log_index_cfg/lgim_example/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"desc":"Production service logs updated.","duration":"14d","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 ID; may be null in a snapshot before creation is submitted; use uuid for operations.
content.uuid string lgim_ index configuration UUID; use default for the default index.
content.workspaceUUID string Workspace it belongs to.
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 directly modify this field 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 binds external storage.
content.directIndex integer or boolean 1/true native direct-write.
content.isFullLineIndex integer 1 full line, 0 Message.
content.queryType string Query category, such as 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 raw credential.
content.storeType string Usually empty for internal indexes; for external binding, the actual type.
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 creation, omit it as {}; if omitted in modification, it is retained, {} is normalized to disabled, and explicitly disable with longStorageEnabled=false. The long-term duration must be strictly greater than the standard duration, still in days.
content.storagePolicy.longStorageEnabled boolean If omitted within the object, defaults to false. Disabling normalizes longStorageDuration to empty, and 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 of metric rp to logs.
content.setting object For TLS creation, hot_retention is required; total duration is converted to days from the sum of the three hour values. When providing setting in regular modification, provide the complete hot storage and required stages; do not pass only cold_retention. Other storage types do not interpret this field as TLS.
content.setting.hot_retention integer TLS conditionally required; the default range is 1 to 1800 days, corresponding to 24..43200 hours and a multiple of 24. When cold storage is used, hot storage must be at least 7 days; when archive is used, at least 30 days.
content.setting.cold_retention integer Optional; default 30..1800 days in 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 in whole-day hours; hot storage must be at least 30 days; 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 retained, 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 If omitted/empty, basic is used. advanced uses advancedFilter, and basic uses filters; when switching modes, provide the complete conditions for the corresponding mode.
content.extend.filters array Leaf array for basic; non-empty conditions generate conditions. Create/modify basic explicitly rejects operation values of match or not match; for complex semantics such as text contains, prefer the corresponding advanced operation.
content.extend.filters[].name string Actual field name, without backticks.
content.extend.filters[].condition string and/or relationship with the previous condition; the connector for the first item is ignored.
content.extend.filters[].operation string Common operations: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; basic prohibits match/not match.
content.extend.filters[].value array Array of condition values; for = and comparisons, the first item is used; for existence-type operations, a non-empty placeholder array is still recommended.
content.extend.filters[] json Condition object; field name/operation/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 Root group object required for advanced. Groups use type=group, condition, filters; leaves use type=rule, name, operation, value.
content.extend.advancedFilter.type string Root node type; must not 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; the same group structure may be nested; 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, group is a recursive group.
content.extend.advancedFilter.filters[].name string Non-empty field name required for rule.
content.extend.advancedFilter.filters[].operation string For rule, allowed values are =, !=, 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; [] may be used for exist/not_exist; empty arrays are not allowed for the others.
content.extend.advancedFilter.filters[].condition string and/or is used for group subgroups.
content.extend.advancedFilter.filters[].filters array Recursive array for group subgroups; omitted 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 with a non-empty tag. Creation does not enforce this structure, while modification 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 pinning API.
content.extend.topFields[] json A 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; it does not replace the actual matching conditions in filters.
content.extend.services[] string A single service display value.
content.cloneConfig object or null Complete clone B entity associated with source A; null if none; the clone's own response does not always include this key.
content.cloneConfig.id integer or null Database record ID; may be null in a snapshot before creation is submitted; use uuid for operations.
content.cloneConfig.uuid string lgim_ index configuration UUID; use default for the default index.
content.cloneConfig.workspaceUUID string Workspace it belongs to.
content.cloneConfig.sourceIndexUUID string UUID of source A for clone index B; empty for regular indexes.
content.cloneConfig.name string Index name.
content.cloneConfig.desc string Description.
content.cloneConfig.conditions string Actual condition string generated from extend; do not directly modify this field in regular requests.
content.cloneConfig.sortNo integer or string Matching order identifier; usually 0 for native direct-write or clones.
content.cloneConfig.duration string Standard storage duration; for TLS, the total days of hot, cold, and archive storage.
content.cloneConfig.isBindCustomStore integer or boolean 1/true binds external storage.
content.cloneConfig.directIndex integer or boolean 1/true native direct-write.
content.cloneConfig.isFullLineIndex integer 1 full line, 0 Message.
content.cloneConfig.queryType string Query category, such as logging/standard or the mode returned by external SLS.
content.cloneConfig.exterStoreProject string External project/database identifier; usually empty for internal indexes.
content.cloneConfig.exterStoreName string External resource name; usually empty for internal indexes.
content.cloneConfig.externalResourceAccessCfgUUID string Access configuration identifier, not the raw credential.
content.cloneConfig.storeType string Usually empty for internal indexes; for external binding, the actual type.
content.cloneConfig.region string External region code.
content.cloneConfig.isPublicNetworkAccess integer or boolean Public network access flag.
content.cloneConfig.status integer 0 enabled, 2 disabled, 3 deleted.
content.cloneConfig.creator string Creator identity.
content.cloneConfig.updator string Last updater identity.
content.cloneConfig.createAt integer Creation Unix seconds.
content.cloneConfig.updateAt integer Update Unix seconds; -1 if not updated.
content.cloneConfig.deleteAt integer Deletion Unix seconds; -1 if not deleted.
content.cloneConfig.storagePolicy object Optional complete long-term policy object. For regular creation, omit it as {}; if omitted in modification, it is retained, {} is normalized to disabled, and explicitly disable with longStorageEnabled=false. The long-term duration must be strictly greater than the standard duration, still in days.
content.cloneConfig.storagePolicy.longStorageEnabled boolean If omitted within the object, defaults to false. Disabling normalizes longStorageDuration to empty, and does not mean historical data is immediately deleted.
content.cloneConfig.storagePolicy.longStorageDuration string Conditionally required when enabled. The field is a string containing d, not seconds/hours; do not apply the 3600d range of metric rp to logs.
content.cloneConfig.setting object For TLS creation, hot_retention is required; total duration is converted to days from the sum of the three hour values. When providing setting in regular modification, provide the complete hot storage and required stages; do not pass only cold_retention. Other storage types do not interpret this field as TLS.
content.cloneConfig.setting.hot_retention integer TLS conditionally required; the default range is 1 to 1800 days, corresponding to 24..43200 hours and a multiple of 24. When cold storage is used, hot storage must be at least 7 days; when archive is used, at least 30 days.
content.cloneConfig.setting.cold_retention integer Optional; default 30..1800 days in whole-day hours; do not use 0 to indicate omission; the total must not exceed 1800 days.
content.cloneConfig.setting.archive_retention integer Optional; default 60..1800 days in whole-day hours; hot storage must be at least 30 days; the total must not exceed 1800 days.
content.cloneConfig.extend object Optional extension object containing actual matching and display configuration. Regular modify merges by first-level keys; keys not provided are retained, 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.cloneConfig.extend.matchMode string If omitted/empty, basic is used. advanced uses advancedFilter, and basic uses filters; when switching modes, provide the complete conditions for the corresponding mode.
content.cloneConfig.extend.filters array Leaf array for basic; non-empty conditions generate conditions. Create/modify basic explicitly rejects operation values of match or not match; for complex semantics such as text contains, prefer the corresponding advanced operation.
content.cloneConfig.extend.filters[].name string Actual field name, without backticks.
content.cloneConfig.extend.filters[].condition string and/or relationship with the previous condition; the connector for the first item is ignored.
content.cloneConfig.extend.filters[].operation string Common operations: =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; basic prohibits match/not match.
content.cloneConfig.extend.filters[].value array Array of condition values; for = and comparisons, the first item is used; for existence-type operations, a non-empty placeholder array is still recommended.
content.cloneConfig.extend.filters[] json Condition object; field name/operation/value should be complete.
content.cloneConfig.extend.filters[].value[] JSON A single comparison value; do not use a display name in place of the actual value.
content.cloneConfig.extend.advancedFilter json Root group object required for advanced. Groups use type=group, condition, filters; leaves use type=rule, name, operation, value.
content.cloneConfig.extend.advancedFilter.type string Root node type; must not be rule.
content.cloneConfig.extend.advancedFilter.condition string Logical relationship of child conditions in the same group.
content.cloneConfig.extend.advancedFilter.filters array Array of child nodes; the same group structure may be nested; an empty group generates an empty condition.
content.cloneConfig.extend.advancedFilter.filters[] json A rule leaf or group object.
content.cloneConfig.extend.advancedFilter.filters[].type string rule is a leaf, group is a recursive group.
content.cloneConfig.extend.advancedFilter.filters[].name string Non-empty field name required for rule.
content.cloneConfig.extend.advancedFilter.filters[].operation string For rule, allowed values are =, !=, in, not_in, match, not_match, wildcard, not_wildcard, regexp, not_regexp, >, <, >=, <=, exist, not_exist.
content.cloneConfig.extend.advancedFilter.filters[].value array Array required for rule; [] may be used for exist/not_exist; empty arrays are not allowed for the others.
content.cloneConfig.extend.advancedFilter.filters[].condition string and/or is used for group subgroups.
content.cloneConfig.extend.advancedFilter.filters[].filters array Recursive array for group subgroups; omitted for rule leaves.
content.cloneConfig.extend.advancedFilter.filters[].value[] JSON A single string or numeric value. regexp values do not contain backticks.
content.cloneConfig.extend.extendFields array Optional array of key fields; submit using the tag/alias structure with a non-empty tag. Creation does not enforce this structure, while modification does. Import additionally synchronizes field indexes according to the field acceleration switch; direct modify only saves this configuration.
content.cloneConfig.extend.extendFields[] json Only tag/alias keys are allowed.
content.cloneConfig.extend.extendFields[].tag string Conditionally required non-empty key.
content.cloneConfig.extend.extendFields[].alias string Optional display alias.
content.cloneConfig.extend.topFields array Optional display configuration, using the same tag/alias object; regular modify is not a separate pinning API.
content.cloneConfig.extend.topFields[] json A single display field object.
content.cloneConfig.extend.topFields[].tag string Field key.
content.cloneConfig.extend.topFields[].alias string Optional alias.
content.cloneConfig.extend.services array Optional display information; it does not replace the actual matching conditions in filters.
content.cloneConfig.extend.services[] string A single service display value.
content.declaration object Workspace public declaration; appended to single-entity responses.
content.workspaceName string Workspace name included only in the synthetic default response.
content.workspaceStatus integer Workspace status included only in the synthetic default response.
{
  "code": 200,
  "content": {
    "id": 100,
    "uuid": "lgim_example",
    "workspaceUUID": "wksp_example",
    "sourceIndexUUID": "",
    "name": "production_logs",
    "desc": "Production service logs updated.",
    "duration": "14d",
    "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": 1785427300,
    "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 Fix 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 Partial 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 and retry with backoff; query the current state first.
500 ft.InternalServerError Database, cache, downstream connection/common 5xx, or field shape anomaly Internal error Read the configuration first and verify the actual storage state; if it continues to fail, provide traceId; do not treat the error as unsaved or directly repeat the create operation.
406 ft.InvalidDuration The retention string format or the options allowed by the current edition do not match Invalid duration Use an integer + d and check the durations available for the edition.
406 ft.InvalidDurationRange Standard/long-term retention exceeds the range, or long-term is not greater than 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:{} Ask the administrator to confirm the Workspace edition capabilities.
404 ft.MissingVolctlsHotRetention TLS setting is missing a non-zero hot_retention Volcengine storage: standard storage (hot storage) field is missing Provide the complete hot storage hours and the required hot, cold, and archive fields.
400 ft.InvalidHotRetention TLS hot duration is not in whole-day hours Volcengine storage: invalid hot data storage duration; must be in whole-day hours Use days × 24.
400 ft.InvalidRetention A TLS stage duration is out of range Volcengine storage: invalid {} storage duration; range {} days Fill in hours according to the cold/hot/archive ranges on this page.
400 ft.InvalidRetentionFullDayhours Cold/archive duration is not in whole-day hours Volcengine storage: invalid {} storage duration; must be in whole-day hours Use a multiple of 24.
400 ft.InvalidColdRententionHot When cold storage is present, the hot stage is less than 7 days When cold 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 When archive is present, the hot stage is less than 30 days 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 Invalid advanced node type, structure, value array, or logical relationship Parameter {} is invalid Use the group/rule structure; value arrays must be non-empty except for existence-type operations.
406 ft.InvalidOperationSymbol The filter operator is not supported Invalid operator {} Select according to the corresponding basic/advanced operation.
400 ft.SpecialCharactersExist The field name or regular expression contains a disallowed backtick Special characters exist on the left side of the operator Pass the actual field or regular expression 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.InvalidLogIndexCfgKeyFields extendFields is not an array, an item is missing tag, or contains keys other than tag/alias Invalid Log Index key field Use the tag/alias structure on this page.
404 ft.LogIndexCfgNoExists The current Workspace configuration does not exist or has been deleted The specified Log Index configuration does not exist Retrieve a valid UUID from the list again.
400 ft.LogIndexCloneRelationInvalid The clone-source relationship is invalid or changed concurrently Invalid Log Index clone relationship Refresh the A/B configuration before operating again.
400 ft.LogIndexCloneSourceUnsupported The source status or type no longer meets the clone requirements The specified Log Index cannot be used as a clone source Verify that the source is a regular internal index that is not default, not direct-write, and not externally bound.
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.

Feedback

Is this page helpful?