addAttachedHardware


SoftLayer_Ticket::addAttachedHardware

Attach hardware to a ticket.

Overview

Attach the given hardware to a SoftLayer ticket. A hardware attachment provides an easy way for SoftLayer’s employees to quickly look up your hardware records in the case of hardware-specific issues.


Parameters

Name Type Description
hardwareId integer The internal identifier of the hardware record to attach.

Required Headers

  • authenticate
  • SoftLayer_TicketInitParameters

Optional Headers

  • SoftLayer_TicketObjectMask
  • SoftLayer_ObjectMask

Return Values

Associated Methods

Error Handling

  • SoftLayer_Exception

Throw the exception “Unable to attach null hardware to this ticket.” if no hardware identifier is provided.

  • SoftLayer_Exception

Throw the exception “This hardware is already attached to this ticket.” if the given hardware is already attached to this ticket.

  • SoftLayer_Exception

Throw the exception “You may not attach this hardware to this ticket.” if the user making the API call does not have permission to use the given hardware.

  • SoftLayer_Exception

Throw the exception “Unable to attach hardware to this ticket.” if the API is unable to attach the given hardware to this ticket.