Skip to main content

histories

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

Overview​

Namehistories
TypeResource
Idovh.notification.histories

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the notification
attachmentsarrayAttachments linked to this notification
categoriesarrayCategories of the notification
contactsarrayContact attempts made for this notification
created_atstring (date-time)Date at which the notification was sent (wire: createdAt)
htmlstringHTML text of the notification
prioritystringPriority of the notification (HIGH, LOW, MEDIUM)
summarystringSummary of the notification
tagsobjectTags of the notification
textstringRaw text of the notification
titlestringTitle of the notification

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnotification_idRetrieve information about a notification sent to you
listselectx_pagination_cursor, x_pagination_size, category, created_after, created_before, priority, sort_created_at, tags, title_contains, with_summaryRetrieve every notification sent to you

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"}})
notification_idstring (uuid)Notification ID (wire: notificationId)
categoryarraySelect notifications belonging to one of these categories
created_afterstring (date-time)Select notifications created after this date (wire: createdAfter)
created_beforestring (date-time)Select notifications created before this date (wire: createdBefore)
priorityarraySelect notifications matching one of these priorities
sort_created_atstringSort by createdAt field. Defaults to DESC. (wire: sortCreatedAt)
tagsobjectFilter notifications using tag filters
title_containsstringSelect notifications which title contains this text (wire: titleContains)
with_summarybooleanAdd summary field to response (wire: withSummary)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Retrieve information about a notification sent to you

SELECT
id,
attachments,
categories,
contacts,
created_at,
html,
priority,
summary,
tags,
text,
title
FROM ovh.notification.histories
WHERE notification_id = '{{ notification_id }}' -- required
;