Updated on 2025-12-02 GMT+08:00

Querying the Switch of Show Original Log

API Description

This API is used to check whether Show Original Log is enabled.

Authorization Information

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

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • 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

    dds:instance:getSlowLogPlaintextStatus

    read

    instance

    g:EnterpriseProjectId

    dds:instance:list

    -

URI

  • URI format

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

  • URI example

    https://dds.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/e73893ef73754465a8bd2e0857bbf13ein02/slowlog-desensitization/status

    Table 1 Request parameters

    Name

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    User token obtained from IAM. For details, see Authentication.

    project_id

    Yes

    String

    Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.

    instance_id

    Yes

    String

    Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.

Request

None

Response

  • Parameter description
    Table 2 Response body parameters

    Name

    Type

    Description

    status

    String

    Enabling or disabling Slow Original Log. The value can be on or off.

  • Example Response
    { 
      "status" : "on" 
    }

SDK

Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.

Status Code

For more information, see Status Code.

Error Code

For more information, see Error Code.