Skip to main content

images

Overview

Nameimages
TypeResource
Idlinode.images.images

Fields

NameDatatypeDescription
idstringThe unique ID of this Image.
descriptionstringA detailed description of this Image.
createdstringWhen this Image was created.
created_bystringThe name of the User who created this Image, or "linode" for public Images.
deprecatedbooleanWhether or not this Image is deprecated. Will only be true for deprecated public Images.
eolstringThe date of the public Image's planned end of life. None for private Images.
expirystringOnly Images created automatically from a deleted Linode (type=automatic) will expire.
is_publicbooleanTrue if the Image is a public distribution image. False if Image is private Account-specific Image.
labelstringA short description of the Image.
sizeintegerThe minimum size this Image needs to deploy. Size is in MB.
statusstringThe current status of this Image.

Only Images in an "available" status can be deployed. Images in a "creating" status are being created from a Linode Disk, and will become "available" shortly. Images in a "pending_upload" status are waiting for data to be uploaded, and become "available" after the upload and processing are complete.

The "+order_by" and "+order" operators are not available for filtering on this key.
typestringHow the Image was created.

"Manual" Images can be created at any time.

"Automatic" Images are created automatically from a deleted Linode.
updatedstringWhen this Image was last updated.
vendorstringThe upstream distribution vendor. None for private Images.

Methods

NameAccessible byRequired ParamsDescription
getImageSELECTimageIdGet information about a single Image.

Public Images have IDs that begin with "linode/". These distribution images are generally available to
all users.

Private Images have IDs that begin with "private/". These Images are Account-specific and only
accessible to Users with appropriate Grants.

* To view a public Image, call this endpoint with or without authentication. To view a private Image, call this endpoint with authentication.
getImagesSELECTReturns a paginated list of Images.

Public Images have IDs that begin with "linode/". These distribution images are generally available to
all users.

Private Images have IDs that begin with "private/". These Images are Account-specific and only
accessible to Users with appropriate Grants.

* To view only public Images, call this endpoint with or without authentication. To view private Images as well, call this endpoint with authentication.
createImageINSERTdata__disk_idCaptures a private gold-master Image from a Linode Disk.
deleteImageDELETEimageIdDeletes a private Image you have permission to read_write.


Deleting an Image is a destructive action and cannot be undone.
_getImageEXECimageIdGet information about a single Image.

Public Images have IDs that begin with "linode/". These distribution images are generally available to
all users.

Private Images have IDs that begin with "private/". These Images are Account-specific and only
accessible to Users with appropriate Grants.

* To view a public Image, call this endpoint with or without authentication. To view a private Image, call this endpoint with authentication.
_getImagesEXECReturns a paginated list of Images.

Public Images have IDs that begin with "linode/". These distribution images are generally available to
all users.

Private Images have IDs that begin with "private/". These Images are Account-specific and only
accessible to Users with appropriate Grants.

* To view only public Images, call this endpoint with or without authentication. To view private Images as well, call this endpoint with authentication.
post_images_uploadEXECdata__label, data__regionInitiates an Image upload.

This endpoint creates a new private Image object and returns it along
with the URL to which image data can be uploaded.

- Image data must be uploaded within 24 hours of creation or the
upload will be cancelled and the image deleted.

- Image uploads should be made as an HTTP PUT request to the URL returned in the upload_to
response parameter, with a Content-type: application/octet-stream header included in the
request. For example:

curl -v \
-H "Content-Type: application/octet-stream" \
--upload-file example.img.gz \
$UPLOAD_URL \
--progress-bar \
--output /dev/null

- Uploaded image data should be compressed in gzip (.gz) format. The uncompressed disk should be in raw
disk image (.img) format. A maximum compressed file size of 5GB is supported for upload at this time.

Note: To initiate and complete an Image upload in a single step, see our guide on how to Upload an Image using Cloud Manager or the Linode CLI image-upload plugin.
updateImageEXECimageIdUpdates a private Image that you have permission to read_write.