SoftLayer Ticket::createCancelServiceTicket
From SoftLayer Development Network Wiki
createCancelServiceTicket is a member of the SoftLayer_Ticket service.
Contents |
Overview
A cancel service request creates a sales ticket. The hardware ID parameter is required to determine which server is to be cancelled.
The reason parameter could be from the list below:
- "No longer needed"
- "Business closing down"
- "Server / Upgrade Costs"
- "Migrating to larger server"
- "Migrating to smaller server"
- "Migrating to a different SoftLayer datacenter"
- "Network performance / latency"
- "Support response / timing"
- "Sales process / upgrades"
- "Moving to competitor"
The content parameter describes further the reason for cancelling service.
User Access
Users wishing to execute createCancelServiceTicket service must have the Add / Edit Tickets and View Tickets permissions assigned to their account.
Return Type
createCancelServiceTicket returns the SoftLayer_Ticket data type.
Headers
Required Headers
createCancelServiceTicket requires the following headers:
Parameters
createCancelServiceTicket takes the following parameters:
hardwareId
Hardware ID of server to cancel service.
- Type: integer
reason
Cancellation reason.
- Type: string
content
Cancellation content for ticket. A brief description explaining the cancellation reason.
- Type: string
Error Handling
createCancelServiceTicket throws the following exceptions:
- SoftLayer_Exception
- Throws the exception "Hardware ID must be provided." when hardware id parameter is not provided.
- SoftLayer_Exception
- Throws the exception "Cancellation reason must be provided." when reason parameter is not provided.
- SoftLayer_Exception
- Throws the exception "Cancellation content description must be provided." when content parameter is not provided.
- SoftLayer_Exception
- Throws the exception "You do not have permission to this service." when a portal user does not have permission to cancel service.

