Environment Management
List Environments
Retrieve all Docker environments configured in Dockhand
GET
List Environments
Description
Retrieves a list of all Docker environments. In Enterprise mode with authentication enabled, results are filtered based on the user’s accessible environments unless the user is an admin.Authentication
Requiresenvironments:view permission when authentication is enabled.
Response
Returns an array of environment objects with parsed labels, public IPs, and additional settings.Environment Object
number
required
Unique identifier for the environment
string
required
Display name of the environment
string
Hostname or IP address for remote Docker connections (required for
direct and hawser-standard types)number
default:"2375"
Port number for Docker API connection
string
default:"http"
Connection protocol:
http or httpsstring
default:"socket"
Type of Docker connection:
socket- Local Unix socketdirect- Direct TCP connection to Docker APIhawser-standard- HTTP proxy via Hawser agenthawser-edge- WebSocket reverse proxy via Hawser agent
string
default:"/var/run/docker.sock"
Unix socket path (used when
connectionType is socket)string
TLS Certificate Authority (CA) certificate in PEM format
string
TLS client certificate in PEM format
string
TLS client private key in PEM format
boolean
default:"false"
Skip TLS certificate verification (insecure, not recommended for production)
string
Authentication token for
hawser-standard connectionsstring
ISO 8601 timestamp of last connection from Hawser Edge agent
string
Unique identifier of the connected Hawser Edge agent
string
Name of the connected Hawser Edge agent
string
Version of the Hawser agent software
string[]
JSON array of agent capabilities:
["compose", "exec", "metrics"]string
default:"globe"
Icon identifier for UI display
boolean
default:"true"
Enable collection of container activity events
boolean
default:"true"
Enable collection of host metrics
boolean
default:"true"
Highlight recent changes in the UI
string[]
Array of label strings for categorization (max 10 labels)
string | null
Public IP address of the environment host
boolean
Whether automatic update checking is enabled
boolean
Whether automatic updates are enabled
boolean
Whether automatic image pruning is enabled
string | null
Timezone identifier for the environment
string
ISO 8601 timestamp of environment creation
string
ISO 8601 timestamp of last update
Example Response
Error Responses
object
User lacks
environments:view permissionobject
Failed to retrieve environments
