Get changes on a container’s filesystem Run in API Explorer

GET /containers/{id}/changes

Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of:

  • 0: Modified ("C")
  • 1: Added ("A")
  • 2: Deleted ("D")

Path parameters

  • id string Required

    ID or name of the container

Responses

  • 200 application/json

    The list of changes

    Hide response attributes Show response attributes object
    • Path string Required

      Path to file or directory that has changed.

    • Kind integer(uint8) Required

      Kind of change

      Can be one of:

      • 0: Modified ("C")
      • 1: Added ("A")
      • 2: Deleted ("D")

      Values are 0, 1, or 2.

  • 404 application/json

    no such container

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

GET /containers/{id}/changes
curl \
 --request GET 'http://api.example.com/v1.49/containers/{id}/changes'
Response examples (200)
[
  {
    "Kind": 0,
    "Path": "/dev"
  },
  {
    "Kind": 1,
    "Path": "/dev/kmsg"
  },
  {
    "Kind": 1,
    "Path": "/test"
  }
]
Response examples (200)
[
  {
    "Path": "string",
    "Kind": 0
  }
]
Response examples (404)
{
  "message": "No such container: c2ada9df5af8"
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}