Disable CDN for Bucket
This method disables CDN for a bucket
note
CDN cannot be disabled for a bucket when VOD is enabled. In this case, you must first disable VOD for the associated bucket
Request Parameters
POST /api/clients/v1/s3Buckets/{id}/disableCdn/
Path
| Parameter | Type | Constraints | Description | Example |
|---|---|---|---|---|
| id | integer | > 0, required | Bucket ID | 46 |
Response Parameters
JSON body
| Parameter | Type | Description |
|---|---|---|
| id | integer | Bucket ID |
| name | string | Bucket name |
| status | string | CDN status for the bucket |
| resource_id | integer | Resource ID |
| last_cache_cleanup | string | Last cache cleanup time for the bucket |
| headers | object[] | List of additional HTTP headers |
| headers.key | string | Header name |
| headers.value | string | Header value |
200 OK
Bucket object
{
"id": 46,
"name": "media",
"status": "disabled",
"resource_id": 16,
"last_cache_cleanup": null,
"headers": [
{
"key": "X-MEDIA-TYPE",
"value": ".pptx"
}
]
}
400 Bad Request
Invalid path parameters or disable operation not possible
{
"id": [
"A valid integer is required."
]
}
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
Only project participants can disable CDN for buckets associated with the project
{
"detail": "Only project participants can view this project's buckets"
}
404 Not Found
Bucket with specified ID not found
{
"detail": "Bucket not found"
}