Skip to main content

order_consumption_details

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

Overview​

Nameorder_consumption_details
TypeResource
Idovh.me.order_consumption_details

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idintegerConsumption details export task's identifier (wire: taskId)
file_formatstringFormat of the file (csv) (wire: fileFormat)
file_urlstringTemporary URL to download detailed consumption (wire: fileURL)
messagestringRequest's state description
task_statusstringConsumption details export task's status (DOING, DONE, ERROR, TODO) (wire: taskStatus)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfile_format, order_idRetrieve order's detailed consumption information as a file

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"}})
file_formatstringFormat of the file (wire: fileFormat)
order_idinteger (wire: orderId)

SELECT examples​

Retrieve order's detailed consumption information as a file

SELECT
task_id,
file_format,
file_url,
message,
task_status
FROM ovh.me.order_consumption_details
WHERE file_format = '{{ file_format }}' -- required
AND order_id = '{{ order_id }}' -- required
;