SlideShare a Scribd company logo
コマンドラインで始める
SoftLayer
NAKAJIMA Takaaki,

May 23, 2014
SoftLayer どう触っていますか?
• ウェブ
• 旧ポータル
• 新ポータル
• モバイル
• CLI
• REST, SOAP, XML-RPC
• sl コマンド
• API: Python, Ruby, C#, …
REST
$ curl "https://${SL_USERNAME}:${SL_API_KEY}
@api.softlayer.com/rest/v3/SoftLayer_Account.xml?
objectMask=firstName;lastName;id"



<?xml version="1.0"?>

<root>

<firstName>Takaaki</firstName>

<id>XXXXXX</id>

<lastName>Nakajima</lastName>

</root>
Python CLI
sl コマンド v3.1.0
Compute:

bmc Bare Metal Cloud

cci Cloud Compute Instances

image Manages compute and
flex images

metadata Get details about this
machine. Also available with 'my'
and 'meta'

server Hardware Bare metal
servers

sshkey Manage SSH keys on your
account

vs Virtual Servers
(formerly CCIs)



Networking:

cdn Content Delivery
Network service management

dns Domain Name System

firewall Firewall rule and
security management

globalip Global IP address
management

messaging Message Queue Service

rwhois RWhoIs operations

ssl Manages SSL

subnet Subnet ordering and
management

vlan Manage VLANs on your
account



Storage:

iscsi View iSCSI details

nas View NAS details

snapshot iSCSI snapshots
General:

config View and edit
configuration for this tool

ticket Manage account tickets

summary Display an overall
summary of your account

help Show help
4
$ sl help cdn

usage: sl cdn [<command>] [<args>...] [options]



Manage CDN accounts and configuration



The available commands are:

detail Show details for a CDN account

list List CDN accounts

load Cache one or more files on all edge nodes

origin-add Add an origin pull mapping

origin-list Show origin pull mappings on a CDN account

origin-remove Remove an origin pull mapping

purge Purge one or more cached files from all
edge nodes
$ sl help snapshot

usage: sl snapshot [<command>] [<args>...] [options]



Manage, order, delete iSCSI snapshots



The available commands are:

cancel Cancel an iSCSI snapshot

create Create a snapshot of given iSCSI volume

create-space Orders space for storing snapshots

list List snpshots of given iSCSI

restore-volume Restores volume from existing snapshot



For several commands <identifier> will be asked for.This
can be the id

of iSCSI volume or iSCSI snapshot.
$ sl help ticket

usage: sl ticket [<command>] [<args>...] [options]



Manages account tickets



The available commands are:

create Create a new ticket

detail Output details about an ticket

list List tickets

update Update an existing ticket

subjects List the subject IDs that can be used for
ticket creation

summary Give summary info about tickets
API Python Client
$ python

from SoftLayer import TicketManager, Client

client = Client()

ticket = TicketManager(client)

>>> for t in ticket.list_tickets():

print("%d %s %s" % (t['id'], t['lastEditDate'], t['title']))



9533798 2014-04-16T08:08:32+09:00 Virtual Server Cancellation -
04/15/14

9533682 2014-04-16T11:07:15+09:00 MONITORING: Network Monitor Alert

9432082 2014-05-09T19:47:44+09:00 NOTIFICATION: Object Storage
Service and the Heartbleed OpenSSL Vulnerability - Global -
04/09/2014

9397692 2014-04-09T15:07:36+09:00 Security Issue - Impact of
CVE-2014-0160 in SLayer

8988684 2014-03-15T12:46:28+09:00 Cloud Instance Cancellation -
03/13/14

8896850 2014-03-13T10:31:31+09:00 Introducing New Product Names

8581498 2014-02-15T05:27:15+09:00 MONITORING: Network Monitor Alert
8
サンプル

料金表を生成してみる
$ sl vs create --test --hostname=test --domain=example.com 

—cpu=2 --memory=2048 --os=CENTOS_LATEST --hourly

:.......................................................:......:

: Item : cost :

:.......................................................:......:

: 2 x 2.0 GHz Cores : 0.04 :

: 2 GB : 0.04 :

