mediaOriginFailover


Specifies how edge servers respond when the origin is unresponsive, or suffers from server or content errors. You can specify how many times to retry, switch to a backup origin hostname, or configure a redirect.

OptionTypeDescriptionRequires
detect​Origin​Unresponsiveboolean

Allows you to configure what happens when the origin is unresponsive.

{"displayType":"boolean","tag":"input","type":"checkbox"}
origin​Unresponsive​Detection​Levelenum

Specify the level of response to slow origin connections.

detect​Origin​Unresponsive is true
{"displayType":"enum","options":["AGGRESSIVE","CONSERVATIVE","MODERATE"],"tag":"select"}
{"if":{"attribute":"detectOriginUnresponsive","op":"eq","value":true}}
AGGRESSIVE

Aggressive response.

CONSERVATIVE

Conservative response.

MODERATE

Moderate response.

origin​Unresponsive​Blacklist​Origin​Ipboolean

Enabling this blacklists the origin's IP address.

detect​Origin​Unresponsive is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"detectOriginUnresponsive","op":"eq","value":true}}
origin​Unresponsive​Blacklist​Windowenum

This sets the delay before blacklisting an IP address.

origin​Unresponsive​Blacklist​Origin​Ip is true
{"displayType":"enum","options":["TEN_S","THIRTY_S"],"tag":"select"}
{"if":{"attribute":"originUnresponsiveBlacklistOriginIp","op":"eq","value":true}}
TEN_​S

10 seconds.

THIRTY_​S

30 seconds.

origin​Unresponsive​Recoveryenum

This sets the recovery option.

detect​Origin​Unresponsive is true
{"displayType":"enum","options":["RETRY_X_TIMES","SWITCH_TO_BACKUP_ORIGIN","REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"],"tag":"select"}
{"if":{"attribute":"detectOriginUnresponsive","op":"eq","value":true}}
RETRY_​X_TIMES

Retry.

SWITCH_​TO_​BACKUP_​ORIGIN

Switch to a backup origin.

REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION

Redirect to a different origin.

origin​Unresponsive​Retry​Limitenum

Sets how many times to retry.

origin​Unresponsive​Recovery is RETRY_​X_TIMES
{"displayType":"enum","options":["ONE","TWO","THREE"],"tag":"select"}
{"if":{"attribute":"originUnresponsiveRecovery","op":"eq","value":"RETRY_X_TIMES"}}
Supported values:
ONE
THREE
TWO
origin​Unresponsive​Backup​Hoststring

This specifies the origin hostname.

origin​Unresponsive​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"originUnresponsiveRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"}}
origin​Unresponsive​Alternate​Hoststring

This specifies the redirect's destination hostname.

origin​Unresponsive​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"originUnresponsiveRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}}
origin​Unresponsive​Modify​Request​Pathboolean

Modifies the request path.

origin​Unresponsive​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
OR origin​Unresponsive​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"or","params":[{"attribute":"originUnresponsiveRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"},{"attribute":"originUnresponsiveRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}]}}
origin​Unresponsive​Modified​Pathstring

This specifies the path to form the new URL.

origin​Unresponsive​Modify​Request​Path is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"originUnresponsiveModifyRequestPath","op":"eq","value":true}}
origin​Unresponsive​Include​Query​Stringboolean

Enabling this includes the original set of query parameters.

origin​Unresponsive​Modify​Request​Path is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"originUnresponsiveModifyRequestPath","op":"eq","value":true}}
origin​Unresponsive​Redirect​Methodenum

Specifies the redirect response code.

