All Products
Search
Document Center

SetAllowIP

Last Updated: Mar 05, 2019

Description

You can call this operation to set the classic network whitelist based on input parameters.

If no classic network whitelist exists, this request adds one.

If a classic network whitelist already exists, this request updates it.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to SetAllowIP.
RegionID String Yes The ID of the region where you make the request. For more information, see DLA regions in Appendix.
NetworkType String Yes The network type, fixed value: classic_jdbc.
AllowIP String Yes The list of IP addresses in the whitelist, separated with commas (,). CIDR notation is supported.
Append String No Default value: false. If this parameter is set to true, the added IP address whitelist is appended to the existing classic network whitelist.

Response parameters

Name Type Description
Common response parameters - For more information, see Common parameters.
RequestId String The GUID generated by Alibaba Cloud for the request.
RegionId String The ID of the region where you make the request.

Sample requests

  1. http://openanalytics.cn-hangzhou.aliyuncs.com/?Action=SetAllowIP
  2. &RegionID=<RegionID>, for example, cn-hangzhou
  3. &NetworkType=classic_jdbc
  4. &AllowIP=0.0.0.0%2F0
  5. &Append=false
  6. &<Common request parameters>

Sample responses

XML format

  1. <SetAllowIPResponse>
  2. <RequestId>A0FE6204-EBAF-4CF8-A0C0-1E8DFD995A37</RequestId>
  3. <RegionId>cn-hangzhou</RegionId>
  4. </SetAllowIPResponse>

JSON format

  1. {
  2. "RegionId": "cn-hangzhou",
  3. "RequestId": "A0FE6204-EBAF-4CF8-A0C0-1E8DFD995A37"
  4. }