Help Center/ Relational Database Service/ API Reference/ API v3 (Recommended)/ DB Instance Management/ Resetting the SQL Statistics View (RDS for PostgreSQL)
Updated on 2025-10-21 GMT+08:00

Resetting the SQL Statistics View (RDS for PostgreSQL)

Function

This API is used to reset the SQL statistics view of a DB instance.

URI

  • URI format

    POST /v3/{project_id}/instances/{instance_id}/sql-statistics/reset

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Definition

    Project ID of a tenant in a region.

    To obtain the value, see Obtaining a Project ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    instance_id

    Yes

    Definition

    Instance ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

Request

None

Example Request

Reset the SQL statistics view of a DB instance.

POST https://{Endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/e28979107ed04d3b8b2f1b819b8d2be3in03/sql-statistics/reset

Response

  • Normal response
    Table 2 Parameters

    Parameter

    Type

    Description

    resp

    String

    Definition

    Calling result.

    Range

    success: The API is successfully called.

  • Example normal response
    { 
      "resp" : "successful" 
    }

Status Code

Error Code

For details, see Error Codes.