Change security and performance settings for your domain's CDN. You can configure everything from DDoS protection to SSL modes and geoblocking. This endpoint returns an ID that may be needed for subsequent actions.
Accept Example Content-Type Example domain string required proxy boolean required ddosMode string · enum required av medel alwaysUseHttps boolean required nonSwedenTrafficAction string · enum required challenge off sslMode string · enum required flexible full minTlsVersion string · enum required 1.0 1.1 1.2 1.3 botProtection boolean required blockBadCrawlers boolean required wpLoginProtection boolean required wpadminChallenge boolean required blockBadBots boolean required earlyHints boolean required alwaysOnline boolean required koalityengineAllowlist boolean required wafSkipEnabled boolean required wafChallengeGeoEnabled boolean required geo_whitelist_countries string · enum required BE,NL,NO,FI,GB,IT,FR,DK,DE,ES,IS,AT,CH NL NO,FI,DK,IS wafIpAllowlist array required wafUaAllowlist array required wafPathAllowlist array required dnssecEnabled boolean required success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string https://cloud.hostup.se/api/cdn/zones curl -X PUT "https://cloud.hostup.se/api/cdn/zones" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"proxy": true,
"ddosMode": "av",
"alwaysUseHttps": true,
"nonSwedenTrafficAction": "challenge",
"sslMode": "flexible",
"minTlsVersion": "1.0",
"botProtection": true,
"blockBadCrawlers": true,
"wpLoginProtection": true,
"wpadminChallenge": true,
"blockBadBots": true,
"earlyHints": true,
"alwaysOnline": true,
"koalityengineAllowlist": true,
"wafSkipEnabled": true,
"wafChallengeGeoEnabled": true,
"geo_whitelist_countries": "",
"wafIpAllowlist": [
"string"
],
"wafUaAllowlist": [
"string"
],
"wafPathAllowlist": [
"string"
],
"dnssecEnabled": true
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"domain": "string",
"updated_fields": [
"string"
],
"security_settings_updated": true
}
} {
"domain": "string",
"proxy": true,
"ddosMode": "av",
"alwaysUseHttps": true,
"nonSwedenTrafficAction": "challenge",
"sslMode": "flexible",
"minTlsVersion": "1.0",
"botProtection": true,
"blockBadCrawlers": true,
"wpLoginProtection": true,
"wpadminChallenge": true,
"blockBadBots": true,
"earlyHints": true,
"alwaysOnline": true,
"koalityengineAllowlist": true,
"wafSkipEnabled": true,
"wafChallengeGeoEnabled": true,
"geo_whitelist_countries": "",
"wafIpAllowlist": [
"string"
],
"wafUaAllowlist": [
"string"
],
"wafPathAllowlist": [
"string"
],
"dnssecEnabled": true
}