Skip to content

Delete



POST /api/v1/self_built_checker/delete

Overview

Soft-delete a self-built checker.

Prerequisites and Usage Steps

This API soft-deletes the primary record only for matched self-built checkers, but reference cleanup uses the full input UUID and is not limited by reference type (it is still limited to the current workspace). Therefore, you must first verify item by item against this module's list and not mix in other Rule UUIDs such as regular monitors. Even if the primary record does not match, references to UUIDs of other types in the same workspace may also be cleaned up, so do not treat true as indicating that no side effects occurred. After deletion, associated Alert Policy caches are cleared asynchronously. Events/raw data already generated are not deleted with it, and it cannot be restored through enable.

Use only UUIDs from this module's list in the current workspace. If refKey is provided, it filters jointly with the UUID; it is not an independent batch targeting method. Returns true, with no per-item hit/change count. An empty array or no matches can also succeed, and status/associations need to be read back and verified. On error/timeout, first check the current configuration state; if asynchronous dispatch fails after deletion/submission, the change may already have been persisted.

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

Body Request Parameters

Parameter Type Required Description
ruleUUID string Declared optional, but callers should explicitly provide a non-empty UUID of a self-built checker in the current workspace; refKey alone will not automatically select the corresponding object.
Null allowed: False
Example: rul_self_example
How to obtain or fill in: Get the target UUID from this module's list.
refKey string Optional additional filter condition that matches together with each UUID; it is not a substitute for UUID, and you cannot operate on a collection by passing only refKey.
Null allowed: False
Example: custom-healthcheck-production
How to obtain or fill in: Enter it when you need to additionally verify the same business association key.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/self_built_checker/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"ruleUUID":"rul_self_example"}'

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 mean every input UUID matched or was actually changed.
{
  "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
406 ft.ParameterValidationFailed A request field is missing, or a field value violates the declared validation condition Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Invalid request JSON syntax Request JSON format error Fix the JSON according to content.reason, line, and column.
500 ft.InternalServerError Target not selected, incorrect field shape or length, database failure, or asynchronous task dispatch failure after submission, etc. Internal error First read back the current rule to confirm whether it has been saved; retry after specifying an explicit ruleUUID in the current workspace, and provide the traceId.

Feedback

Is this page helpful?