Skip to main content

cluster_retentions

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

Overview​

Namecluster_retentions
TypeResource
Idovh.dbaas_logs.cluster_retentions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
retention_idstring (uuid)Retention ID (wire: retentionId)
durationstring (duration)Indexed duration expressed in ISO-8601 format
is_supportedbooleanIndicates if a new stream can use it (wire: isSupported)
retention_typestringRetention type (LOGS_COLD_STORAGE, LOGS_INDEXING, METRICS_TENANT) (wire: retentionType)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcluster_id, retention_id, service_nameReturns the cluster retention.
listselectcluster_id, service_namex_pagination_modeReturns the cluster retentions of the Logs Data Platform service.

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"}})
cluster_idstring (uuid)Cluster ID (wire: clusterId)
retention_idstring (uuid)Retention ID (wire: retentionId)
service_namestringService name (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the cluster retention.

SELECT
retention_id,
duration,
is_supported,
retention_type
FROM ovh.dbaas_logs.cluster_retentions
WHERE cluster_id = '{{ cluster_id }}' -- required
AND retention_id = '{{ retention_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;