Manage CDN proxy rules for domains

Create and manage proxy rules for your CDN. These rules control how traffic is routed to your services. A successful call returns a rule ID for referencing the rule in future operations, such as deletion.

Headers

Accept Example
Content-Type Example

Body

required
application/json
fqdn string required
zone_name string required
proxied boolean required
priority integer required
description string required
active boolean required

Responses

200
success boolean
timestamp string
requestId string
data object
401
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/cdn/proxy-rules
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/cdn/proxy-rules" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "fqdn": "string",
    "zone_name": "string",
    "proxied": true,
    "priority": 0,
    "description": "string",
    "active": true
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "rule_id": "string",
    "fqdn": "string",
    "zone_name": "string",
    "proxied": true,
    "active": true
  }
}
Request Body
{
  "fqdn": "string",
  "zone_name": "string",
  "proxied": true,
  "priority": 0,
  "description": "string",
  "active": true
}