Changes the access mode of an AnalyticDB for PostgreSQL instance.


This operation is available only for AnalyticDB for PostgreSQL instances in reserved storage mode. You can call this operation to change the access mode of an instance to standard mode or safe mode.


You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDBInstanceConnectionMode

The operation that you want to perform. Set the value to ModifyDBInstanceConnectionMode.

DBInstanceId String Yes gp-rj***************

The ID of the instance in reserved storage mode.

Note You can call the DescribeDBInstances operation to query the details of all AnalyticDB for PostgreSQL instances in a specific region, including instance IDs.
ConnectionMode String Yes Safe

The access mode of the instance. Valid values:

  • Standard
  • Safe

Response parameters

Parameter Type Example Description
RequestId String 8361E350-4CCC-4D28-B020-55**********

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "8361E350-4CCC-4D28-B020-55**********"

Error codes

For a list of error codes, visit the API Error Center.