Get an archive of a filesystem resource in a container Run in API Explorer

GET /containers/{id}/archive

Get a tar archive of a resource in the filesystem of container id.

Path parameters

  • id string Required

    ID or name of the container

Query parameters

  • path string Required

    Resource in the container’s filesystem to archive.

Responses

  • 200

    no error

  • 400 application/x-tar

    Bad parameter

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 404 application/x-tar

    Container or path does not exist

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/x-tar

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

GET /containers/{id}/archive
curl \
 --request GET 'http://api.example.com/v1.49/containers/{id}/archive?path=string'
Response examples (400)
{
  "message": "Something went wrong."
}
Response examples (404)
{
  "message": "No such container: c2ada9df5af8"
}
Response examples (500)
{
  "message": "Something went wrong."
}