Downloading an Image
Function
Downloads an image.
URI
GET /v4/projects/{project_id}/image-file
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
32-bit ID of a DevCloud project |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
image_uri |
Yes |
String |
Image URI |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. Call IAM to obtain the user token (value of X-Subject-Token in the response header). |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
File |
Binary file |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Description |
|
error_code |
String |
Error Codes |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Description |
|
error_code |
String |
Error Codes |
Example Requests
Get https://{endpoint}/v4/projects/2c42a6d37ccc4197bf0b3dbe91be021a/image-file?image_uri=/v1/upload/2c42a6d37ccc4197bf0b3dbe91be021a/202209/1662003438194761550.png
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Binary file |
|
400 |
Bad Request |
|
401 |
Unauthorized |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot