Elixir-Scaleway v0.1.3 Scaleway.Server View Source

Link to this section Summary

Functions

Create a new server

List all servers

Similar to list/0 but with the body only

Remove a specific server by its id

Retrieve informations on a specific server by its id

Update informations on a specific server by its id

Link to this section Functions

Link to this function create(data) View Source
create(map()) :: {:ok, HTTPoison.Response} | {:error, HTTPoison.Error}

Create a new server.

Link to this function create!(data) View Source
create!(map()) :: map()
Link to this function list() View Source
list() :: {:ok, HTTPoison.Response} | {:error, HTTPoison.Error}

List all servers.

Similar to list/0 but with the body only.

Link to this function remove(id) View Source
remove(charlist()) :: {:ok, HTTPoison.Response} | {:error, HTTPoison.Error}

Remove a specific server by its id.

Link to this function show(id) View Source
show(charlist()) :: {:ok, HTTPoison.Response} | {:error, HTTPoison.Error}

Retrieve informations on a specific server by its id.

Link to this function update(id, data) View Source
update(charlist(), map()) ::
  {:ok, HTTPoison.Response} | {:error, HTTPoison.Error}

Update informations on a specific server by its id.

Link to this function update!(id, data) View Source
update!(charlist(), map()) :: map()