SoftLayer Ticket::createStandardTicket

From SoftLayer Development Network Wiki

Jump to: navigation, search

createStandardTicket is a member of the SoftLayer_Ticket service.

Contents

Overview

Create a standard support ticket. Use a standard support ticket if you need to work out a problem related to SoftLayer's hardware, network , or services. If you require SoftLayer's assistance managing your server or content then please open an administrative ticket.

Support tickets may only be created in the open state. The SoftLayer API defaults new ticket properties userEditableFlag to true, accountId to the id of the account that your API user belongs to, and statusId to 1001 (or "open"). You may not assign your new to ticket to users that your API user does not have access to.

Once your ticket is created it is placed in a queue for SoftLayer employees to work. As they update the ticket new SoftLayer_Ticket_Update entries are added to the ticket object.

User Access

Users wishing to execute createStandardTicket service must have the Add / Edit Tickets and View Tickets permissions assigned to their account.

Return Type

createStandardTicket returns the SoftLayer_Ticket data type.

Headers

Required Headers

createStandardTicket requires the following headers:

Parameters

createStandardTicket takes the following parameters:

templateObject

A skeleton SoftLayer_Ticket object containing the data of the ticket you wish to submit.



contents

The contents of the first update of the ticket. This is typically the ticket's problem description.

  • Type: string



attachedHardwareId

An optional internal identifier of a piece of hardware you wish to attach to this ticket. If you attach hardware to a ticket then you must also specify a root or admin password.

  • Type: integer



rootPassword

The root password of the hardware you wish to attach to this ticket. Providing your administrative password can significantly improve your ticket response time.

  • Type: string



controlPanelPassword

An optional administrative password to a hosting control panel running on your server, if your server has one installed.

  • Type: string



accessPort

The TCP port on your server that SoftLayer must use to access your operating system. This is typically 22 for SSH and 3389 for Remote Desktop.

  • Type: string



attachedFiles

An array of files to attach to a ticket upon creation.

Error Handling

createStandardTicket throws the following exceptions:

  • SoftLayer_Exception
Throw the exception "Please provide a subject when creating a standard support ticket." If the $templateObject parameter does not have a subjectId set. See SoftLayer_Ticket_Subject for more information.
  • SoftLayer_Exception
Throw the exception "Please provide ticket contents." if no contents are provided to the method.
  • SoftLayer_Exception
Throw the exception "Please provide a root/admin password." if a hardware id was passed to the method, but a root password wasn't.
Personal tools