Skip to content

Delete Log Index Configuration



POST /api/v1/log_index_cfg/delete

Overview

Delete the specified log index and handle the source and clone relationships.

Prerequisites and Usage Steps

Deletion calls the actual storage deletion API or sends an external index deletion notification, then soft-deletes the configuration and field mappings. When deleting source A with deleteCloneIndex=false, B retains its UUID, name, and own configuration and is promoted to a regular index; the A/B conditions are converted to advanced conditions and combined with AND; the status is determined by combining the original enabled/disabled states of A and B, and the original matching scope is not guaranteed to remain unchanged. With deleteCloneIndex=true, deletion cascades by deleting B first and then A, and stops immediately if any step fails. Deleting B directly or when there is no B only processes the target.

Default indexes are not supported. If the original UUID in the current workspace has already been deleted, the operation succeeds idempotently; it does not delete by name a later new index with the same name. On success, content=true, and the internal promotion/deletion summary is not returned; verify with the list/details. On failure, the content of ft.LogIndexDeleteFailed includes the completed objects and the failure stage; if storage has been deleted but configuration failed, retry with the original UUID; if configurationState=unknown, verify the configuration first. Objects that have already been completed as part of a partial success are still audited.

Request Headers

Parameter Name 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 this operation permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Name Type Required Description
deleteCloneIndex boolean Optional, default false, JSON boolean only; the deletion action cannot be retried by name.
Null allowed: False
Example: false
How to obtain or enter: Set to true to delete both source A and its clone B; set to false to retain B and promote it.
cfgUUID string Y Required; the configuration UUID in this workspace, not the name, and cannot be default.
Null allowed: False
Example: lgim_example
How to obtain or enter: Copy the target uuid from the Log Index List.

Additional Parameter Notes

The A/B matching conditions are converted to advanced conditions and merged into B with AND; B retains its UUID, name, and own configuration, and its source relationship is cleared.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/log_index_cfg/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"cfgUUID":"lgim_example","deleteCloneIndex":false}'

Response

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

Field Type Description
content boolean true when all operations are complete or when the original UUID in the current workspace has been deleted and the operation succeeds idempotently; the internal promotedClone summary is not returned.
Error content.deletedIndexes array<object> Includes only objects for which both storage and configuration have completed.
Error content.deletedIndexes[].uuid string UUID of the completed configuration.
Error content.deletedIndexes[].name string Name of the completed index.
Error content.failedIndex object The object that failed in this operation.
Error content.failedIndex.uuid string UUID of the failed object.
Error content.failedIndex.name string Name of the failed index.
Error content.failureStage string storage/configuration.
Error content.storageDeleted boolean Flag indicating whether storage deletion for the target has completed in this operation.
Error content.retryable boolean true allows retry with the original UUID after verification.
Error content.configurationState string not_attempted/not_committed/unknown; for unknown, verify the complete configuration and do not infer it from status alone.
Error content.reason string Description of the corresponding stage in Chinese.
Error content.causeErrorCode string Original code of the upstream APIException or an empty string; aids troubleshooting and is not equivalent to the top-level error.
{
  "code": 200,
  "content": true,
  "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 Handling Method
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 The request JSON syntax is invalid Request JSON format error Correct the JSON according to content.reason, line, and column.
400 ft.JsonFormatError The top level of the JSON is not an object, or the policy is not an object Invalid format in part of the JSON file Submit an object according to the parameter table; use a JSON object for storagePolicy.
400 ft.DefaultIndexUnsupportAction Target is default Default indexes do not support this operation Default indexes cannot be deleted.
404 ft.LogIndexCfgNoExists The current or deleted UUID does not exist in this workspace The specified log index configuration does not exist Verify a valid target from the list.
400 ft.LogIndexCloneRelationInvalid The A/B relationship is invalid or changed concurrently The log index clone relationship is invalid Read the relationship again and then perform the operation with the original UUID.
429 ft.OperationTooFrequently The relationship lock is occupied or invalid Your operation is too frequent. Please try again later. Back off and verify the current relationship.
400 ft.LogIndexDeleteFailed The storage or configuration stage did not complete, including partial success Log index deletion did not complete. Please try again Use the error content to verify the completed/failed objects and the stage, retry with failedIndex.uuid, and retain traceId.
500 ft.InternalServerError Database, cache, downstream connection/common 5xx, or field shape anomaly Internal error First read the configuration and verify the actual current storage state. If the failure persists, provide traceId. Do not treat the error as indicating that the data was not saved or that the creation can be repeated directly.
403 ft.Forbidden Insufficient permissions or the current version 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 version.

Feedback

Is this page helpful?