Skip to content

Delete



POST /api/v1/logging_query_rule/delete

Overview

Soft delete access rules in batches.

Before Calling and Usage Steps

Verify the UUIDs and affected identities before submitting in batches. This operation only soft deletes rules; it does not delete source data and is not equivalent to revoking a role's basic query permissions. After deletion, the rules can no longer be read using this module's get operation, and they cannot be restored through the enable API. It returns only true, does not provide per-item results, and invalid UUIDs do not result in a 404. An empty array or a request where none match can succeed with true; this does not indicate the number of actual matches.

Saving a rule affects the data query scope and result masking for identities that subsequently meet the conditions. It does not modify, delete, or backfill raw data, nor does it add basic query permissions to roles. Multiple roles and rules are merged according to query-side policies, so final permissions cannot be inferred from a single rule alone. Owner is exempt; the administrator and workspace "Data Access Scope Restrictions" setting changes how roles with no match are handled. Validate with actual queries from representative members. Saving invalidates the rule cache and does not guarantee that all in-flight queries switch immediately.

This operation only soft deletes the rules, then commits to the database, clears the rule cache, and records an audit entry. It does not replace conditions or re-run cross-site configuration validation. On failure, first read back the target state, then handle incomplete cache or audit operations; an empty match can return true normally.

Request Headers

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

Body Request Parameters

Parameter Name Type Required Description
loggingQueryRuleUuids[*] string A single non-empty UUID; the original declaration does not validate each item.
Example: lqrl_example
How to obtain or enter: UUID of a single rule.
loggingQueryRuleUuids array Y Required array; an empty array is not recommended. Only non-deleted matching items in the current workspace are included, and the logging module further restricts to logging.
Allow null: False
Example: ["lqrl_example"]
How to obtain or enter: Obtain the target UUID set from the Log Access Rule List.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/logging_query_rule/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"loggingQueryRuleUuids":["lqrl_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; this is not a per-item result and does not mean all input UUIDs were modified.
{
  "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
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Verify the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Invalid request JSON format Fix the JSON according to content.reason, line, and column.
500 ft.InternalServerError An unhandled exception occurs during database state commit, Redis rule cache, or audit Internal error First read the current state using the original UUIDs to confirm whether the changes have taken effect, then handle incomplete cache or audit operations; do not create the rules again. Retain the traceId.

Feedback

Is this page helpful?