Authorization: ********************{
"exported_at": "2019-08-24T14:15:22.123Z",
"version": "V2",
"rules": [
{
"name": "SQLi UNION SELECT",
"description": "string",
"severity": "medium",
"enabled": true,
"patterns": [
"(?i)union\\\\s+select"
],
"match_locations": [
"url",
"body"
]
}
],
"ip_entries": [
{
"ip_address": "198.51.100.0/24",
"list_type": "blacklist",
"note": "string"
}
],
"sites": [
{
"property1": "string",
"property2": "string"
}
],
"geo_rules": [
{
"country": "China",
"country_code": "CN",
"action": "block",
"enabled": true
}
],
"settings": {
"dynamic_protect": "true"
}
}curl --location '/api/v1/backup/import' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"exported_at": "2019-08-24T14:15:22.123Z",
"version": "V2",
"rules": [
{
"name": "SQLi UNION SELECT",
"description": "string",
"severity": "medium",
"enabled": true,
"patterns": [
"(?i)union\\\\s+select"
],
"match_locations": [
"url",
"body"
]
}
],
"ip_entries": [
{
"ip_address": "198.51.100.0/24",
"list_type": "blacklist",
"note": "string"
}
],
"sites": [
{
"property1": "string",
"property2": "string"
}
],
"geo_rules": [
{
"country": "China",
"country_code": "CN",
"action": "block",
"enabled": true
}
],
"settings": {
"dynamic_protect": "true"
}
}'{
"imported": {
"property1": 0,
"property2": 0
},
"errors": [
"string"
]
}