Queries the CIDR blocks of Data Transmission Service (DTS) servers.
If the source or destination instance is a self-managed database or a third-party cloud database, you need to call this operation to query the CIDR blocks of DTS servers. Then, you need to add the CIDR blocks of DTS servers to the security settings of the source or destination instance, for example, the firewall of your database. For more information, see Add the CIDR blocks of DTS servers to the security settings of on-premises databases.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | WhiteIpList |
The operation that you want to perform. Set the value to WhiteIpList. |
Region | String | Yes | cn-hangzhou |
The ID of the region where the source instance resides. For more information, see List of supported regions. Note If the source instance is a self-managed database with a public IP address or a third-party
cloud database, you can set the parameter to cn-hangzhou or the ID of the closest region.
|
Type | String | Yes | vpc |
Specifies how the self-managed database or third-party cloud database is connected to DTS. Valid values:
|
DestinationRegion | String | No | cn-hangzhou |
The ID of the region where the destination instance resides. For more information, see List of supported regions. Note
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DynamicCode | String | 403 |
The dynamic error code. This parameter will be removed in the future. |
DynamicMessage | String | Type |
The dynamic part in the error message. This parameter is used to replace %s in the ErrMessage parameter. |
ErrCode | String | InternalError |
The error code returned if the call failed. |
ErrMessage | String | The Value of Input Parameter %s is not valid. |
The error message returned if the call failed. |
HttpStatusCode | Integer | 200 |
The HTTP status code. |
IpList | String | 10.151.12.0/24,47.102.181.0/24,47.101.109.0/24,120.55.129.0/24,11.115.103.0/24,47.102.234.0/24 |
The CIDR blocks of DTS servers. Multiple CIDR blocks are separated by commas (,). |
RequestId | String | AD823BD3-1BA6-4117-A536-165CB280**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. Valid values:
|
Examples
Sample requests
http(s)://dts.aliyuncs.com/?Action=WhiteIpList
&Region=cn-hangzhou
&Type=vpc
&DestinationRegion=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<WhiteIpListResponse>
<RequestId>AD823BD3-1BA6-4117-A536-165CB280****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Success>true</Success>
<IpList>10.151.12.0/24,47.102.181.0/24,47.101.109.0/24,120.55.129.0/24,11.115.103.0/24,47.102.234.0/24</IpList>
</WhiteIpListResponse>
JSON
format
{
"RequestId":"AD823BD3-1BA6-4117-A536-165CB280****",
"HttpStatusCode":200,
"Success":true,
"IpList": "10.151.12.0/24,47.102.181.0/24,47.101.109.0/24,120.55.129.0/24,11.115.103.0/24,47.102.234.0/24"
}
Error codes
For a list of error codes, visit the API Error Center.