Skip to main content

kernels

Creates, updates, deletes, gets or lists a kernels resource.

Overview

Namekernels
TypeResource
Iddigitalocean.droplets.kernels

Fields

NameDatatypeDescription
idintegerA unique number used to identify and reference a specific kernel.
namestringThe display name of the kernel. This is shown in the web UI and is generally a descriptive title for the kernel in question.
versionstringA standard kernel version string representing the version, patch, and release information.

Methods

NameAccessible byRequired ParamsDescription
droplets_list_kernelsSELECTdroplet_idTo retrieve a list of all kernels available to a Droplet, send a GET request to /v2/droplets/$DROPLET_ID/kernels The response will be a JSON object that has a key called kernels. This will be set to an array of kernel objects, each of which contain the standard kernel attributes.

SELECT examples

To retrieve a list of all kernels available to a Droplet, send a GET request to /v2/droplets/$DROPLET_ID/kernels The response will be a JSON object that has a key called kernels. This will be set to an array of kernel objects, each of which contain the standard kernel attributes.

SELECT
id,
name,
version
FROM digitalocean.droplets.kernels
WHERE droplet_id = '{{ droplet_id }}';