You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<description>Tickets Tickets are how SoftLayer and you communicate and resolve problems. They can be about anything from general questions, requests for upgrades, monitoring alerts, or anything else that might come up.
21
+
Viewing Tickets To start off, lets see how to go about getting tickets that already exist on our account. There are a variety of helper functions on the SoftLayer_Account service that deal with tickets, and they all work basically the same way.</description>
<description>Tickets Tickets are how SoftLayer and you communicate and resolve problems. They can be about anything from general questions, requests for upgrades, monitoring alerts, or anything else that might come up.
21
+
Viewing Tickets To start off, lets see how to go about getting tickets that already exist on our account. There are a variety of helper functions on the SoftLayer_Account service that deal with tickets, and they all work basically the same way.</description>
<p>Tickets are how SoftLayer and you communicate and resolve problems. They can be about anything from general questions, requests for upgrades, monitoring alerts, or anything else that might come up.</p>
<p>To start off, lets see how to go about getting tickets that already exist on our account. There are a variety of helper functions on the <a href="https://softlayer.github.io/reference/services/SoftLayer_Account/">SoftLayer_Account</a> service that deal with tickets, and they all work basically the same way. <a href="reference/services/SoftLayer_Account/getTickets/">SoftLayer_Account::getTickets</a> and <a href="reference/services/SoftLayer_Account/getOpenTickets/">SoftLayer_Account::getOpenTickets</a> are the most basic of these.</p>
&#34;title&#34;: &#34;Virtual Server Cancellation - 03/30/18&#34;,
48
+
&#34;totalUpdateCount&#34;: 1,
49
+
&#34;userEditableFlag&#34;: true
50
+
},</pre></div>
51
+
<p>From there, the <a href="https://softlayer.github.io/reference/datatypes/SoftLayer_Ticket/">SoftLayer_Ticket</a> datatype has quite a few fields we might be interested in. Here is how you would get the updates for the ticket, along with whatever hardware was attached.</p>
<p>Reminder: When requesting a LOCAL property, the result will remove all local properties not specified. When requesting a RELATIONAL property, that property, along with any of its default properties, will be added</p>
&#34;entry&#34;: &#34;A cancellation request has been submitted for the following:\nServer: fmirdal13.insomnia.com\nPublic IP: 169.60.129.46\nPrivate IP: 10.186.96.230\nServers and services must be cancelled prior to Apr 03, 2018 23:59:59 CDT.\n=================\nCustomer Note:\n&#34;,
76
+
&#34;id&#34;: 358332963,
77
+
&#34;ticketId&#34;: 58043007
78
+
}
79
+
]
80
+
},</pre></div>
81
+
<p>To get information about just one ticket, the <a href="https://softlayer.github.io/reference/services/SoftLayer_Ticket/getObject">SoftLayer_Ticket::getObject</a> method would be used.</p>
<p>There are a few create options in the SoftLayer_Ticket service, the only difference being which internal group they get routed to, and should be obvious based on the method name which one you need. If in doubt, use the standard ticket, <a href="reference/services/SoftLayer_Ticket/createStandardTicket/">SoftLayer_Ticket::createStandardTicket</a></p>
86
+
87
+
<p>The bare minimum to create a ticket is the following command:</p>
88
+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">curl -u $SL_USER:$SL_APIKEY -X POST -H &#34;Accept: */*&#34; -H &#34;Accept-Encoding: gzip, deflate, compress&#34; -d &#39;{&#34;parameters&#34;: [{&#34;subjectId&#34;: 1021}, &#34;Content of the ticket goes here&#34;]}&#39; &#39;https://api.softlayer.com/rest/v3.1/SoftLayer_Ticket/createStandardTicket.json&#39;</pre></div>
89
+
<p>The result you get back will be a ticket object. <a href="https://softlayer.github.io/python/create_ticket/">This example</a> has some information about which ticket subjects match up with which Ids. The whole list can be retrieved with this call.</p>
<p>The <code>parameters</code> array passed into the createStandardTicket method matches the order shown in the documentation for that method.</p>
92
+
93
+
<p>Another example</p>
94
+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">curl -u $SL_USER:$SL_APIKEY -X POST -H &#34;Accept: */*&#34; -H &#34;Accept-Encoding: gzip, deflate, compress&#34; -d &#39;{&#34;parameters&#34;: [{&#34;subjectId&#34;: 1021, &#34;title&#34;: &#34;Test API Ticket&#34;}, &#34;Content of the ticket goes here&#34;, 305250,&#34;FakePass&#34;,&#34;Test&#34;,22,&#34;HARDWARE&#34;]}&#39; &#39;https://api.softlayer.com/rest/v3.1/SoftLayer_Ticket/createStandardTicket.json&#39;</pre></div>
<p>Once a ticket is created, you may want to update it to respond to another update, or add more information. This is done through the <a href="https://softlayer.github.io/reference/services/SoftLayer_Ticket/addUpdate/">SoftLayer_Ticket::addUpdate</a> method.</p>
98
+
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">curl -u $SL_USER:$SL_APIKEY -X POST -H &#34;Accept: */*&#34; -H &#34;Accept-Encoding: gzip, deflate, compress&#34; -d &#39;{&#34;parameters&#34;: [{&#34;entry&#34;: &#34;Testing updates&#34;}]}&#39; &#39;https://api.softlayer.com/rest/v3.1/SoftLayer_Ticket/&lt;TICKET ID YOU WANT TO UDPATE&gt;/addUpdate.json&#39;</pre></div>
<p><a href="https://softlayer.github.io/reference/services/SoftLayer_Ticket/addAttachedFile/">SoftLayer_Ticket::addAttachedFile</a> is useful when you need to add a screenshot, PDF, or something else thats not plain text to a ticket.</p>
104
+
105
+
<p>Our ticket ID for this example is 58504963.</p>
106
+
107
+
<blockquote>
108
+
<p><em>NOTE</em> the <code>data</code> field MUST be base64 encoded, which can be tricky to do in bash. The base64 string needs to be enclosed with &ldquo;&rdquo;, but bash needs the $(base64 <file>) bit to be escaped from the &ldquo; string.</p>
<p>For the best response from Support, you should attach any relevant hardware or virtual guests to the ticket, so Support knows which servers you are specifically talking about.</p>
114
+
115
+
<p>There are different methods if you want to attach a bare metal or virtual server, but they behave the same.</p>
<description><p>SoftLayer Object Storage is built from <a href="https://docs.openstack.org/swift/latest/">Open Stack Swift</a></p>
0 commit comments