From 36a1b7c82e08dd62b92236a37225285fed01fa85 Mon Sep 17 00:00:00 2001 From: Dharini Chandrasekar Date: Thu, 26 Jan 2017 21:03:36 +0000 Subject: [PATCH] Update api-ref for partial download requests. Change [1] fixed partial downloads in glance and changed the status codes to be more appropriate. Updating api-ref to reflect what the v2 code will now do. [1] I3cd47b998be79604511b3cd4879209820cf776b7 Change-Id: I70e3f60c3ce3d0eeb7b457496dbbe623b2ff473e --- api-ref/source/v2/images-data.inc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/api-ref/source/v2/images-data.inc b/api-ref/source/v2/images-data.inc index e3310ae9ee..1acdb2731b 100644 --- a/api-ref/source/v2/images-data.inc +++ b/api-ref/source/v2/images-data.inc @@ -102,16 +102,24 @@ verify the integrity of the image data. - You can download the binary image data in your machine if the image has image data. -- If image data exists, the call returns the HTTP ``200`` response code. +- If image data exists, the call returns the HTTP ``200`` response code for a + full image download request. + +- If image data exists, the call returns the HTTP ``206`` response code for a + partial download request. - If no image data exists, the call returns the HTTP ``204`` (No Content) response code. -- If no image record exists, the call returns the HTTP ``404`` response code. +- If no image record exists, the call returns the HTTP ``404`` response code + for an attempted full image download request. -Normal response codes: 200, 204 +- For an unsatisfiable partial download request, the call returns the HTTP + ``416`` response code. -Error response codes: 400, 403, 404 +Normal response codes: 200, 204, 206 + +Error response codes: 400, 403, 404, 416 Request