Always Use HTTPS Settings
Enforce HTTPS-only connections for CDN Resources through the Security API.
Enable or update HTTPS redirection settings for a specific resource in the CDN.
The UUID of the organization.
The UUID of the resource.
Enable or disable forced HTTPS redirection.
The HTTP status code for the redirection. Required if status_https_force is true.
Redirect from HTTPS to HTTP instead of the default HTTP to HTTPS.
The UUID of the resource.
Successful response
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"status_https_force": true,
"https_force_redirect_code": "301",
"resource_uuid": "****-****-****-****"
}Successful response
{
"status": true,
"data": {}
}Use this endpoint to enable or disable Basic Authentication for origin requests. Define the username and password that the CDN will use when connecting to the origin server. This feature is supported for Small, Large, and Dynamic (Aksela) resource types.
Unique identifier of the organization.
123e4567-e89b-12d3-a456-426614174000Unique identifier of the CDN Resource.
789e1234-b56c-78d9-a123-526614174111Unique identifier of the CDN Resource.
789e1234-b56c-78d9-a123-526614174111Origin Basic Authentication settings updated successfully.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 162
{
"resource_uuid": "789e1234-b56c-78d9-a123-526614174111",
"origin_source_auth_info": {
"status": true,
"auth_username": "origin_user",
"auth_password": "origin_password"
}
}Origin Basic Authentication settings updated successfully.
{
"status": true,
"data": {}
}Last updated
Was this helpful?