cloudsigma repl
A REPL for the CloudSigma IaaS REST API.
Usage
Set your login in the config.json.
go build
./cloudsigmarepl
Example Session
Welcome to the CloudSigma IaaS REPL.
------------------------------------
Type "help" for help.
> set config location
Enter service location:
> zrh
Response:
zrh
> cloud status
Response:
{"free_tier": {"dssd": 53687091200, "mem": 1073741824}, "free_tier_monthly": {"tx": 5497558138880}, "guest": true, "signup": true, "sso": ["github", "twitter", "google", "facebook", "linkedin"], "trial": true}
> create server
Name:
> Repl Test Server
CPU:
> 1000
Memory:
> 536870912
VNC password:
> mypassword
Response:
{"objects": [{"auto_start": false, "context": true, "cpu": 1000, "cpu_model": null, "cpu_type": "amd", "cpus_instead_of_cores": false, "drives": [], "enable_numa": false, "grantees": [], "hv_relaxed": false, "hv_tsc": false, "hypervisor": "kvm", "jobs": [], "mem": 536870912, "meta": {}, "name": "Repl Test Server", "nics": [], "owner": {"resource_uri": "/api/2.0/user/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/", "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, "permissions": [], "pubkeys": [], "requirements": [], "resource_uri": "/api/2.0/servers/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/", "runtime": null, "smp": 1, "status": "stopped", "tags": [], "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "vnc_password": "mypassword"}]}
> bye
Bye!
Features
Cloud status Locations Capabilities Profile Balance Subscriptions Transactions Pricing Discounts Current usage Burst usage Daily usage Licenses Notification preferences [list, edit] Notification contacts [list, create, edit, delete] Servers [list, create, delete, start, stop, shutdown] Drives [list, list detailed, get single, create, delete] Snapshots [list, list detailed, get single, create, delete] Vlans [list, detailed list, get single] IP addresses [list, detailed list, get single] Access Control Lists [list, get single] Keypairs Tags [list, get single] Logs [list] Jobs [list] Firewall Policies [list]
License
BSD 3-Clause: LICENSE.txt