SoftLayer.ticket¶
Ticket Manager/helpers
license: | MIT, see LICENSE for more details. |
---|
- class SoftLayer.managers.ticket.TicketManager(client)[source]¶
Manages account Tickets
Parameters: client (SoftLayer.API.Client) – an API client instance - create_ticket(title=None, body=None, subject=None)[source]¶
Create a new ticket
Parameters: - title (string) – title for the new ticket
- body (string) – body for the new ticket
- subject (integer) – id of the subject to be assigned to the ticket
- get_ticket(ticket_id)[source]¶
Get details about a ticket
Parameters: id (integer) – the ticket ID Returns: A dictionary containing a large amount of information about the specified ticket.
- list_tickets(open_status=True, closed_status=True)[source]¶
List all tickets
Parameters: - open_status (boolean) – include open tickets
- closed_status (boolean) – include closed tickets
- resolve_ids(identifier)¶
Takes a string and tries to resolve to a list of matching ids.
What exactly ‘identifier’ can be depends on the resolvers
Parameters: identifier (string) – identifying string Returns list: