{"action":"closed","issue":{"url":"https://api.github.com/repos/softlayer/softlayer-python/issues/667","repository_url":"https://api.github.com/repos/softlayer/softlayer-python","labels_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/667/comments","events_url":"https://api.github.com/repos/softlayer/softlayer-python/issues/667/events","html_url":"https://github.com/softlayer/softlayer-python/issues/667","id":122084432,"number":667,"title":"Ticket, attach hardware/virtual machine","user":{"login":"underscorephil","id":595591,"avatar_url":"https://avatars.githubusercontent.com/u/595591?v=3","gravatar_id":"","url":"https://api.github.com/users/underscorephil","html_url":"https://github.com/underscorephil","followers_url":"https://api.github.com/users/underscorephil/followers","following_url":"https://api.github.com/users/underscorephil/following{/other_user}","gists_url":"https://api.github.com/users/underscorephil/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorephil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorephil/subscriptions","organizations_url":"https://api.github.com/users/underscorephil/orgs","repos_url":"https://api.github.com/users/underscorephil/repos","events_url":"https://api.github.com/users/underscorephil/events{/privacy}","received_events_url":"https://api.github.com/users/underscorephil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/softlayer/softlayer-python/labels/CLI","name":"CLI","color":"0b02e1"},{"url":"https://api.github.com/repos/softlayer/softlayer-python/labels/New%20Feature","name":"New Feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-14T16:58:17Z","updated_at":"2016-04-15T18:02:11Z","closed_at":"2016-04-15T18:02:10Z","body":"Add support to add/list/remove ticket to device relationships\r\n\r\n# CLI\r\n```\r\nslcli ticket create --title='plz halp' --subject-id=$SUBJECTID --body='me' --device=1234\r\n```\r\nWe may have to add in switches to differentiate hardware/vs\r\n```\r\nslcli ticket create --title='plz halp' --subject-id=$SUBJECTID --body='me' --hardware=1234\r\nslcli ticket create --title='plz halp' --subject-id=$SUBJECTID --body='me' --virtual=1234\r\n```\r\n# Referenced methods\r\n## Virtual\r\nhttp://sldn.softlayer.com/reference/services/SoftLayer_Ticket/addAttachedVirtualGuest\r\nhttp://sldn.softlayer.com/reference/services/SoftLayer_Ticket/removeAttachedVirtualGuest\r\nhttp://sldn.softlayer.com/reference/services/SoftLayer_Ticket/getAttachedVirtualGuests\r\n## Hardware\r\nhttp://sldn.softlayer.com/reference/services/SoftLayer_Ticket/addAttachedHardware\r\nhttp://sldn.softlayer.com/reference/services/SoftLayer_Ticket/removeAttachedHardware\r\nhttp://sldn.softlayer.com/reference/services/SoftLayer_Ticket/getAttachedHardware\r\n\r\n\r\n"}}