Skip to main content

quota_histories

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

Overview​

Namequota_histories
TypeResource
Idovh.ip_loadbalancing.quota_histories

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerId of your quota
historized_datestring (date)Historized date for this quota entry (wire: historizedDate)
last_update_datestring (date-time)The last time your quota was updated from your Load Balancer instance (wire: lastUpdateDate)
reset_datestring (date-time)The last time your quota was resetted (billed) (wire: resetDate)
totalintegerTotal used quota value in bytes
zonestringZone of your quota

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet a monthly quota history
listselectservice_namehistorized_date.from, historized_date.to, zone, x_pagination_modeList quota history per month

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"}})
idintegerId of your quota
service_namestringThe internal name of your IP load balancing (wire: serviceName)
historized_date.fromstring (date)Filter the value of historizedDate property (>=) (wire: historizedDate.from)
historized_date.tostring (date)Filter the value of historizedDate property (<=) (wire: historizedDate.to)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)
zonestringFilter the value of zone property (=)

SELECT examples​

Get a monthly quota history

SELECT
id,
historized_date,
last_update_date,
reset_date,
total,
zone
FROM ovh.ip_loadbalancing.quota_histories
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;