Help Center/ GeminiDB/ API Reference/ APIs v3 (Recommended)/ Logs/ Querying the Desensitization Status of Slow Query Logs
Updated on 2025-11-27 GMT+08:00

Querying the Desensitization Status of Slow Query Logs

Function

This API is used to query the desensitization status of slow query logs.

Constraints

This API supports GeminiDB Mongo instances.

Authorization Information

Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    gaussdbfornosql:instance:getSlowLogPlaintextStatus

    Read

    instance *

    • g:ResourceTag/<tag-key>
    • g:EnterpriseProjectId

    nosql:instance:list

    -

URI

GET /v3/{project_id}/instances/{instance_id}/slowlog-desensitization

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID.

instance_id

Yes

String

Instance ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

desensitization_status

String

Whether slow query log desensitization is enabled. The value can be:

  • on, indicating that desensitization is enabled.
  • off, indicating that desensitization is disabled.

Example Request

  • URI example
    GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/094424666ef04f79a2dfbe9f5b8b31a5in06/slowlog-desensitization
  • Example request body

    None

Example Response

Status code: 200

Success

{ 
  "desensitization_status" : "on" 
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.