: CentOS 6.x - Minimal Install (64 bit) : 0.00 :

(snipped)

: Total hourly cost : 0.08 :

:.......................................................:......:





https://github.com/ryumei/softlayer-utility/blob/master/sl-vs-
prices.sh

9
料金表生成スクリプト
OS CPU Memory Unit Price
CentOS 6.x - Minimal Install (64 bit) 1 1024 hourly 0.04
CentOS 6.x - Minimal Install (64 bit) 1 2048 hourly 0.06
CentOS 6.x - Minimal Install (64 bit) 1 4096 hourly 0.1
CentOS 6.x - Minimal Install (64 bit) 1 6144 hourly 0.14
CentOS 6.x - Minimal Install (64 bit) 1 8192 hourly 0.17
CentOS 6.x - Minimal Install (64 bit) 1 12288 hourly 0.23
CentOS 6.x - Minimal Install (64 bit) 1 16384 hourly 0.29
CentOS 6.x - Minimal Install (64 bit) 1 32768 hourly 0.47
CentOS 6.x - Minimal Install (64 bit) 1 49152 hourly 0.61
CentOS 6.x - Minimal Install (64 bit) 1 65536 hourly 0.75
他にも
• Object Storage Uploader

https://sldn.softlayer.com/blog/ashaw/
Object-Storage-Uploader
• Configuration Finder

https://sldn.softlayer.com/blog/
hansKristian/Configuration-Finder-‒-
Simplify-Your-Server-Search
まとめ
• CLI, Python API をはじめ、

一通りの利用手段は用意されています。
• XML RPC, REST を扱うことができるのなら、

いかようにも。
• リファレンス

SLDN https://sldn.softlayer.com

KnowledgeLayer http://knowledgelayer.softlayer.com

Python API Reference http://softlayer-
python.readthedocs.org/en/latest/index.html
12

More Related Content

What's hot

IoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideasIoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideas
Jean-Baptiste Trystram
 
Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?
Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?
Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?
SegFaultConf
 
Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...
Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...
Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...
Fermin Galan
 
Rsa
RsaRsa
Oracles
OraclesOracles
Oracles
Gene Leybzon
 
Bletchley
BletchleyBletchley
Bletchley
Diogo Mónica
 

What's hot (6)

IoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideasIoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideas
 
Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?
Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?
Robert Pankowecki - Czy sprzedawcy SQLowych baz nas oszukali?
 
Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...
Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...
Orion Context Broker NGSI-v2 Overview for Developers That Already Know NGSI-v...
 
Rsa
RsaRsa
Rsa
 
Oracles
OraclesOracles
Oracles
 
Bletchley
BletchleyBletchley
Bletchley
 

Viewers also liked

BBS TP
BBS TPBBS TP
Прозументов Антон "Массовость и скорость"
Прозументов Антон "Массовость и скорость"Прозументов Антон "Массовость и скорость"
Прозументов Антон "Массовость и скорость"
Высшая школа маркетинга и развития бизнеса НИУ ВШЭ
 
Маркетинговая активность региональных фитнес клубов
Маркетинговая активность региональных фитнес клубовМаркетинговая активность региональных фитнес клубов
Маркетинговая активность региональных фитнес клубов
Высшая школа маркетинга и развития бизнеса НИУ ВШЭ
 
"Душевные продажи", мастер-класс
"Душевные продажи",  мастер-класс"Душевные продажи",  мастер-класс
Kasih allah
Kasih allahKasih allah
Kasih allah
audhie senas
 
Фитнес-индустрия
Фитнес-индустрия Фитнес-индустрия
н.галкина нейрокоммуникации как новый уровень диалога 14.02
н.галкина нейрокоммуникации как новый уровень диалога 14.02н.галкина нейрокоммуникации как новый уровень диалога 14.02
н.галкина нейрокоммуникации как новый уровень диалога 14.02
Высшая школа маркетинга и развития бизнеса НИУ ВШЭ
 
а.шестакова нейромаркетинг 14_02_2017_
а.шестакова нейромаркетинг 14_02_2017_а.шестакова нейромаркетинг 14_02_2017_
а.шестакова нейромаркетинг 14_02_2017_
Высшая школа маркетинга и развития бизнеса НИУ ВШЭ
 
