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
Copy file name to clipboardExpand all lines: content/article/understanding-ordering.md
+77-3Lines changed: 77 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ In version 5.4.0 of [softlayer-python](https://github.com/softlayer/softlayer-py
22
22
* Place an order programmatically using Python.
23
23
24
24
25
-
## Build an order
25
+
## [Build an order](#build_order) {#build_order .anchor-link}
26
26
27
27
### Step 1: Understand the order structure
28
28
@@ -352,7 +352,7 @@ This action will incur charges on your account. Continue? [y/N]: y
352
352
We now have ordered a bare metal server!
353
353
354
354
355
-
## Place an order programmatically with Python
355
+
## [Place an order programmatically with Python](#with_python) {#with_python .anchor-link}
356
356
357
357
Now that we have used the CLI to build an order with the package and items that we want, we can convert this order to Python code and programmatically place the order.
## [Step by Step Example with ibmcloud CLI](#step_by_step) {#step_by_step .anchor-link}
619
619
These commands will use the `ibmcloud sl` command, but it works the same way as `slcli`. The only big difference is `ibmcloud` requires Items be a comma seperated list, where `slcli` requires them be space seperated.
620
620
621
621
Here we want to order a Cascade Lake Dual Xeon server.
@@ -696,4 +696,78 @@ ibmcloud sl order place DUAL_INTEL_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_FAMILY_4
Most of the information you need to build an API order is on the order form already. The only thing you need to know is that the [Intel Xeon 8260](https://www.intel.com/content/www/us/en/products/sku/192474/intel-xeon-platinum-8260-processor-35-75m-cache-2-40-ghz/specifications.html?wapkw=8260) is a Cascade Lake class of processor, so when you look for packages, that is the keyword you will search for.
709
+
710
+
1. Find the package:
711
+
```bash
712
+
$> slcli order package-list | grep -i cascade
713
+
1105 Dual Intel Xeon Processor Cascade Lake Scalable Family (4 Drives) DUAL_INTEL_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_FAMILY_4_DRIVES BARE_METAL_CPU
714
+
1107 Dual Intel Xeon Processor Cascade Lake Scalable Family (12 Drives) DUAL_INTEL_XEON_PROC_CASCADE_LAKE_SCALABLE_FAMILY_12_DRIVES BARE_METAL_CPU
715
+
1111 Cascade Lake for VMware vSAN QualifiedNode (12 Drives) 2U_CASCADE_LAKE_FOR_VMWARE_VSAN_QUALIFIEDNODE BARE_METAL_CPU
716
+
1113 Quad Xeon Processor Cascade Lake Scalable Family (24 Drives) 2U_QUAD_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_FAMILY_24_DRIVES BARE_METAL_CPU
717
+
2670 Cascade Lake for VMware vSAN QualifiedNode (24 Drives) 2U_VMWARE_VSAN_QUALIFIEDNODE BARE_METAL_CPU
718
+
2692 Dual Xeon Proc Cascade Lake Multi-GPU Family (24 Drives) 4U_DUAL_XEON_PROC_CASCADE_LAKE_MULTIGPU_FAMILY_24_DRIVES BARE_METAL_CPU
719
+
2708 CVAD Dual Intel Xeon Processor Cascade Lake Scalable Family (12 Drives) CVAD_DUAL_INTEL_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_12_DRIVES BARE_METAL_CPU
720
+
2710 CVAD Dual Intel Xeon Processor Cascade Lake Scalable Family (4 Drives) CVAD_DUAL_INTEL_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_4_DRIVES BARE_METAL_CPU
721
+
2796 Cascade Lake for VMware vSAN QualifiedNode (4 Drives) 1U_CASCADE_LAKE_FOR_VMWARE_VSAN_QUALIFIEDNODE BARE_METAL_CPU
722
+
2866 Oracle Application Cluster Cascade Lake Scalable Family (4 Drives) ORACLE_APPLICATION_CLUSTER_CASCADE_LAKE_SCALABLE_FAMILY_4_DRIVES BARE_METAL_CPU
We want the `2U_QUAD_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_FAMILY_24_DRIVES` package here since it has the `Quad Processor` and `Up to 24 Drives` mentioned on the order form.
728
+
729
+
2. Find all the items you need.
730
+
```bash
731
+
$> slcli order item-list 2U_QUAD_XEON_PROCESSOR_CASCADE_LAKE_SCALABLE_FAMILY_24_DRIVES
To make this into a pure API call, use the output of `slcli -vvv order place` and the slcli will convert the item keynames into the required priceIds needed for [SoftLayer_Product_Order::placeOrder()](https://sldn.softlayer.com/reference/services/SoftLayer_Product_Order/placeOrder/)
Copy file name to clipboardExpand all lines: content/go/goroutines.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Goroutines, Pagination and the SoftLayer API"
3
3
description: "Describes some ways to implement concurrency in your golang applications when interacting with the SoftLayer API. A few examples and explanation of softlayer-go's features."
0 commit comments