Skip to main content

reference_available_languages

Creates, updates, deletes, gets or lists a reference_available_languages resource.

Overview​

Namereference_available_languages
TypeResource
Idovh.managed_cms.reference_available_languages

Fields​

The following fields are returned by SELECT queries:

A language a CMS can be configured with

NameDatatypeDescription
namestringName of the language as displayed in the interfaces
codestringCode to send when setting the language of a CMS (de_DE, en_GB, en_US, es_ES, fr_CA, fr_FR, it_IT, pl_PL, pt_PT)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcmsx_pagination_cursor, x_pagination_sizeReturns the languages a website can be configured with at creation, with their display name. Filter them by CMS. (Alpha version)

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
cmsstringFor which content management system
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the languages a website can be configured with at creation, with their display name. Filter them by CMS. (Alpha version)

SELECT
name,
code
FROM ovh.managed_cms.reference_available_languages
WHERE cms = '{{ cms }}' -- required
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
;