Skip to main content

List containers

GET 

/node/:hostname/container/docker

List containers on the target node, optionally filtered by state.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Query Parameters

    state string

    Possible values: [running, stopped, all]

    Default value: all

    Filter containers by state. Defaults to "all".

    limit integer

    Possible values: >= 1 and <= 100

    Default value: 20

    Maximum number of containers to return.

Responses

List of containers.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent.

    containers

    object[]

    List of containers on this agent.

  • Array [

  • id string

    Container identifier.

    name string

    Container name.

    image string

    Image used by the container.

    state string

    Current container state.

    created string

    Container creation timestamp.

  • ]

  • changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...