Guides
GuidesAPI ReferenceJoin the Mailing ListMake a Suggestion

Image file checksum

How to request the MD5 file checksum for a base image in cluster storage from the Orka API.

🚧

Intel Nodes Only

This guide is applicable to VMs deployed on Intel nodes only. Read more about Apple ARM-based Support (Beta) to see which commands and options are supported for VMs deployed on Apple ARM-based nodes.

🚧

Quick Navigation

Jump to: Overview | Checksum Calculation | Using the Orka API

Overview

You may request the file checksum for any base image stored in your Orka cluster storage. The file checksum can be used to verify file integrity when downloading an image from cluster storage to your local filesystem, or when uploading an image to cluster storage from your local filesystem.

Checksum Calculation

When downloading a base image from cluster storage to your local filesystem, the MD5 checksum will automatically be calculated server-side in-flight as the file is streamed. When using the Orka CLI, the checksum will be calculated client-side as the file is written to disk. You may also request to calculate the image checksum by sending a request to the Orka API for the image checksum.

πŸ“˜

IMPORTANT

The checksum will need to be re-calculated if the base image is committed to. This calculation will take place the next time the image is downloaded, or a request for the checksum is sent to the Orka API.

Using the Orka API

In order to request the file checksum, send a request to /resources/image/checksum/<image-name> as shown below:

curl --location --request GET "http://10.221.188.100/resources/image/checksum/<image-name>" \
--header "Authorization: Bearer <token>"

πŸ“˜

IMPORTANT

The Orka API will return status code 202 while the checksum calculation is taking place server-side.


Did this page help you?

Β© 2019-2020 Copyright MacStadium, Inc. – Documentation built with readme.io. Orka is a registered trademark of MacStadium, Inc.