Disable CDN for Domain
Method to disable CDN for a domain
info
A background task will be created upon successful request. You can track the task progress using the Tasks API.
Request Parameters
POST /api/clients/v1/domains/{id}/disableCdn/
Path
| Parameter | Type | Constraints | Description | Example |
|---|---|---|---|---|
| id | integer | > 0, required | Domain ID | 1 |
Response Parameters
JSON body
| Parameter | Type | Description |
|---|---|---|
| task_id | string | Task ID |
Examples
200 OK
Task ID for disabling CDN for the domain. The task result and affected domain ID are contained in the task object.
{
"task_id": "bb4dcd80-01a5-4a73-8c2b-62c5027a9b72"
}
400 Bad Request
CDN is already disabled for this domain
[
"CDN for this domain is already disabled"
]
401 Unauthorized
Authentication credentials missing or invalid
{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}
403 Forbidden
CDN can only be disabled for domains in your own project
{
"detail": "Only project participants can disable CDN for domain"
}
404 Not Found
Domain with this ID not found
{
"detail": "Not found"
}