Create a Distribution
Endpoint
Request
curl --X \
--request POST 'https://cdn.de-fra.ionos.com/distributions' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiO' \
--header 'Content-Type: application/json' \
--data '{
"properties": {
"domain": "example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"routingRules": [
{
"scheme": "http/https",
"prefix": "/api",
"upstream": {
"host": "server.example.com",
"caching": true,
"waf": true,
"geoRestrictions": {
"blockList": [
"CN",
"RU"
]
},
"rateLimitClass": "R10"
}
}
]
}
}
}'Body Parameters
Type
Description
Example
Header Parameters
Required
Type
Description
Response
Last updated
Was this helpful?