0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【初心者向け】Python openstackのAPI発行する

Posted at

文系やPython初心者向けの記事。
何かコードを渡されて解読しようにも、全く知識が無くて何で検索すれば良いのか分からない人向け。
※Openstackやらモジュールは他の記事参照。とりあえずOpenstack(何それ・・・)というののAPI発行方法。

・ソースコード

#!/usr/bin/python3

import openstack
conn = openstack.connect()
print(conn.list_flavors())

実行したら大量に応答が返ってきた。。。たぶん整形しないと画面出力にはつらい。。。

conn_list_flavors()の部分はOpenstackドキュメントを見ればわかる。らしい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?