View Source mix doex.put (doex v0.14.1)
Execute a Digital Ocean API PUT request:
doex put <path> <attributes>For example:
mix doex.put /images/12345 --name newnameThe output will be similar to the following, and it's the IDs you want:
{:ok,
%{"image" => %{"created_at" => "2017-08-02T13:54:05Z",
"distribution" => "Ubuntu", "id" => 12345, "min_disk_size" => 20,
"name" => "newname", "public" => false,
"regions" => ["tor1"], "size_gigabytes" => 2.05, "slug" => nil,
"type" => "snapshot"}}}
Link to this section Summary
Functions
Callback implementation for Mix.Task.run/1.
Link to this section Functions
Callback implementation for Mix.Task.run/1.