Skip to content

Export Custom Volume

POST
/api/v1/images/export-image/
curl --request POST \
--url 'https://api.e2enetworks.com/myaccount/api/v1/images/export-image/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"image_id": 36759,
"access_key": "IOVK20QGW17HLF77G8ZB",
"secret_key": "0R86B58OGN6V9N9MAJJ89MAK2PCIA5FPETAAMKRR",
"bucket": "vishnukant",
"region": "Delhi"
}'

This API allows users to export a custom Volume from a public object storage URL.
The image will be available under the user’s account for use with compute resources.

project_id
required
integer
location
required
string
Allowed values: Delhi Chennai

Deployment region for the resource. Accepted values: Delhi, Chennai.

Mumbai region has been discontinued. Delhi and Chennai are the only supported regions.

Media typeapplication/json
object
image_id
required

Unique identifier of the image to be exported.

integer

Example

36759
access_key
required

Access key for the destination bucket.

string

Example

IOVK20QGW17HLF77G8ZB
secret_key
required

Secret key corresponding to the access key.

string

Example

0R86B58OGN6V9N9MAJJ89MAK2PCIA5FPETAAMKRR
bucket
required

Name of the target storage bucket.

string

Example

vishnukant
region
required

Region where the image will be exported.

string

Example

Delhi

Volume is successfully Exported

Media typeapplication/json
object
code
required

HTTP status code of the response

integer
data
required

Response data (empty object if no data)

object
errors
required

Errors encountered (empty if none)

object
message
required

Response message

string

Example

{
"code": 200,
"data": {},
"errors": {},
"message": "Success"
}