.Sla 3
.Sla 3.Sla 3
.Sla 3
hinosbadi
 

Viewers also liked (11)

BBS TP
BBS TPBBS TP
BBS TP
 
"Душевные продажи", мастер-класс
"Душевные продажи",  мастер-класс"Душевные продажи",  мастер-класс
"Душевные продажи", мастер-класс
 
Прозументов Антон "Массовость и скорость"
Прозументов Антон "Массовость и скорость"Прозументов Антон "Массовость и скорость"
Прозументов Антон "Массовость и скорость"
 
Маркетинговая активность региональных фитнес клубов
Маркетинговая активность региональных фитнес клубовМаркетинговая активность региональных фитнес клубов
Маркетинговая активность региональных фитнес клубов
 
"Душевные продажи", мастер-класс
"Душевные продажи",  мастер-класс"Душевные продажи",  мастер-класс
"Душевные продажи", мастер-класс
 
Игорь Колынин
Игорь КолынинИгорь Колынин
Игорь Колынин
 
Kasih allah
Kasih allahKasih allah
Kasih allah
 
Фитнес-индустрия
Фитнес-индустрия Фитнес-индустрия
Фитнес-индустрия
 
н.галкина нейрокоммуникации как новый уровень диалога 14.02
н.галкина нейрокоммуникации как новый уровень диалога 14.02н.галкина нейрокоммуникации как новый уровень диалога 14.02
н.галкина нейрокоммуникации как новый уровень диалога 14.02
 
а.шестакова нейромаркетинг 14_02_2017_
а.шестакова нейромаркетинг 14_02_2017_а.шестакова нейромаркетинг 14_02_2017_
а.шестакова нейромаркетинг 14_02_2017_
 
.Sla 3
.Sla 3.Sla 3
.Sla 3
 

Similar to コマンドラインで始める SoftLayer (May 23, 2014)

Pycon - Python for ethical hackers
Pycon - Python for ethical hackers Pycon - Python for ethical hackers
Pycon - Python for ethical hackers
Mohammad Reza Kamalifard
 
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
HostedbyConfluent
 
Build your own private openstack cloud
Build your own private openstack cloudBuild your own private openstack cloud
Build your own private openstack cloud
NUTC, imac
 
Strata London 2018: Multi-everything with Apache Pulsar
Strata London 2018:  Multi-everything with Apache PulsarStrata London 2018:  Multi-everything with Apache Pulsar
Strata London 2018: Multi-everything with Apache Pulsar
Streamlio
 
以Device Shadows與Rules Engine串聯實體世界
以Device Shadows與Rules Engine串聯實體世界以Device Shadows與Rules Engine串聯實體世界
以Device Shadows與Rules Engine串聯實體世界
Amazon Web Services
 
Advanced RingCentral API Use Cases
Advanced RingCentral API Use CasesAdvanced RingCentral API Use Cases
Advanced RingCentral API Use Cases
Byrne Reese
 
February 2016 Webinar Series - Best Practices for IoT Security in the Cloud
February 2016 Webinar Series - Best Practices for IoT Security in the CloudFebruary 2016 Webinar Series - Best Practices for IoT Security in the Cloud
February 2016 Webinar Series - Best Practices for IoT Security in the Cloud
Amazon Web Services
 
Keystone - Openstack Identity Service
Keystone - Openstack Identity Service Keystone - Openstack Identity Service
Keystone - Openstack Identity Service
Prasad Mukhedkar
 
DEF CON 23 - Sean - metcalf - red vs blue ad attack and defense
DEF CON 23 - Sean - metcalf - red vs blue ad attack and defenseDEF CON 23 - Sean - metcalf - red vs blue ad attack and defense
DEF CON 23 - Sean - metcalf - red vs blue ad attack and defense
Felipe Prado
 
HashiTLS Demystifying Security Certs
HashiTLS Demystifying Security CertsHashiTLS Demystifying Security Certs
HashiTLS Demystifying Security Certs
Mitchell Pronschinske
 
