class OceanKit::Resource::Droplet

Defined in:

ocean_kit/resources/droplet.cr

Instance Method Summary

Class methods inherited from class OceanKit::Resource::Base

new(headers : HTTP::Headers | Nil) new

Instance methods inherited from module OceanKit::Client::Connection

destroy(path, options = nil) destroy, get(path, options = nil) get, post(path, options) post, put(path, options) put, request(http_method, path, options) request

Instance Method Detail

def actions(id) #

Retrieve all actions that have been executed on a Droplet


[View source]
def all #

[View source]
def all(tag) #

[View source]
def backups(id) #

Retrieve a list of all kernels available to a Dropet


[View source]
def create(options) #

Create new droplet ok.droplets.create( {name: "12.com", region: "nyc3", size: "512mb", image: "ubuntu-16-04-x64", ipv6: "true", tags: ["web"]})


[View source]
def delete(id) #

Delete a Droplet by ID

No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.


[View source]
def delete_for_tag(tag) #

Delete a Droplet by TAG

No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.


[View source]
def droplets #

[View source]
def find(id) #

Find Droplet Info by ID


[View source]
def kernels(id) #

Retrieve a list of all kernels available to a Dropet


[View source]
def snapshots(id) #

Retrieve the snapshots that have been created from a Droplet,


[View source]