Skip to main content

configs

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

Overview​

Nameconfigs
TypeResource
Idovh.hosting_private_database.configs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idintegerConfiguration linked task id (wire: taskId)
detailsarrayConfiguration details
last_updatestring (date-time)Configuration last update (wire: lastUpdate)
statusstringConfiguration status (applied, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the configuration parameters with their current, default and available values, and whether the last update is applied.
updateexecserviceName, parametersUpdates the given configuration parameters as key-value pairs. Returns the configuration, whose status stays at updating until the change is applied.

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"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the configuration parameters with their current, default and available values, and whether the last update is applied.

SELECT
task_id,
details,
last_update,
status
FROM ovh.hosting_private_database.configs
WHERE service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Updates the given configuration parameters as key-value pairs. Returns the configuration, whose status stays at updating until the change is applied.

EXEC ovh.hosting_private_database.configs.update
@serviceName='{{ serviceName }}' --required
@@json=
'{
"parameters": "{{ parameters }}"
}'
;