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
<p>Version <a href="https://github.com/softlayer/softlayer-python/releases/tag/v5.4.0">5.4.0</a> of the Softlayer-python project introducted some managers and CLI functions that greatly simplify the ordering processes via the api.</p>
20
+
21
+
<p>Building a package still requires a few steps however.</p>
22
+
23
+
<h3 id="1-find-the-package-name">1. Find the package name</h3>
24
+
25
+
<pre><code>slcli order package-list
26
+
</code></pre>
27
+
28
+
<p>The most common packages are the following:</p>
<pre><code>slcli order package-locations BARE_METAL_SERVER
119
+
</code></pre>
120
+
121
+
<table>
122
+
<thead>
123
+
<tr>
124
+
<th>id</th>
125
+
<th>short name</th>
126
+
<th>description</th>
127
+
<th>keyName</th>
128
+
</tr>
129
+
</thead>
130
+
131
+
<tbody>
132
+
<tr>
133
+
<td>265592</td>
134
+
<td>ams01</td>
135
+
<td>AMS01 - Amsterdam</td>
136
+
<td>AMSTERDAM</td>
137
+
</tr>
138
+
139
+
<tr>
140
+
<td>814994</td>
141
+
<td>ams03</td>
142
+
<td>AMS03 - Amsterdam</td>
143
+
<td>AMSTERDAM03</td>
144
+
</tr>
145
+
146
+
<tr>
147
+
<td>1004997</td>
148
+
<td>che01</td>
149
+
<td>CHE01 - Chennai</td>
150
+
<td>CHENNAI</td>
151
+
</tr>
152
+
</tbody>
153
+
</table>
154
+
155
+
<p>Find the keyName for the location you want to order in. Packages may still be sold out in a location, so be on the lookout for that.</p>
156
+
157
+
<h3 id="3-items-and-categories">3. Items and Categories</h3>
158
+
159
+
<p>Every package has certain item categories that need to be included in an order. You can find these with</p>
160
+
161
+
<pre><code>slcli order category-list BARE_METAL_SERVER
162
+
</code></pre>
163
+
164
+
<p>Then find the actual items in the category.</p>
165
+
166
+
<pre><code>slcli order item-list BARE_METAL_SERVER
167
+
</code></pre>
168
+
169
+
<p>Create a list of items you want to order. If you want multiple disks (or GPU), you should have 1 item in your list per disk you want to add. Disks are attached in order that they appear on the order form.</p>
170
+
171
+
<h4 id="presets">Presets</h4>
172
+
173
+
<p>BARE_METAL_SERVER orders require a preset. These can be ordered hourly.</p>
174
+
175
+
<pre><code>slcli order preset-list BARE_METAL_SERVER
176
+
</code></pre>
177
+
178
+
<h3 id="4-getting-ready-to-order">4. Getting ready to order.</h3>
179
+
180
+
<p>The last thing to note is the &ndash;extras and &ndash;complex-type options.</p>
181
+
182
+
<p>&ndash;Extras are going to match up to things like Vlans, subnets, ssh keys etc. Basically anything in the order container that ISN&rsquo;T prices. Supported fields correstpond to the SoftLayer_Container_Product_Order data type. Needs to be valid JSON</p>
<p>&ndash;complex-type should match up with something that starts with SoftLayer_Container_Product<em>Order</em></p>
188
+
189
+
<p><a href="http://sldn.softlayer.com/reference/datatypes/SoftLayer_Container_Product_Order_Hardware_Server">SoftLayer_Container_Product_Order_Hardware_Server</a> for bare metal servers, but there are others that may need to be selected. SLDN has a complete list of all supported containers.</p>
190
+
191
+
<h3 id="5-testing-an-order">5. Testing an order.</h3>
192
+
193
+
<p>the &ndash;verify option will not actually place an order, just insure the order is mostly correct. You may still run into when actually placing the order however. Such as being unable to find IDs for ssh keys, vlans, etc, or being out of stock of an offering.</p>
194
+
195
+
<pre><code class="language-bash">slcli --really order place --verify --preset D2620V4_64GB_2X1TB_SATA_RAID_1 BARE_METAL_SERVER TORONTO \
0 commit comments