Help Center/ GeminiDB/ API Reference/ APIs v3 (Recommended)/ Logs/ Querying the Desensitization Status of Slow Query Logs
Updated on 2024-08-08 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.

URI

GET https://{Endpoint}/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 Requests

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

    None

Example Responses

Status code: 200

Success

{ 
  "desensitization_status" : "on" 
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.