SoftLayer仮想サーバー注文のシェル
order_shell.sh
# !/bin/bash
slcli vs create \
--hostname WebAp1 --domain softlayer.com \
--datacenter tok02 \
--cpu 1 --memory 1 \
--os UBUNTU_LATEST_64 \
--billing hourly \
--public \
--postinstall https://raw.githubusercontent.com/takara9/ProvisioningScript/master/ubuntu_basic_config \
--key 350355
# --test
実行結果
$ ./order_shell.sh
This action will incur charges on your account. Continue? [y/N]: y
:.........:......................................:
: name : value :
:.........:......................................:
: id : 12195017 :
: created : 2015-09-08T16:07:57+09:00 :
: guid : 766fff1c-d777-4168-a786-4ad5adce3046 :
:.........:......................................:
サーバーリストの表示
$ slcli vs list
:..........:..........:.................:...............:............:........:
: id : hostname : primary_ip : backend_ip : datacenter : action :
:..........:..........:.................:...............:............:........:
: 12195017 : WebAp1 : ***.***.***.203 : 10.132.253.17 : tok02 : - :
:..........:..........:.................:...............:............:........:
以上