Export the filesystem changes to a presigned URL
Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it. Use dryRun to get the archive’s content and exact size without stopping anything and without uploading. Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Export options
Async starts the export and answers immediately, leaving it to run: an archive of a large filesystem takes longer than a request may be held open. Its progress is reported by /archive/status.
false
DryRun reports what would be archived, and its exact size, without stopping anything and without uploading.
false
Excludes are added to the paths excluded by default.
Headers are sent with the upload request as given. A presigned URL only accepts the headers it was signed for, so these have to match what the caller signed: sending one that was not signed, or signing one that is not sent, is rejected as a signature mismatch. Typical use is a storage class, x-amz-storage-class: GLACIER_IR.
ImageDevice is the device holding the pristine image, /dev/vda by default. A generation that attaches the image elsewhere names its device here.
"/dev/vda"
ImageMountPoint is a directory where the pristine image is already mounted. When set the image device is neither mounted nor unmounted.
"/mnt/lower"
Multipart uploads the archive part by part instead, which is how an archive larger than the 5 GB a single PUT accepts is stored. It takes precedence over URL.
SaveProcesses stores the process list in the archive so restore can relaunch the workload. Defaults to true; set it to false to archive storage only.
true
StopTimeoutSeconds bounds the graceful stop of each process.
30
URL is a presigned S3 PUT URL the archive is streamed to. Empty is only valid with DryRun, or with Multipart.
"https://bucket.s3.amazonaws.com/key?..."
Response
Export result
Changes lists every path in the archive. Only filled for a dry run, where it is the point of the call.
"4.2s"
Size is the exact number of bytes uploaded, known before the upload starts since the archive is not compressed.
3074211
StoppedProcesses are the processes stopped to freeze the filesystem.
Uploaded is false for a dry run.
true
