Note
Your image’s name can only contain alphanumeric characters and dashes.
To complete the actions presented below, you must have:
Your image’s name can only contain alphanumeric characters and dashes.
You can also create an image from the Snapshots dashboard by clicking «See more Icon» next to the snapshot from which you want to create an image. Click Image from snapshot. A new tab opens: enter a name for your image. Then click Create image from snapshot.
You can also create an image using the Scaleway CLI. Use the following command:
scw instance image create snapshot-id="$SCW_VOLUME_ID_1" additional-volumes.0.id="$SCW_VOLUME_ID_2" arch="x86_64"
$SCW_VOLUME_ID_1
with the ID of the snapshot or volume you want to use as the root volume.$SCW_VOLUME_ID_2
with the ID of any additional volume to be included.arch
) is set to a valid value (e.g., x86_64
).Supported volume IDs include:
l_ssd
)sbs
)b_ssd
) volumes (deprecated).You can also create an image using the Scaleway API. Use the following curl
command:
curl --location "https://api.scaleway.com/instance/v1/zones/$SCW_AVAILABILITY_ZONE/images" \--header "Content-Type: application/json" \--header "X-Auth-Token: $SCW_SECRET_KEY" \--data '{"root_volume": "'$SCW_VOLUME_ID_1'","arch": "x86_64","name": "image_name","extra_volumes": {"1": {"id":"'$SCW_VOLUME_ID_2'"}},"project": "'$SCW_PROJECT_ID'"}'
$SCW_VOLUME_ID_1
with the ID of the snapshot or volume to use as the root volume.$SCW_VOLUME_ID_2
with the ID of any additional volume.$SCW_PROJECT_ID
for the ID of your project.arch
) is set to a valid value (e.g., x86_64
).Supported volume IDs include:
l_ssd
)sbs
)b_ssd
) volumes (deprecated).