kernels
Creates, updates, deletes, gets or lists a kernels resource.
Overview
| Name | kernels |
| Type | Resource |
| Id | linode.linode.kernels |
Fields
The following fields are returned by SELECT queries:
- get
- list
A single Kernel object.
| Name | Datatype | Description |
|---|---|---|
id | string | Read-only The unique ID of this Kernel. (example: linode/latest-64bit) |
architecture | string | Filterable, Read-only The architecture of this Kernel. (x86_64, i386) (example: x86_64) |
built | string (date-time) | Read-only The date on which this Kernel was built. (example: 2018-01-01T00:01:01) |
deprecated | boolean | Filterable, Read-only If this Kernel is marked as deprecated, this field has a value of true; otherwise, this field is false. |
kvm | boolean | Filterable, Read-only If this Kernel is suitable for KVM Linodes. |
label | string | Filterable, Read-only The friendly name of this Kernel. (example: Latest 64 bit (4.15.7-x86_64-linode102)) |
pvops | boolean | Filterable, Read-only If this Kernel is suitable for paravirtualized operations. |
version | string | Filterable, Read-only Linux Kernel version. (example: 4.15.7) |
Returns an array of Kernels.
| Name | Datatype | Description |
|---|---|---|
id | string | Read-only The unique ID of this Kernel. (example: linode/latest-64bit) |
architecture | string | Filterable, Read-only The architecture of this Kernel. (x86_64, i386) (example: x86_64) |
built | string (date-time) | Read-only The date on which this Kernel was built. (example: 2018-01-01T00:01:01) |
deprecated | boolean | Filterable, Read-only If this Kernel is marked as deprecated, this field has a value of true; otherwise, this field is false. |
kvm | boolean | Filterable, Read-only If this Kernel is suitable for KVM Linodes. |
label | string | Filterable, Read-only The friendly name of this Kernel. (example: Latest 64 bit (4.15.7-x86_64-linode102)) |
pvops | boolean | Filterable, Read-only If this Kernel is suitable for paravirtualized operations. |
version | string | Filterable, Read-only Linux Kernel version. (example: 4.15.7) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | kernelId | Returns information about a single Kernel. Learn more... | |
list | select | page, page_size | Lists available Kernels. Due to the extensive list of available kernels, please keep pagination controls in mind when managing responses to this operation. Learn more... |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
kernelId | string | ID of the Kernel to look up. (example: {{kernelId}}) |
page | integer | The page of a collection to return. |
page_size | integer | The number of items to return per page. |
SELECT examples
- get
- list
Returns information about a single Kernel.
Learn more...
SELECT
id,
architecture,
built,
deprecated,
kvm,
label,
pvops,
version
FROM linode.linode.kernels
WHERE kernelId = '{{ kernelId }}' -- required
;
Lists available Kernels.
Due to the extensive list of available kernels, please keep pagination controls in mind when managing responses to this operation.
Learn more...
SELECT
id,
architecture,
built,
deprecated,
kvm,
label,
pvops,
version
FROM linode.linode.kernels
WHERE page = '{{ page }}'
AND page_size = '{{ page_size }}'
;