Elixir-Scaleway v0.1.8 Scaleway.Server.Action View Source

Scaleway documentation API for servers action

Link to this section Summary

Functions

Execute an action on a server by its id

List all actions possible for a server by its id

Link to this section Functions

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

Execute an action on a server by its id.

Examples

iex> server_id = "741db378-6b87-46d4-a8c5-4e46a09ab1f8"
"741db378-6b87-46d4-a8c5-4e46a09ab1f8"

iex> Scaleway.Server.Action.execute(server_id, "poweroff")
Link to this function execute!(id, action) View Source
execute!(charlist(), charlist()) :: map()
Link to this function list(id) View Source
list(charlist()) :: {:ok, HTTPoison.Response} | {:error, HTTPoison.Error}

List all actions possible for a server by its id.

Examples

iex> server_id = "741db378-6b87-46d4-a8c5-4e46a09ab1f8"
"741db378-6b87-46d4-a8c5-4e46a09ab1f8"

iex> Scaleway.Server.Action.list(server_id)