quota_histories
Creates, updates, deletes, gets or lists a quota_histories resource.
Overview​
| Name | quota_histories |
| Type | Resource |
| Id | ovh.ip_loadbalancing.quota_histories |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | Id of your quota |
historized_date | string (date) | Historized date for this quota entry (wire: historizedDate) |
last_update_date | string (date-time) | The last time your quota was updated from your Load Balancer instance (wire: lastUpdateDate) |
reset_date | string (date-time) | The last time your quota was resetted (billed) (wire: resetDate) |
total | integer | Total used quota value in bytes |
zone | string | Zone of your quota |
QuotaHistory
| Name | Datatype | Description |
|---|---|---|
id | integer | Id of your quota |
historized_date | string (date) | Historized date for this quota entry (wire: historizedDate) |
last_update_date | string (date-time) | The last time your quota was updated from your Load Balancer instance (wire: lastUpdateDate) |
reset_date | string (date-time) | The last time your quota was resetted (billed) (wire: resetDate) |
total | integer | Total used quota value in bytes |
zone | string | Zone of your quota |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, service_name | Get a monthly quota history | |
list | select | service_name | historized_date.from, historized_date.to, zone, x_pagination_mode | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
id | integer | Id of your quota |
service_name | string | The internal name of your IP load balancing (wire: serviceName) |
historized_date.from | string (date) | Filter the value of historizedDate property (>=) (wire: historizedDate.from) |
historized_date.to | string (date) | Filter the value of historizedDate property (<=) (wire: historizedDate.to) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
zone | string | Filter the value of zone property (=) |
SELECT examples​
- get
- list
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
;
List quota history per month
SELECT
id,
historized_date,
last_update_date,
reset_date,
total,
zone
FROM ovh.ip_loadbalancing.quota_histories
WHERE service_name = '{{ service_name }}' -- required
AND historized_date.from = '{{ historized_date.from }}'
AND historized_date.to = '{{ historized_date.to }}'
AND zone = '{{ zone }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;