You can call this operation to switch the network type of an AnalyticDB for PostgreSQL instance between VPC and classic network.


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
DBInstanceId String Yes gp-xxxxxxxx

The ID of the instance.

InstanceNetworkType String Yes VPC

The network type of the instance. Valid values:

  • VPC
  • Classic
VPCId String No vpc-xxxxxxxx

The VPC ID of the instance.

VSwitchId String No vsw-xxxxxxxx

The vSwitch ID of the instance. This parameter is required if the VPCId parameter is specified.

Response parameters

Parameter Type Example Description
RequestId String 2d0c35a9-f5da-44ba-852d-741e27b7eb0b

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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