Skip to main content

tickets_messages

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

Overview​

Nametickets_messages
TypeResource
Idovh.support.tickets_messages

Fields​

The following fields are returned by SELECT queries:

Support ticket message

NameDatatypeDescription
message_idintegerMessage identifier (wire: messageId)
ticket_idintegerTicket identifier (wire: ticketId)
bodystringMessage body
creation_datestring (date-time)Message creation date (wire: creationDate)
fromstringMessage sender type (customer, support)
update_datestring (date-time)Message last update date (wire: updateDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectticket_idGet ticket messages

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"}})
ticket_idintegerinternal ticket identifier (wire: ticketId)

SELECT examples​

Get ticket messages

SELECT
message_id,
ticket_id,
body,
creation_date,
from,
update_date
FROM ovh.support.tickets_messages
WHERE ticket_id = '{{ ticket_id }}' -- required
;