Skip to main content

origin_max_http_version

Creates, updates, deletes, gets or lists an origin_max_http_version resource.

Overview​

Nameorigin_max_http_version
TypeResource
Idcloudflare.zones.origin_max_http_version

Fields​

The following fields are returned by SELECT queries:

Get Origin Max HTTP Version setting response.

NameDatatypeDescription
idstringThe identifier of the caching setting. (origin_max_http_version)
editablebooleanWhether the setting is editable.
modified_onstring (date-time)Last time this setting was modified. (example: 2014-01-01T05:20:00.12345Z)
valuestringValue of the Origin Max HTTP Version Setting. (2, 1)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idOrigin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to Enable HTTP/2 to Origin, for more information.). The default value is "2" for all plan types except Enterprise where it is "1".
zone_cache_settings_change_origin_max_http_version_settingupdatezone_id, valueOrigin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to Enable HTTP/2 to Origin, for more information.). The default value is "2" for all plan types except Enterprise where it is "1".

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples​

Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to Enable HTTP/2 to Origin, for more information.). The default value is "2" for all plan types except Enterprise where it is "1".

SELECT
id,
editable,
modified_on,
value
FROM cloudflare.zones.origin_max_http_version
WHERE zone_id = '{{ zone_id }}' -- required
;

UPDATE examples​

Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to Enable HTTP/2 to Origin, for more information.). The default value is "2" for all plan types except Enterprise where it is "1".

UPDATE cloudflare.zones.origin_max_http_version
SET
value = '{{ value }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND value = '{{ value }}' --required
RETURNING
errors,
messages,
result,
success;