kernels
Creates, updates, deletes, gets or lists a kernels
resource.
Overview
Name | kernels |
Type | Resource |
Id | digitalocean.droplets.kernels |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | A unique number used to identify and reference a specific kernel. |
name | string | The display name of the kernel. This is shown in the web UI and is generally a descriptive title for the kernel in question. |
version | string | A standard kernel version string representing the version, patch, and release information. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
droplets_list_kernels | SELECT | droplet_id | 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
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 }}';