origin​Unresponsive​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"enum","options":["301","302"],"tag":"select"}
{"if":{"attribute":"originUnresponsiveRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}}
Supported values:
301
302
origin​Unresponsive​Change​Protocolboolean

This allows you to change the request protocol.

origin​Unresponsive​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
OR origin​Unresponsive​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"or","params":[{"attribute":"originUnresponsiveRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"},{"attribute":"originUnresponsiveRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}]}}
origin​Unresponsive​Protocolenum

Specifies which protocol to use.

origin​Unresponsive​Change​Protocol is true
{"displayType":"enum","options":["HTTP","HTTPS"],"tag":"select"}
{"if":{"attribute":"originUnresponsiveChangeProtocol","op":"eq","value":true}}
Supported values:
HTTP
HTTPS
detect​Origin​Unavailableboolean

Allows you to configure failover settings when the origin server responds with errors.

{"displayType":"boolean","tag":"input","type":"checkbox"}
origin​Unavailable​Detection​Levelenum

Specify RESPONSE_​CODES, the only available option.

detect​Origin​Unavailable is true
{"displayType":"enum","options":["RESPONSE_CODES"],"tag":"select"}
{"if":{"attribute":"detectOriginUnavailable","op":"eq","value":true}}
RESPONSE_​CODES

This is the only value currently available.

origin​Unavailable​Response​Codesstring array

Specifies the set of response codes identifying when the origin responds with errors.

detect​Origin​Unavailable is true
{"displayType":"string array","tag":"input","todo":true}
{"if":{"attribute":"detectOriginUnavailable","op":"eq","value":true}}
origin​Unavailable​Blacklist​Origin​Ipboolean

Enabling this blacklists the origin's IP address.

detect​Origin​Unavailable is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"detectOriginUnavailable","op":"eq","value":true}}
origin​Unavailable​Blacklist​Windowenum

This sets the delay before blacklisting an IP address.

origin​Unavailable​Blacklist​Origin​Ip is true
{"displayType":"enum","options":["TEN_S","THIRTY_S"],"tag":"select"}
{"if":{"attribute":"originUnavailableBlacklistOriginIp","op":"eq","value":true}}
TEN_​S

10 seconds.

THIRTY_​S

30 seconds.

origin​Unavailable​Recoveryenum

This sets the recovery option.

detect​Origin​Unavailable is true
{"displayType":"enum","options":["RETRY_X_TIMES","SWITCH_TO_BACKUP_ORIGIN","REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"],"tag":"select"}
{"if":{"attribute":"detectOriginUnavailable","op":"eq","value":true}}
RETRY_​X_TIMES

Retry.

SWITCH_​TO_​BACKUP_​ORIGIN

Switch to a backup origin.

REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION

Redirect to a different origin.

origin​Unavailable​Retry​Limitenum

Sets how many times to retry.

origin​Unavailable​Recovery is RETRY_​X_TIMES
{"displayType":"enum","options":["ONE","TWO","THREE"],"tag":"select"}
{"if":{"attribute":"originUnavailableRecovery","op":"eq","value":"RETRY_X_TIMES"}}
Supported values:
ONE
THREE
TWO
origin​Unavailable​Backup​Hoststring

This specifies the origin hostname.

origin​Unavailable​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"originUnavailableRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"}}
origin​Unavailable​Alternate​Hoststring

This specifies the redirect's destination hostname.

origin​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"originUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}}
origin​Unavailable​Modify​Request​Pathboolean

Modifies the request path.

origin​Unavailable​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
OR origin​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"or","params":[{"attribute":"originUnavailableRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"},{"attribute":"originUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}]}}
origin​Unavailable​Modified​Pathstring

This specifies the path to form the new URL.

origin​Unavailable​Modify​Request​Path is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"originUnavailableModifyRequestPath","op":"eq","value":true}}
origin​Unavailable​Include​Query​Stringboolean

Enabling this includes the original set of query parameters.

origin​Unavailable​Modify​Request​Path is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"originUnavailableModifyRequestPath","op":"eq","value":true}}
origin​Unavailable​Redirect​Methodenum

Specifies either a redirect response code.

