You can call this operation to switch a whitelist from normal mode to safe mode.

  • In normal mode, IP addresses in the whitelist apply to both classic networks and VPCs. In case of security risks, we recommend that you switch to safe mode.
  • In safe mode, IP addresses in the whitelist are divided into VPC IP addresses and the IP addresses of classic networks and public networks.
  • Safe mode cannot be switched to normal mode.
  • This operation is not applicable to SQL Server and MariaDB instances.


You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required? Example Description
Action String Yes MigrateSecurityIPMode

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

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

Response parameters

Parameter Type Example Description
DBInstanceId String rm-uf6wjk5xxxxxxx

The ID of the instance.

RequestId String EF1E53AB-5625-49C7-ADF1-FBD0B6640D19

The ID of the request.

SecurityIPMode String safety

The mode of the whitelist after the switch. Valid values: safety.


Sample requests

http(s):// Action=MigrateSecurityIPMode
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

View error codes