February 9, 2016

Creating a support ticket
Create a standard support ticket assigned to your user

Standard support tickets’ titles must be selected from a pre-determined list of ticket subjects, defined in the SoftLayer_Ticket_Subject service. The following example will output all of the Ticket Subjects:

import SoftLayer
from pprint import pprint as pp

client = SoftLayer.Client()
subjects = client['Ticket_Subject'].getAllObjects()

Once you have the Ticket Subject ID you can pass it to createStandardTicket. In the following example we are opening a ticket under the subject Hardware Firewall Question (ID 1121).

import SoftLayer
client = SoftLayer.Client()
currentUser = client['Account'].getCurrentUser()
new_ticket = {
       'subjectId': 1121,
       'assignedUserId': currentUser['id']
created_ticket = client['Ticket'].createStandardTicket(new_ticket, "Content of the ticket goes here")


We would love to hear it
Open an issue