The Order cli
commands can be used to build an order for any product in the SoftLayer catalog.
The basic flow for ordering goes something like this...
- package-list
- category-list <package key name>
- item-list <package key name>
- place <package key name> <item key names> <location>
SoftLayer.CLI.order.package_list:cli
Note
* CLOUD_SERVER: These are Virtual Servers * BARE_METAL_INSTANCE: Hourly Bare Metal * BARE_METAL_SERVER: Other monthly server types * `#_PROC#_DRIVES`: Packages in this format will contain only this CPU model and Drive bays * ADDITIONAL_PRODUCTS: Additional IPs, Vlans, SSL certs and other things are in here * NETWORK_GATEWAY_APPLIANCE: Vyattas
Bluemix services listed here may still need to be ordered through the Bluemix CLI/Portal
SoftLayer.CLI.order.package_locations:cli
SoftLayer.CLI.order.category_list:cli
Shows all the available categories for a certain package, useful in finding the required categories. Categories that are required will need to have a corresponding item included with any orders
These are all the required categories for BARE_METAL_SERVER
:
$ slcli order category-list BARE_METAL_SERVER
:........................................:.......................:............:
: name : categoryCode : isRequired :
:........................................:.......................:............:
: Server : server : Y :
: Operating System : os : Y :
: RAM : ram : Y :
: Disk Controller : disk_controller : Y :
: First Hard Drive : disk0 : Y :
: Public Bandwidth : bandwidth : Y :
: Uplink Port Speeds : port_speed : Y :
: Remote Management : remote_management : Y :
: Primary IP Addresses : pri_ip_addresses : Y :
: VPN Management - Private Network : vpn_management : Y :
:........................................:.......................:............:
SoftLayer.CLI.order.item_list:cli
Shows all the prices for a given package. Collect all the items you want included on your server. Don't forget to include the required category items. If forgotten, order place
will tell you about it.
SoftLayer.CLI.order.preset_list:cli
SoftLayer.CLI.order.place:cli
Now that you have the package you want, the prices needed, and found a location, it is time to place an order.
$ slcli --really order place --preset D2620V4_64GB_2X1TB_SATA_RAID_1 BARE_METAL_SERVER TORONTO \
OS_UBUNTU_16_04_LTS_XENIAL_XERUS_64_BIT \
BANDWIDTH_0_GB_2 \
1_GBPS_PRIVATE_NETWORK_UPLINK \
REBOOT_KVM_OVER_IP 1_IP_ADDRESS \
UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT \
--extras '{"hardware": [{"hostname" : "testOrder", "domain": "cgallo.com"}]}' \
--complex-type SoftLayer_Container_Product_Order_Hardware_Server
$ slcli order place --billing hourly CLOUD_SERVER DALLAS13 \
GUEST_CORES_4 \
RAM_16_GB \
REBOOT_REMOTE_CONSOLE \
1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS \
BANDWIDTH_0_GB_2 \
1_IP_ADDRESS \
GUEST_DISK_100_GB_SAN \
OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI \
MONITORING_HOST_PING \
NOTIFICATION_EMAIL_AND_TICKET \
AUTOMATED_NOTIFICATION \
UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT \
NESSUS_VULNERABILITY_ASSESSMENT_REPORTING \
--extras '{"virtualGuests": [{"hostname": "test", "domain": "softlayer.com"}]}' \
--complex-type SoftLayer_Container_Product_Order_Virtual_Guest
SoftLayer.CLI.order.quote:cli
SoftLayer.CLI.order.quote_list:cli
SoftLayer.CLI.order.quote_detail:cli
SoftLayer.CLI.order.place_quote:cli