Skip to content

Delete Auto-Discovery Configuration



POST /api/v1/issue_auto_discovery/{cfg_uuid}/delete

Overview

Soft-deletes an Issue auto-discovery rule.

Before Calling and Usage Steps

This module is the original Incident Issue auto-discovery configuration, not Incident Center Incidents shift scheduling/automatic aggregation, nor Error Center ErrorTrack rules. For current public writes, dqlNamespace can only be keyevent; the old rum/tracing examples do not match the current declaration. Workspaces that have already been migrated in the background with issueUpgrade=true skip this v2 auto-discovery task. A successful configuration does not guarantee that the workspace will generate new Issues.

The permission must match one of trace.issueDiscovery/rum.issueDiscovery/anomaly.issueDiscovery. The target must be an undeleted rule in the current workspace. Unknown or repeated deletion is not an idempotent success and returns 404 ft.LogIndexCfgNoExists. Soft deletion sets status 3 and does not delete generated Issues/historical replies/channels; this public API cannot be used to restore it, and recreating it returns a new iatdc_. Subsequent event links/notifications for existing Issues can no longer supplement conditions from this rule; the same-dimension deduplication identifier does not contain the rule UUID, and recreation does not guarantee a completely new, independent Issue. Deletion is committed first, and then level/channel/owner audit data is assembled. Therefore, a post-commit 404/400/500 may also indicate that the rule has already been deleted; read it back first to verify.

Returns true and does not provide a hit count or asynchronous run status. After deletion, subsequent scheduled scans are no longer initiated based on this rule; it cannot guarantee cancellation of scans or notifications already in progress, and generated Issues and historical replies are retained. On failure, first read back the original UUID and related status; after confirming the committed result, handle only the unfinished parts.

Path Parameters

Parameter Type Required Description
cfg_uuid string Y An undeleted rule in the current Key workspace; both status 0 (enabled) and status 2 (disabled) can be read/modified. If missing, the historical compatibility ft.LogIndexCfgNoExists is used. Although the message says log index, you actually need to verify this rule UUID.
Example: iatdc_example
How to obtain or fill: Obtain content.data[].uuid (iatdc_) from the Issue auto-discovery rule list; do not use an Issue UUID or an ErrorTrack rule UUID.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y The OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or fill: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Additional Parameter Notes

The current public scope is keyevent; configuration saving, scheduled execution, and notification delivery are different stages. See below for the parameters and the complete response/error boundaries.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/issue_auto_discovery/iatdc_example/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

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

Field Type Description
content boolean true on success; does not contain declaration or task/per-item information.
{
  "code": 200,
  "content": true,
  "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
404 ft.LogIndexCfgNoExists The undeleted auto-discovery rule in the current workspace does not exist / has been deleted / is cross-workspace The specified log index configuration does not exist Refresh the iatdc_ UUID from the auto-discovery list in this workspace; this is a reused historical error message, so do not switch to creating a log index.
500 ft.InternalServerError An unhandled exception occurs during soft deletion of the configuration or during construction of level/channel/owner audit data after commit Internal error First read back to confirm whether the rule has been deleted, then verify the historical template/channel/owner; do not use a 500 to determine that deletion was rolled back, and retain the traceId.
404 ft.NotFoundChannel After the deletion is committed, channel data is read, but the workspace has no active channels The specified channel was not found First query whether the rule has been deleted; an administrator should fix the channel, and do not repeatedly delete an unknown result.
400 ft.UnsupportFreeIssueManager After the deletion is committed, historical owners are organized, but external email addresses still exist in a free/Free Plan workspace Free Plan workspace; external email addresses are not supported for Incident owners First read back the deletion status; an administrator should verify the old owner/product version; the error does not indicate that deletion was rolled back.

Feedback

Is this page helpful?