Modifies the intrusion prevention system (IPS) whitelist for the Internet Border.
Operation description
QPS limit
This API is limited to 10 queries per second (QPS) for each user. If you exceed this limit, API calls are throttled. This can affect your business. We recommend that you call the API at a reasonable rate.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
47.100.XX.XX |
| Lang |
string |
No |
The language. Valid values:
|
zh |
| Lang |
string |
No |
The language. Valid values:
|
zh |
| Direction |
integer |
No |
The traffic direction for the Internet Border. Valid values:
|
1 |
| WhiteType |
integer |
No |
The type of source or destination for which the Internet Border whitelist takes effect. Valid values:
|
2 |
| ListType |
integer |
No |
The type of address in the Internet Border whitelist. Valid values:
|
2 |
| ListValue |
string |
No |
The value of the Internet Border whitelist.
|
115.236.36.114/32 |
| IpVersion |
string |
No |
The IP version. Valid values:
|
ipv4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
36E89955-1E5D-5810-970C-74646F378085 |
Examples
Success response
JSON format
{
"RequestId": "36E89955-1E5D-5810-970C-74646F378085"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | invalid aliUid. | Invalid Aliuid. |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 400 | ErrorAddressCountExceed | The maximum number of addresses is exceeded. | The maximum number of address is exceeded. |
| 400 | ErrorDBDelete | Internal error: sql delete. | Internal error: SQL delete operation |
| 400 | ErrorDBInsert | An error occurred while performing an insert operation in the database. | An error occurred while performing an insert operation in the database. |
| 400 | ErrorParametersWhitelistIP | Invalid whitelistIp. | The IP address is invalid. |
| 400 | ErrorRecordLog | update operation log error. | |
| 400 | ErrorMarshalJSON | internal error: marshal json. | An error occurred. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.