Always Use HTTPS Settings
Enable or update HTTPS redirection settings for a specific resource in the CDN.
Path parameters
organization_uuidstringRequired
The UUID of the organization.
resource_uuidstringRequired
The UUID of the resource.
Body
status_https_forcebooleanRequired
Enable or disable forced HTTPS redirection.
https_force_redirect_codestring · enumOptionalPossible values:
The HTTP status code for the redirection. Required if status_https_force is true.
force_https_reversebooleanOptional
Redirect from HTTPS to HTTP instead of the default HTTP to HTTPS.
resource_uuidstringRequired
The UUID of the resource.
Responses
200
Successful response
application/json
put
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": "****-****-****-****"
}
200
Successful response
{
"status": true,
"data": {}
}
This setting is available in small, large and dynamic(aksela) resource types.
Path parameters
organization_uuidstringRequiredExample:
****-*****-****-****
resource_uuidstringRequiredExample:
****-*****-****-****
Body
resource_uuidstringRequiredExample:
****-*****-****-****
Responses
200
Successful operation
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"resource_uuid": "****-*****-****-****",
"origin_source_auth_info": {
"status": true,
"auth_username": "hidden",
"auth_password": "hiddenpassword"
}
}
200
Successful operation
{
"status": true,
"data": {}
}
Last updated
Was this helpful?