Always Use HTTPS Settings

Enforce HTTPS-only connections for CDN Resources through the Security API.

Always Use HTTPS Settings

put

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 · enumOptional

The HTTP status code for the redirection. Required if status_https_force is true.

Possible values:
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
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Successful response

Update Origin Basic Authentication settings for a CDN Resource

put

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.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

Unique identifier of the organization.

Example: 123e4567-e89b-12d3-a456-426614174000
resource_uuidstringRequired

Unique identifier of the CDN Resource.

Example: 789e1234-b56c-78d9-a123-526614174111
Body
resource_uuidstringRequired

Unique identifier of the CDN Resource.

Example: 789e1234-b56c-78d9-a123-526614174111
Responses
200

Origin Basic Authentication settings updated successfully.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Origin Basic Authentication settings updated successfully.

Last updated

Was this helpful?