Skip to main content

tickets

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

Overview

Nametickets
TypeResource
Idgodaddy.abuse.tickets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
closedbooleanIs this abuse ticket closed?
closedAtstring (iso-datetime)The date the abuse ticket was closed
createdAtstring (iso-datetime)The date the abuse ticket was created
domainIpstringThe domain or IP the suspected abuse was reported against
reporterstringThe shopper id of the person who reported the suspected abuse
sourcestringThe single URL or IP the suspected abuse was reported against
targetstringThe company the suspected abuse is targeting
ticketIdstringAbuse ticket ID
typestringThe type of abuse being reported

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ticket_infoselectticket_idReturn the abuse ticket data for a given ticket id
get_ticketsselecttype, closed, sourceDomainOrIp, target, createdStart, createdEnd, limit, offsetList all abuse tickets ids that match user provided filters
create_ticketinsertCreate a new abuse ticket
_get_ticketsexectype, closed, sourceDomainOrIp, target, createdStart, createdEnd, limit, offsetList all abuse tickets ids that match user provided filters

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
ticket_idstringA unique abuse ticket identifier
closedbooleanIs this abuse ticket closed?
createdEndstring (iso-datetime)The latest abuse ticket creation date to pull abuse tickets for
createdStartstring (iso-datetime)The earliest abuse ticket creation date to pull abuse tickets for
limitinteger (integer-positive)Number of abuse ticket numbers to return.
offsetinteger (integer-positive)The earliest result set record number to pull abuse tickets for
sourceDomainOrIpstring (host-name-or-ip-address)The domain name or ip address abuse originated from
targetstringThe brand/company the abuse is targeting. ie: brand name/bank name
typestringThe type of abuse.

SELECT examples

Return the abuse ticket data for a given ticket id

SELECT
closed,
closedAt,
createdAt,
domainIp,
reporter,
source,
target,
ticketId,
type
FROM godaddy.abuse.tickets
WHERE ticket_id = '{{ ticket_id }}' -- required
;

INSERT examples

Create a new abuse ticket

INSERT INTO godaddy.abuse.tickets (
data__info,
data__infoUrl,
data__intentional,
data__proxy,
data__source,
data__target,
data__type
)
SELECT
'{{ info }}',
'{{ infoUrl }}',
{{ intentional }},
'{{ proxy }}',
'{{ source }}',
'{{ target }}',
'{{ type }}'
;

Lifecycle Methods

List all abuse tickets ids that match user provided filters

EXEC godaddy.abuse.tickets._get_tickets 
@type='{{ type }}',
@closed={{ closed }},
@sourceDomainOrIp='{{ sourceDomainOrIp }}',
@target='{{ target }}',
@createdStart='{{ createdStart }}',
@createdEnd='{{ createdEnd }}',
@limit='{{ limit }}',
@offset='{{ offset }}'
;