Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/seandenigris/digitaloceanst

Digital Ocean API Smalltalk Wrapper
https://github.com/seandenigris/digitaloceanst

Last synced: 6 days ago
JSON representation

Digital Ocean API Smalltalk Wrapper

Awesome Lists containing this project

README

        

Wrapper of [Digital Ocean's web API](https://developers.digitalocean.com/)

#### Authentication

Digital Ocean uses two tokens to identify you:

- client ID
- api key

These are managed via the [API Access page](https://cloud.digitalocean.com/api_access)

To initialize these tokens:

DoCredentials current

clientID: 'a long identifier';
apiKey: 'another long identifier'.

Now all API calls will originate from this user.

####Active Droplets

DoDroplet allActive.

DoDroplet allActive detect: [ :e | e name = 'mycooldomain.org' ].

####Droplet Sizes
Two useful queries:

DoDropletSize all.

DoDropletSize named: '512MB'

####Images

DoImage globalImages.

DoImage snapshots.
DoImage all