Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuuki0xff/conoha-cli
[Abandoned] conoha-cli is a command and Python3 library for ConoHa API.
https://github.com/yuuki0xff/conoha-cli
Last synced: 3 months ago
JSON representation
[Abandoned] conoha-cli is a command and Python3 library for ConoHa API.
- Host: GitHub
- URL: https://github.com/yuuki0xff/conoha-cli
- Owner: yuuki0xff
- License: mit
- Archived: true
- Created: 2015-10-07T04:02:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T13:27:41.000Z (about 2 years ago)
- Last Synced: 2024-09-16T19:44:20.812Z (4 months ago)
- Language: Python
- Homepage: https://pypi.org/project/conoha-cli/
- Size: 140 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ConoHa-cloud - github: ConoHa CLI (python3) @yuuki0xff(@yuuki)
README
conoha-cli
==========***WARNING***:
This project is no longer maintained. I recommend using the [python-openstackclient](https://pypi.org/project/python-openstackclient/) instead of the conoha-cli. Other choices are [giginc/conoha](https://github.com/giginc/conoha). If you would like to take over maintenance it, please contact me.conoha-cli is a command and Python3 library for [ConoHa](https://www.conoha.jp/) API.
Installation
------------
from PyPI : ``` pip install conoha-cli ```
from Source : ``` ./setup.py install ```Configuration
-------------
### Environment
```
# ~/.bashrc
export CONOHA_API_USER='xxxxx'
export CONOHA_API_PASSWD='xxxxx'
export CONOHA_API_TENANT='xxxxx'
```### Config File
```
# ~/.config/conoha/config
[api]
user = xxxxx
passwd = xxxxx
tenant = xxxxx
```Command Usage
-------------
Basic Operations:
```bash
$ conoha-cli compute add-vm -w
...$ conoha-cli compute list-vms
VMID Name Status AddressList SecurityGroupList
------------------------------------ ------------ -------- ------------------------------------------------- -------------------------------------
00000000-0000-0000-0000-000000000000 app1 ACTIVE 111.222.101.11, 2400:8500:1300:800:111:222:101:11 default, gncs-ipv4-all, gncs-ipv6-all
00000000-0000-0000-0000-000000000000 app2 ACTIVE 111.222.102.22, 2400:8500:1300:800:111:222:102:22 default, gncs-ipv4-all, gncs-ipv6-all
00000000-0000-0000-0000-000000000000 app3 ACTIVE 111.222.103.33, 2400:8500:1300:800:111:222:103:33 default, gncs-ipv4-all, gncs-ipv6-all
00000000-0000-0000-0000-000000000000 app4 ACTIVE 111.222.104.44, 2400:8500:1300:700:111:222:104:44 default, gncs-ipv4-all, gncs-ipv6-all
00000000-0000-0000-0000-000000000000 database-srv ACTIVE 111.222.105.55, 2400:8500:1300:800:111:222:105:55 default, gncs-ipv4-all, gncs-ipv6-all$ conoha-cli compute start-vm $VM_NAME
$ conoha-cli compute stop-vm $VM_NAME
$ conoha-cli compute delete-vm $VM_NAME
```Change output format by `--format` and `--header` arguments:
```bash
$ conoha-cli --format plain --header no compute list-vms
```Library Usage
-------------
```
from conoha.config import Config
from conoha.api import Token
from conoha.compute import VMListconfigDict = {
'api': {
'user': 'xxxxx',
'passwd': 'xxxxx',
'tenant': 'xxxxx',
}
}
conf = Config(fromDict=configDict)
token = Token(conf)
for vm in VMList(token):
if vm.getStatus() == 'SHUTOFF':
vm.start()
```API Support Status
-------
Service Name | Status
-------------------------|---------------
Identity Service | Full Supported
Account Service | Not Supported
Compute Service | Partially Supported
Block Storage Service | Partially Supported
Image Service | Partially Supported
Network Service | Partially Supported
Object Storage Service | Not Supported
Database Hosting Service | Not Supported
DNS Service | Partially Supported
Mail Hosting Service | Not SupportedSee `conoha-apis.md` for deltails.