An open API service indexing awesome lists of open source software.

https://github.com/m0a/ocean_php

degitalocean webapi commandline wrapper
https://github.com/m0a/ocean_php

Last synced: about 1 year ago
JSON representation

degitalocean webapi commandline wrapper

Awesome Lists containing this project

README

          

ocean
=====

DegitalOcean WebApi commandline wrapper

[DegitalOcean is Simple Cloud Hosting for Developpers]((https://www.digitalocean.com/?refcode=58b04120b7b2)

##INSTALL

```
wget https://raw.github.com/abe00makoto/ocean/master/ocean
chmod +x ocean

vim ~/.bash_profile

export OCEAN_API_KEY=xxxxxxxx
export OCEAN_CLIENT_ID=xxxxxxxx

```

##Run

ex) server restart
```
ocean droplets server01 reboot
```
ex) server make

```
ocean droplets new droplet_name=abe05 size_id=512MB image_id='CentOS 6.4 x32' region_id='Amsterdam 1' ssh_key_id1=abe00makoto
```
ex) if miss typed.

```
ocean droplets new droplet_name=abe05 size_id=512MB image_id='CentOS 6.4 x32' region_id=??? ssh_key_id1=abe00makoto

name resolution error:region_id:[???]
please select from
[Amsterdam 1]
[San Francisco 1]
[New York 2]

```

```
usage:
ocean droplets
ocean droplets new droplet_name= size_id= image_id= region_id=
ocean droplets new droplet_name= size_id= image_id= region_id= ssh_key_id1=
ocean droplets new droplet_name= size_id= image_id= region_id= ssh_key_id1= ssh_key_id2=
ocean droplets
ocean droplets reboot
ocean droplets power_cycle
ocean droplets shutdown
ocean droplets power_off
ocean droplets power_on
ocean droplets password_reset
ocean droplets resize size_id=
ocean droplets snapshot snapshot_name=
ocean droplets restore image_id=
ocean droplets rebuild image_id=
ocean droplets enable_backups
ocean droplets disable_backups
ocean droplets rename name=
ocean droplets destroy
ocean regions
ocean images
ocean images
ocean images transfer region_id=
ocean ssh_keys
ocean ssh_keys new ssh_key_name= ssh_public_key=
ocean ssh_keys
ocean ssh_keys edit
ocean ssh_keys destroy
ocean sizes
ocean domains
ocean domains new domain= ip_address=
ocean domains
ocean domains destroy
ocean domains records
ocean domains records new record_type= data=
ocean domains records
ocean domains records edit
ocean domains records destroy
```