Updated on 2023-11-24 GMT+08:00

Querying the Switch of Show Original Log

API Description

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

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.

Requests

None

Responses

  • 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.