Files
doc-exports/docs/rds/api-ref/rds_11_0013.html
wangdengke2 1ddaec1a62 rds_api
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-01-29 11:28:26 +00:00

14 KiB

Modifying the Value of a Specified Parameter for an Instance

Function

This API is used to modify the value of a specified parameter for an instance.

Constraints

  • This operation cannot be performed when the DB instance is in the abnormal state.
  • Parameters of read replicas cannot be modified.
  • Only the value of shared_preload_libraries can be modified.

URI

  • URI format

    PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/parameter/{name}

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

    For details about how to obtain the project ID, see Obtaining a Project ID.

    instance_id

    Yes

    Specifies the DB instance ID.

    name

    Yes

    Parameter name.

    Only the shared_preload_libraries parameter can be modified.

    The default value is shared_preload_libraries.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

The content type.

The default value is application/json.

X-Auth-Token

Yes

String

Specifies the user token.

The user token is a response to the API used to obtain a user token.

Table 3 Parameters

Parameter

Mandatory

Type

Description

value

Yes

String

Parameter value.

Example Request

Change the value of shared_preload_libraries for a DB instance.

PUT https://rds.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/f569f1358436479dbcba8603c32cc4aein03/parameter/shared_preload_libraries
{
  "value" : "passwordcheck.so,pg_stat_statements,pg_sql_history"
}

Response

  • Normal response
    Table 4 Parameters

    Parameter

    Type

    Description

    job_id

    String

    Task ID.

    restart_required

    Boolean

    Whether a reboot is required. The value can be:

    • true: indicates that a reboot is required.
    • false: indicates that a reboot is not required.
  • Example normal response
    {
      "job_id" : "e7a7535b-eb9b-45ac-a83a-020dc5016d94",  
      "restart_required" : true  
    }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.