Skip to main content
Version: v1

Disable CDN for All Resource Buckets

This method disables CDN for all buckets of a resource simultaneously

info

CDN cannot be disabled for buckets if VOD is enabled for any bucket. In this case, you must first disable VOD for all associated buckets

Request Parameters

POST /api/clients/v1/s3Resources/{id}/disableBuckets/

Headers

  • Content-Type: application/json
  • Authorization: Bearer $access_token

Path

ParameterTypeConstraintsDescriptionExample
idinteger> 0, requiredResource ID16

Response Parameters

JSON body

ParameterTypeDescription
disabledstring[]Names of disabled buckets

Examples

200 OK

CDN successfully disabled for all resource buckets

{
"disabled": [
"media",
"assets"
]
}
400 Bad Request

Invalid path parameters, or disable operation is not possible due to existing related objects

{
"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 resources associated with the project

{
"detail": "Only project participants can view this project's resources"
}
404 Not Found

Resource with specified ID not found

{
"detail": "Resource not found"
}