Skip to main content

module_lists

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

Overview​

Namemodule_lists
TypeResource
Idovh.hosting_web.module_lists

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerThe ID of the module
namestringThe name of the module
activebooleanIs the module available?
admin_name_typestringThe type of the admin name (email, string) (wire: adminNameType)
authorstringThe packager of this module for OVH
branchstringThe branch of the module (old, stable, testing)
keywordsarrayThe keywords for this module
languagearrayAll available languages for this module
language_requirementobjectMinimal language version required to run this module (wire: languageRequirement)
latestbooleanIs this the latest version available?
sizeobjectSize of the module
upgrade_fromarrayThe IDs of the module you can upgrade to (wire: upgradeFrom)
versionstringThe version of the module

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet an available module. Returns the name, version, branch, languages and requirements of the module, and the modules it can be upgraded to.
listselectactive, branch, latest, x_pagination_modeList available modules. Returns the IDs of the modules that can be installed. Filter them by active, branch or latest.

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"}})
idintegerThe ID of the module
activebooleanFilter the value of active property (=)
branchstringFilter the value of branch property (=)
latestbooleanFilter the value of latest property (=)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get an available module. Returns the name, version, branch, languages and requirements of the module, and the modules it can be upgraded to.

SELECT
id,
name,
active,
admin_name_type,
author,
branch,
keywords,
language,
language_requirement,
latest,
size,
upgrade_from,
version
FROM ovh.hosting_web.module_lists
WHERE id = '{{ id }}' -- required
;