doc-exports/docs/rds/api-ref/rds_09_0305.html
Wang , Deng Ke 5208dcae7b RDS API 20221104 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-10 09:55:48 +00:00

13 KiB

Modifying Parameters of a Specified DB Instance

Function

This API is used to modify parameters in the parameter template of a specified DB instance.

Constraints

  • The following DB engines are supported: MySQL, PostgreSQL, and Microsoft SQL Server.
  • For Microsoft SQL Server, only the following editions are supported: Microsoft SQL Server 2014 SE, 2016 SE, and 2016 EE.
  • The values of the edited parameters must be within the default value range of the specified database version. For details about the range of parameter values, see the "Modifying Parameters in a Parameter Template" section in the Relational Database Service User Guide.

URI

Request

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    values

    Yes

    Object

    Specifies the parameter values defined by users based on the default parameter templates.

    For details, see Table 3.

    Table 3 values field data structure description

    Name

    Mandatory

    Type

    Description

    key

    Yes

    String

    Specifies the parameter name. For example, in "max_connections": "10", the key is max_connections.

    value

    Yes

    String

    Specifies the parameter value. For example, in "max_connections": "10", the value is 10.

  • Request example
    { 
        "values": { 
           "max_connections": "10", 
           "autocommit": "OFF" 
        }
    }

Response

  • Normal response
    Table 4 Parameter description

    Name

    Type

    Description

    restart_required

    Boolean

    Indicates whether a reboot is required.

    • true: A reboot is required.
    • false: A reboot is not required.
  • Example normal response
    {
      "restart_required": false
    }
  • Abnormal Response

    For details, see Abnormal Request Results.

Status Code

For details, see Status Codes.

Error Code

For details, see Error Codes.