ExIncus. Server
(ex_incus v1.0.0)
Copy Markdown
Server-level information and configuration (the /1.0 endpoint).
{:ok, info} = ExIncus.Server.info(client)
info["environment"]["server_version"]
Summary
Functions
Fetches server information: API version, auth status, environment, config.
Partially updates the server configuration (PATCH).
Fetches hardware resource information (CPU, memory, disks, network cards).
Replaces the server configuration (PUT with %{"config" => %{...}}).
Types
@type result() :: {:ok, term()} | {:error, ExIncus.Error.t()}
Functions
@spec info( ExIncus.Client.t(), keyword() ) :: result()
Fetches server information: API version, auth status, environment, config.
@spec patch(ExIncus.Client.t(), map(), keyword()) :: result()
Partially updates the server configuration (PATCH).
@spec resources( ExIncus.Client.t(), keyword() ) :: result()
Fetches hardware resource information (CPU, memory, disks, network cards).
@spec update(ExIncus.Client.t(), map(), keyword()) :: result()
Replaces the server configuration (PUT with %{"config" => %{...}}).