Filters
Images v4.83.1
Images List
Returns a paginated list of Images.
- Calling this endpoint without authentication returns all public Images.
- Authentication is required to return a combined paginated list of all public and your private Images.
Authorizations
personalAccessToken | |
oauth | images:read_only |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl https://api.linode.com/v4/images
linode-cli images list
Response Samples
{
"data": [
{
"created": "2018-01-01T00:01:01",
"created_by": "linode",
"deprecated": false,
"description": null,
"eol": "2200-10-23T00:00:00",
"expiry": null,
"id": "linode/ubuntu17.10",
"is_public": true,
"label": "Ubuntu 17.10",
"size": 2500,
"type": "manual",
"updated": "2019-01-02T00:01:01",
"vendor": "Ubuntu"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array of objects
| ||||||||||||||||||||||||||
page | integer | ||||||||||||||||||||||||||
pages | integer | ||||||||||||||||||||||||||
results | integer |
errors | array of objects
|
Image Create
Creates a private gold-master Image from a Linode Disk. There is no additional charge to store Images for Linode users. Images are limited to three per Account.
Authorizations
personalAccessToken | |
oauth | images:read_write |
Request Body Schema
description | string A detailed description of this Image. |
disk_id Required | integer The ID of the Linode Disk that this Image will be created from. |
label | string A short title of this Image. Defaults to the label of the Disk it is being created from if not provided. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"disk_id": 123,
"label": "this_is_a_label",
"description": "A longer description of the image"
}' \
https://api.linode.com/v4/images
linode-cli images create \
--label this_is_a_label \
--description "A longer description \
of the image" \
--disk_id 123
Response Samples
{
"created": "2018-01-01T00:01:01",
"created_by": "somename",
"deprecated": false,
"description": "The detailed description of my Image.",
"eol": "2200-10-23T00:00:00",
"expiry": "2018-08-01T00:01:01",
"id": "private/67848373",
"is_public": false,
"label": "My gold-master image",
"size": 2500,
"type": "manual",
"updated": "2019-01-02T00:01:01",
"vendor": null
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
created | string <date-time> When this Image was created. |
created_by | string The name of the User who created this Image. |
deprecated Filterable | boolean Whether or not this Image is deprecated. Will only be True for deprecated public Images. |
description | string A detailed description of this Image. |
eol | string <date-time> The date of the image’s planned end of life. Some images, like custom private images, will not have an end of life date. In that case this field will be |
expiry | string <date-time> Only Images created automatically (from a deleted Linode; type=automatic) will expire. |
id | string The unique ID of this Image. |
is_public Filterable | boolean True if the Image is public. |
label Filterable | string A short description of the Image. Labels cannot contain special characters. |
size Filterable | integer The minimum size this Image needs to deploy. Size is in MB. |
type | string Enum:
manual
automatic How the Image was created. “Manual” Images can be created at any time. “Automatic” images are created automatically from a deleted Linode. |
updated | string <date-time> When this Image was last updated. |
vendor Filterable Nullable | string The upstream distribution vendor. |
errors | array of objects
|
Image Delete
Deletes a private Image you have permission to read_write
.
Deleting an Image is a destructive action and cannot be undone.
Authorizations
personalAccessToken | |
oauth | images:read_write |
Path Parameters
imageId | string RequiredID of the Image to look up. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4/images/private/67848373
linode-cli images delete 67848373
Response Samples
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array of objects
|
Image View
Get information about a single Image.
Authorizations
Path Parameters
imageId | string RequiredID of the Image to look up. |
Request Samples
curl https://api.linode.com/v4/images/linode/debian9
linode-cli images view linode/debian9
Response Samples
{
"created": "2018-01-01T00:01:01",
"created_by": "somename",
"deprecated": false,
"description": "The detailed description of my Image.",
"eol": "2200-10-23T00:00:00",
"expiry": "2018-08-01T00:01:01",
"id": "private/67848373",
"is_public": false,
"label": "My gold-master image",
"size": 2500,
"type": "manual",
"updated": "2019-01-02T00:01:01",
"vendor": null
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
created | string <date-time> When this Image was created. |
created_by | string The name of the User who created this Image. |
deprecated Filterable | boolean Whether or not this Image is deprecated. Will only be True for deprecated public Images. |
description | string A detailed description of this Image. |
eol | string <date-time> The date of the image’s planned end of life. Some images, like custom private images, will not have an end of life date. In that case this field will be |
expiry | string <date-time> Only Images created automatically (from a deleted Linode; type=automatic) will expire. |
id | string The unique ID of this Image. |
is_public Filterable | boolean True if the Image is public. |
label Filterable | string A short description of the Image. Labels cannot contain special characters. |
size Filterable | integer The minimum size this Image needs to deploy. Size is in MB. |
type | string Enum:
manual
automatic How the Image was created. “Manual” Images can be created at any time. “Automatic” images are created automatically from a deleted Linode. |
updated | string <date-time> When this Image was last updated. |
vendor Filterable Nullable | string The upstream distribution vendor. |
errors | array of objects
|
Image Update
Updates a private Image that you have permission to read_write
.
Authorizations
personalAccessToken | |
oauth | images:read_write |
Path Parameters
imageId | string RequiredID of the Image to look up. |
Request Body Schema
description | string A detailed description of this Image. |
label Filterable | string A short description of the Image. Labels cannot contain special characters. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"label": "My gold-master image",
"description": "The detailed description of my Image."
}' \
https://api.linode.com/v4/images/private/67848373
linode-cli images update private/67848373 \
--label "My gold-master image" \
--description "The detailed description \
of my Image."
Response Samples
{
"created": "2018-01-01T00:01:01",
"created_by": "somename",
"deprecated": false,
"description": "The detailed description of my Image.",
"eol": "2200-10-23T00:00:00",
"expiry": "2018-08-01T00:01:01",
"id": "private/67848373",
"is_public": false,
"label": "My gold-master image",
"size": 2500,
"type": "manual",
"updated": "2019-01-02T00:01:01",
"vendor": null
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
created | string <date-time> When this Image was created. |
created_by | string The name of the User who created this Image. |
deprecated Filterable | boolean Whether or not this Image is deprecated. Will only be True for deprecated public Images. |
description | string A detailed description of this Image. |
eol | string <date-time> The date of the image’s planned end of life. Some images, like custom private images, will not have an end of life date. In that case this field will be |
expiry | string <date-time> Only Images created automatically (from a deleted Linode; type=automatic) will expire. |
id | string The unique ID of this Image. |
is_public Filterable | boolean True if the Image is public. |
label Filterable | string A short description of the Image. Labels cannot contain special characters. |
size Filterable | integer The minimum size this Image needs to deploy. Size is in MB. |
type | string Enum:
manual
automatic How the Image was created. “Manual” Images can be created at any time. “Automatic” images are created automatically from a deleted Linode. |
updated | string <date-time> When this Image was last updated. |
vendor Filterable Nullable | string The upstream distribution vendor. |
errors | array of objects
|