origin​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"enum","options":["301","302"],"tag":"select"}
{"if":{"attribute":"originUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}}
Supported values:
301
302
origin​Unavailable​Change​Protocolboolean

Modifies the request protocol.

origin​Unavailable​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
OR origin​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"or","params":[{"attribute":"originUnavailableRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"},{"attribute":"originUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}]}}
origin​Unavailable​Protocolenum

Specifies either the HTTP or HTTPS protocol.

origin​Unavailable​Change​Protocol is true
{"displayType":"enum","options":["HTTP","HTTPS"],"tag":"select"}
{"if":{"attribute":"originUnavailableChangeProtocol","op":"eq","value":true}}
Supported values:
HTTP
HTTPS
detect​Object​Unavailableboolean

Allows you to configure failover settings when the origin has content errors.

{"displayType":"boolean","tag":"input","type":"checkbox"}
object​Unavailable​Detection​Levelenum

Specify RESPONSE_​CODES, the only available option.

detect​Object​Unavailable is true
{"displayType":"enum","options":["RESPONSE_CODES"],"tag":"select"}
{"if":{"attribute":"detectObjectUnavailable","op":"eq","value":true}}
RESPONSE_​CODES

This is the only value currently available.

object​Unavailable​Response​Codesstring array

Specifies the set of response codes identifying when there are content errors.

detect​Object​Unavailable is true
{"displayType":"string array","tag":"input","todo":true}
{"if":{"attribute":"detectObjectUnavailable","op":"eq","value":true}}
object​Unavailable​Blacklist​Origin​Ipboolean

Enabling this blacklists the origin's IP address.

detect​Object​Unavailable is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"detectObjectUnavailable","op":"eq","value":true}}
object​Unavailable​Blacklist​Windowenum

This sets the delay before blacklisting an IP address.

object​Unavailable​Blacklist​Origin​Ip is true
{"displayType":"enum","options":["TEN_S","THIRTY_S"],"tag":"select"}
{"if":{"attribute":"objectUnavailableBlacklistOriginIp","op":"eq","value":true}}
TEN_​S

10 seconds.

THIRTY_​S

30 seconds.

object​Unavailable​Recoveryenum

This sets the recovery option.

detect​Object​Unavailable is true
{"displayType":"enum","options":["RETRY_X_TIMES","SWITCH_TO_BACKUP_ORIGIN","REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"],"tag":"select"}
{"if":{"attribute":"detectObjectUnavailable","op":"eq","value":true}}
RETRY_​X_TIMES

Retry.

SWITCH_​TO_​BACKUP_​ORIGIN

Switch to a backup origin.

REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION

Redirect to a different origin.

object​Unavailable​Retry​Limitenum

Sets how many times to retry.

object​Unavailable​Recovery is RETRY_​X_TIMES
{"displayType":"enum","options":["ONE","TWO","THREE"],"tag":"select"}
{"if":{"attribute":"objectUnavailableRecovery","op":"eq","value":"RETRY_X_TIMES"}}
Supported values:
ONE
THREE
TWO
object​Unavailable​Backup​Hoststring

This specifies the origin hostname.

object​Unavailable​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"objectUnavailableRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"}}
object​Unavailable​Alternate​Hoststring

This specifies the redirect's destination hostname.

object​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"objectUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}}
object​Unavailable​Modify​Request​Pathboolean

Enabling this allows you to modify the request path.

object​Unavailable​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
OR object​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"or","params":[{"attribute":"objectUnavailableRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"},{"attribute":"objectUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}]}}
object​Unavailable​Modified​Pathstring

This specifies the path to form the new URL.

object​Unavailable​Modify​Request​Path is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"objectUnavailableModifyRequestPath","op":"eq","value":true}}
object​Unavailable​Include​Query​Stringboolean

Enabling this includes the original set of query parameters.

object​Unavailable​Modify​Request​Path is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"objectUnavailableModifyRequestPath","op":"eq","value":true}}
object​Unavailable​Redirect​Methodenum

Specifies a redirect response code.

object​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"enum","options":["301","302"],"tag":"select"}
{"if":{"attribute":"objectUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}}
Supported values:
301
302
object​Unavailable​Change​Protocolboolean

Changes the request protocol.

object​Unavailable​Recovery is SWITCH_​TO_​BACKUP_​ORIGIN
OR object​Unavailable​Recovery is REDIRECT_​TO_​DIFFERENT_​ORIGIN_​LOCATION
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"or","params":[{"attribute":"objectUnavailableRecovery","op":"eq","value":"SWITCH_TO_BACKUP_ORIGIN"},{"attribute":"objectUnavailableRecovery","op":"eq","value":"REDIRECT_TO_DIFFERENT_ORIGIN_LOCATION"}]}}
object​Unavailable​Protocolenum

Specifies either the HTTP or HTTPS protocol.

object​Unavailable​Change​Protocol is true
{"displayType":"enum","options":["HTTP","HTTPS"],"tag":"select"}
{"if":{"attribute":"objectUnavailableChangeProtocol","op":"eq","value":true}}
Supported values:
HTTP
HTTPS
client​Response​Codestring

Specifies the response code served to the client.

{"displayType":"string","tag":"input","type":"text"}
cache​Error​Responseboolean

When enabled, caches the error response.

{"displayType":"boolean","tag":"input","type":"checkbox"}
cache​Windowenum

This sets error response's TTL.

cache​Error​Response is true
{"displayType":"enum","options":["ONE_S","TEN_S","THIRTY_S"],"tag":"select"}
{"if":{"attribute":"cacheErrorResponse","op":"eq","value":true}}
ONE_​S

1 second.

TEN_​S

10 seconds.

THIRTY_​S

30 seconds.