Updated on 2023-06-12 GMT+08:00

Downloading an Image

Function

Downloads an image.

URI

GET /v4/projects/{project_id}/image-file

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

32-bit ID of a DevCloud project

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

image_uri

Yes

String

Image URI

Request Parameters

Table 3 Request header 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: 400

Table 4 Response body parameters

Parameter

Type

Description

error_msg

String

Description

error_code

String

Error Codes

Status code: 401

Table 5 Response body parameters

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.