Three Lessons about Gatling and Microservices
Three Lessons about Gatling and MicroservicesThree Lessons about Gatling and Microservices
Three Lessons about Gatling and Microservices
Dragos Manolescu
 
Best Practices for IoT Security in the Cloud
Best Practices for IoT Security in the CloudBest Practices for IoT Security in the Cloud
Best Practices for IoT Security in the Cloud
Amazon Web Services
 
Best Practices of IoT in the Cloud
Best Practices of IoT in the CloudBest Practices of IoT in the Cloud
Best Practices of IoT in the Cloud
Amazon Web Services
 
Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?
Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?
Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?
Julien Vermillard
 
Hunting for APT in network logs workshop presentation
Hunting for APT in network logs workshop presentationHunting for APT in network logs workshop presentation
Hunting for APT in network logs workshop presentation
OlehLevytskyi1
 
The Real World - Plugging the Enterprise Into It (nodejs)
The Real World - Plugging  the Enterprise Into It (nodejs)The Real World - Plugging  the Enterprise Into It (nodejs)
The Real World - Plugging the Enterprise Into It (nodejs)
Aman Kohli
 
Kerberos survival guide SPS Kansas City
Kerberos survival guide SPS Kansas CityKerberos survival guide SPS Kansas City
Kerberos survival guide SPS Kansas City
J.D. Wade
 
Cloud.ca and CloudOps cs_auth
Cloud.ca and CloudOps cs_auth Cloud.ca and CloudOps cs_auth
Cloud.ca and CloudOps cs_auth
Ian Rae
 
Best Practices of IoT Security in the Cloud
Best Practices of IoT Security in the CloudBest Practices of IoT Security in the Cloud
Best Practices of IoT Security in the Cloud
Amazon Web Services
 
DBA Fundamentals Group: Continuous SQL with Kafka and Flink
DBA Fundamentals Group: Continuous SQL with Kafka and FlinkDBA Fundamentals Group: Continuous SQL with Kafka and Flink
DBA Fundamentals Group: Continuous SQL with Kafka and Flink
Timothy Spann
 

Similar to コマンドラインで始める SoftLayer (May 23, 2014) (20)

Pycon - Python for ethical hackers
Pycon - Python for ethical hackers Pycon - Python for ethical hackers
Pycon - Python for ethical hackers
 
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
 
Build your own private openstack cloud
Build your own private openstack cloudBuild your own private openstack cloud
Build your own private openstack cloud
 
Strata London 2018: Multi-everything with Apache Pulsar
Strata London 2018:  Multi-everything with Apache PulsarStrata London 2018:  Multi-everything with Apache Pulsar
Strata London 2018: Multi-everything with Apache Pulsar
 
以Device Shadows與Rules Engine串聯實體世界
以Device Shadows與Rules Engine串聯實體世界以Device Shadows與Rules Engine串聯實體世界
以Device Shadows與Rules Engine串聯實體世界
 
Advanced RingCentral API Use Cases
Advanced RingCentral API Use CasesAdvanced RingCentral API Use Cases
Advanced RingCentral API Use Cases
 
February 2016 Webinar Series - Best Practices for IoT Security in the Cloud
February 2016 Webinar Series - Best Practices for IoT Security in the CloudFebruary 2016 Webinar Series - Best Practices for IoT Security in the Cloud
February 2016 Webinar Series - Best Practices for IoT Security in the Cloud
 
Keystone - Openstack Identity Service
Keystone - Openstack Identity Service Keystone - Openstack Identity Service
Keystone - Openstack Identity Service
 
DEF CON 23 - Sean - metcalf - red vs blue ad attack and defense
DEF CON 23 - Sean - metcalf - red vs blue ad attack and defenseDEF CON 23 - Sean - metcalf - red vs blue ad attack and defense
DEF CON 23 - Sean - metcalf - red vs blue ad attack and defense
 
HashiTLS Demystifying Security Certs
HashiTLS Demystifying Security CertsHashiTLS Demystifying Security Certs
HashiTLS Demystifying Security Certs
 
Three Lessons about Gatling and Microservices
Three Lessons about Gatling and MicroservicesThree Lessons about Gatling and Microservices
Three Lessons about Gatling and Microservices
 
Best Practices for IoT Security in the Cloud
Best Practices for IoT Security in the CloudBest Practices for IoT Security in the Cloud
Best Practices for IoT Security in the Cloud
 
Best Practices of IoT in the Cloud
Best Practices of IoT in the CloudBest Practices of IoT in the Cloud
Best Practices of IoT in the Cloud
 
Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?
Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?
Iot Conference Berlin M2M,IoT, device management: one protocol to rule them all?
 
Hunting for APT in network logs workshop presentation
Hunting for APT in network logs workshop presentationHunting for APT in network logs workshop presentation
Hunting for APT in network logs workshop presentation
 
The Real World - Plugging the Enterprise Into It (nodejs)
The Real World - Plugging  the Enterprise Into It (nodejs)The Real World - Plugging  the Enterprise Into It (nodejs)
The Real World - Plugging the Enterprise Into It (nodejs)
 
Kerberos survival guide SPS Kansas City
Kerberos survival guide SPS Kansas CityKerberos survival guide SPS Kansas City
Kerberos survival guide SPS Kansas City
 
Cloud.ca and CloudOps cs_auth
Cloud.ca and CloudOps cs_auth Cloud.ca and CloudOps cs_auth
Cloud.ca and CloudOps cs_auth
 
Best Practices of IoT Security in the Cloud
Best Practices of IoT Security in the CloudBest Practices of IoT Security in the Cloud
Best Practices of IoT Security in the Cloud
 
DBA Fundamentals Group: Continuous SQL with Kafka and Flink
DBA Fundamentals Group: Continuous SQL with Kafka and FlinkDBA Fundamentals Group: Continuous SQL with Kafka and Flink
DBA Fundamentals Group: Continuous SQL with Kafka and Flink
 

Recently uploaded

BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))
shivani5543
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
Madan Karki
 

Recently uploaded (20)

BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
 

