Skip to main content

offer_capabilities

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

Overview​

Nameoffer_capabilities
TypeResource
Idovh.hosting_web.offer_capabilities

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
attached_domainsintegerNumber of domains you can attach to your hosting (wire: attachedDomains)
crontabbooleanDoes the offer allow crontab
database_enginesintegerNumber of database engines allowed for your hosting (wire: databaseEngines)
databasesarrayDescribe all databases type you can have
diskobjectDisk capacity and type available for your hosting ( null for unlimited )
emailsobjectDescribe all email offer you can have
env_varsintegerNumber of environment variables allowed for your hosting (wire: envVars)
extra_usersintegerNumber of ftp user you can create (wire: extraUsers)
files_browserbooleanDoes the offer allow access to web files browser? (wire: filesBrowser)
highlightstringMarketing information about the current offer (best-seller, new)
languagesobjectLanguage available for cron script
module_one_clickbooleanDoes the offer allow 1-click modules? (wire: moduleOneClick)
private_databasesarrayDescribe all privateDatabases type you can have (wire: privateDatabases)
runtimesintegerNumber of runtimes allowed for your hosting
sites_recommendedintegerNumber of sites recommended for your hosting ( -1 for unlimited ) (wire: sitesRecommended)
sshbooleanDoes the offer allow SSH access
trafficobjectTraffic quota size for your hosting ( null for unlimited )

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectofferGet offer capabilities. Returns what an offer includes: attached domains, databases, disk, traffic, SSH, cron, modules and runtimes.

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"}})
offerstringDescribe offer capabilities

SELECT examples​

Get offer capabilities. Returns what an offer includes: attached domains, databases, disk, traffic, SSH, cron, modules and runtimes.

SELECT
attached_domains,
crontab,
database_engines,
databases,
disk,
emails,
env_vars,
extra_users,
files_browser,
highlight,
languages,
module_one_click,
private_databases,
runtimes,
sites_recommended,
ssh,
traffic
FROM ovh.hosting_web.offer_capabilities
WHERE offer = '{{ offer }}' -- required
;