Skip to main content

tickets

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

Overview

Nametickets
TypeResource
Idlinode.support.tickets

Fields

The following fields are returned by SELECT queries:

Returns a single support ticket.

NameDatatypeDescription
idintegerRead-only The ID of the support ticket.
gravatar_idstringRead-only The Gravatar ID of the user who opened this ticket. (example: 474a1b7373ae0be4132649e69c36ce30)
attachmentsarrayRead-only A list of filenames representing attached files associated with this ticket.
closablebooleanWhether the ticket can be closed.
closedstring (date-time)Filterable, Read-only When this ticket was closed. (example: 2024-06-04T16:07:03)
descriptionstringRead-only The full details of the issue or question. (example: I'm having trouble setting the root password on my Linode. I tried following the instructions, but something isn't working. Can you please help me figure out how I can reset it?)
entityobjectRead-only The ticket was opened for this entity. An entity represents a specific object you've created, such as a Linode or a Managed Database.
openedstring (date-time)Filterable, Read-only When this ticket was created. (example: 2024-06-04T14:16:44)
opened_bystringRead-only The user who opened this ticket. (example: some_user)
statusstringRead-only The current status of this ticket. (example: open)
summarystringRead-only The summary or title for this ticket. (example: Having trouble resetting Linode root password.)
updatedstring (date-time)Filterable, Read-only When this ticket was last updated. (example: 2024-06-04T16:07:03)
updated_bystringRead-only The user who last updated this ticket. (example: some_other_user)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ticketselectReturns a specific support ticket under your account.

Learn more...

Learn more...
get_ticketsselectpage, page_sizeReturns a collection of all support tickets opened from your account. This includes tickets you've opened and tickets generated by Linode customer support regarding your account. Open tickets are returned first in the response.

Learn more...

Learn more...
post_ticketinsertdata__summary, data__descriptionOpen a support ticket. A ticket can only target a single, specific entity. For example, for an issue with a specific Linode, open a ticket and target it using its linode_id. Leave all other entities out of the request or set them to null.

Learn more...

Learn more...
post_close_ticketdeleteCloses a support ticket you have access to modify.

Learn more...

Learn more...
post_ticket_attachmentexecfileAdds a file attachment to an open support ticket on your account. Use an attachment to help customer support resolve your ticket. The file attachment is submitted in the request as multipart/form-data type. Accepted file extensions include: .gif, .jpg, .jpeg, .pjpg, .pjpeg, .tif, .tiff, .png, .pdf, or .txt. OAuth scopes.

<br /> account:read_write<br />

Learn more...

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
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns a specific support ticket under your account.

Learn more...

Learn more...

SELECT
id,
gravatar_id,
attachments,
closable,
closed,
description,
entity,
opened,
opened_by,
status,
summary,
updated,
updated_by
FROM linode.support.tickets;

INSERT examples

Open a support ticket. A ticket can only target a single, specific entity. For example, for an issue with a specific Linode, open a ticket and target it using its linode_id. Leave all other entities out of the request or set them to null.

Learn more...

Learn more...

INSERT INTO linode.support.tickets (
data__bucket,
data__database_id,
data__description,
data__domain_id,
data__firewall_id,
data__linode_id,
data__lkecluster_id,
data__longviewclient_id,
data__managed_issue,
data__nodebalancer_id,
data__region,
data__summary,
data__vlan,
data__volume_id,
data__vpc_id
)
SELECT
'{{ bucket }}',
{{ database_id }},
'{{ description }}' --required,
{{ domain_id }},
{{ firewall_id }},
{{ linode_id }},
{{ lkecluster_id }},
{{ longviewclient_id }},
{{ managed_issue }},
{{ nodebalancer_id }},
'{{ region }}',
'{{ summary }}' --required,
'{{ vlan }}',
{{ volume_id }},
{{ vpc_id }}
RETURNING
id,
gravatar_id,
attachments,
closable,
closed,
description,
entity,
opened,
opened_by,
status,
summary,
updated,
updated_by
;

DELETE examples

Closes a support ticket you have access to modify.

Learn more...

Learn more...

DELETE FROM linode.support.tickets;

Lifecycle Methods

Adds a file attachment to an open support ticket on your account. Use an attachment to help customer support resolve your ticket. The file attachment is submitted in the request as multipart/form-data type. Accepted file extensions include: .gif, .jpg, .jpeg, .pjpg, .pjpeg, .tif, .tiff, .png, .pdf, or .txt. OAuth scopes.

<br /> account:read_write<br />

Learn more...

EXEC linode.support.tickets.post_ticket_attachment 
@@json=
'{
"file": "{{ file }}"
}';