コマンドラインで始める SoftLayer (May 23, 2014)

  • 2. SoftLayer どう触っていますか? • ウェブ • 旧ポータル • 新ポータル • モバイル • CLI • REST, SOAP, XML-RPC • sl コマンド • API: Python, Ruby, C#, …
  • 3. REST $ curl "https://${SL_USERNAME}:${SL_API_KEY} @api.softlayer.com/rest/v3/SoftLayer_Account.xml? objectMask=firstName;lastName;id"
 
 <?xml version="1.0"?>
 <root>
 <firstName>Takaaki</firstName>
 <id>XXXXXX</id>
 <lastName>Nakajima</lastName>
 </root>
  • 4. Python CLI sl コマンド v3.1.0 Compute:
 bmc Bare Metal Cloud
 cci Cloud Compute Instances
 image Manages compute and flex images
 metadata Get details about this machine. Also available with 'my' and 'meta'
 server Hardware Bare metal servers
 sshkey Manage SSH keys on your account
 vs Virtual Servers (formerly CCIs)
 
 Networking:
 cdn Content Delivery Network service management
 dns Domain Name System
 firewall Firewall rule and security management
 globalip Global IP address management
 messaging Message Queue Service
 rwhois RWhoIs operations
 ssl Manages SSL
 subnet Subnet ordering and management
 vlan Manage VLANs on your account
 
 Storage:
 iscsi View iSCSI details
 nas View NAS details
 snapshot iSCSI snapshots General:
 config View and edit configuration for this tool
 ticket Manage account tickets
 summary Display an overall summary of your account
 help Show help 4
  • 5. $ sl help cdn
 usage: sl cdn [<command>] [<args>...] [options]
 
 Manage CDN accounts and configuration
 
 The available commands are:
 detail Show details for a CDN account
 list List CDN accounts
 load Cache one or more files on all edge nodes
 origin-add Add an origin pull mapping
 origin-list Show origin pull mappings on a CDN account
 origin-remove Remove an origin pull mapping
 purge Purge one or more cached files from all edge nodes
  • 6. $ sl help snapshot
 usage: sl snapshot [<command>] [<args>...] [options]
 
 Manage, order, delete iSCSI snapshots
 
 The available commands are:
 cancel Cancel an iSCSI snapshot
 create Create a snapshot of given iSCSI volume
 create-space Orders space for storing snapshots
 list List snpshots of given iSCSI
 restore-volume Restores volume from existing snapshot
 
 For several commands <identifier> will be asked for.This can be the id
 of iSCSI volume or iSCSI snapshot.
  • 7. $ sl help ticket
 usage: sl ticket [<command>] [<args>...] [options]
 
 Manages account tickets
 
 The available commands are:
 create Create a new ticket
 detail Output details about an ticket
 list List tickets
 update Update an existing ticket
 subjects List the subject IDs that can be used for ticket creation
 summary Give summary info about tickets
  • 8. API Python Client $ python
 from SoftLayer import TicketManager, Client
 client = Client()
 ticket = TicketManager(client)
 >>> for t in ticket.list_tickets():
 print("%d %s %s" % (t['id'], t['lastEditDate'], t['title']))
 
 9533798 2014-04-16T08:08:32+09:00 Virtual Server Cancellation - 04/15/14
 9533682 2014-04-16T11:07:15+09:00 MONITORING: Network Monitor Alert
 9432082 2014-05-09T19:47:44+09:00 NOTIFICATION: Object Storage Service and the Heartbleed OpenSSL Vulnerability - Global - 04/09/2014
 9397692 2014-04-09T15:07:36+09:00 Security Issue - Impact of CVE-2014-0160 in SLayer
 8988684 2014-03-15T12:46:28+09:00 Cloud Instance Cancellation - 03/13/14
 8896850 2014-03-13T10:31:31+09:00 Introducing New Product Names
 8581498 2014-02-15T05:27:15+09:00 MONITORING: Network Monitor Alert 8
  • 9. サンプル
 料金表を生成してみる $ sl vs create --test --hostname=test --domain=example.com 
 —cpu=2 --memory=2048 --os=CENTOS_LATEST --hourly
 :.......................................................:......:
 : Item : cost :
 :.......................................................:......:
 : 2 x 2.0 GHz Cores : 0.04 :
 : 2 GB : 0.04 :
 : CentOS 6.x - Minimal Install (64 bit) : 0.00 :
 (snipped)
 : Total hourly cost : 0.08 :
 :.......................................................:......:
 
 
 https://github.com/ryumei/softlayer-utility/blob/master/sl-vs- prices.sh
 9
  • 10. 料金表生成スクリプト OS CPU Memory Unit Price CentOS 6.x - Minimal Install (64 bit) 1 1024 hourly 0.04 CentOS 6.x - Minimal Install (64 bit) 1 2048 hourly 0.06 CentOS 6.x - Minimal Install (64 bit) 1 4096 hourly 0.1 CentOS 6.x - Minimal Install (64 bit) 1 6144 hourly 0.14 CentOS 6.x - Minimal Install (64 bit) 1 8192 hourly 0.17 CentOS 6.x - Minimal Install (64 bit) 1 12288 hourly 0.23 CentOS 6.x - Minimal Install (64 bit) 1 16384 hourly 0.29 CentOS 6.x - Minimal Install (64 bit) 1 32768 hourly 0.47 CentOS 6.x - Minimal Install (64 bit) 1 49152 hourly 0.61 CentOS 6.x - Minimal Install (64 bit) 1 65536 hourly 0.75
  • 11. 他にも • Object Storage Uploader
 https://sldn.softlayer.com/blog/ashaw/ Object-Storage-Uploader • Configuration Finder
 https://sldn.softlayer.com/blog/ hansKristian/Configuration-Finder-‒- Simplify-Your-Server-Search
  • 12. まとめ • CLI, Python API をはじめ、
 一通りの利用手段は用意されています。 • XML RPC, REST を扱うことができるのなら、
 いかようにも。 • リファレンス
 SLDN https://sldn.softlayer.com
 KnowledgeLayer http://knowledgelayer.softlayer.com
 Python API Reference http://softlayer- python.readthedocs.org/en/latest/index.html 12