Skip to main content

conoha-cli is a command and Python3 library for ConoHa API.

Project description

conoha-cli

conoha-cliConoHa API のコマンドラインインターフェースとPython3用ライブラリです。

インストール

conoha-cli はこのコマンドを実行するとインストールでいます:

$ pip3 install conoha-cli

次に、~/.config/conoha/config へこのようなファイルを作成してください。 user, passwd, tenantは、Conohaコントロールパネルから作成したAPIユーザ の値を入力してください。:

[api]
user = xxxxx
passwd = xxxxx
tenant = xxxxx

使い方

VPSの一覧を確認する:

$ conoha-cli compute list-vms

マシンリーダブルな形式でも出力できます:

$ conoha-cli --format plain --header no compute list-vms

VPSを起動・終了・削除する:

$ conoha-cli compute start-vm --name $VM_NAME
$ conoha-cli compute stop-vm  --name $VM_NAME
$ conoha-cli compute delete-vm --name $VM_NAME

ライセンス

MIT

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page