Skip to main content

config_profiles

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

Overview

Nameconfig_profiles
TypeResource
Idlinode.linode.config_profiles

Fields

The following fields are returned by SELECT queries:

A configuration profile object.

NameDatatypeDescription
idintegerRead-only The ID of this Config.
commentsstringOptional field for arbitrary user comments on this configuration. (example: This is my main Config)
devicesobjectA dictionary of device disks to use as a device map in a Linode's configuration profile. - An empty device disk dictionary or a dictionary with empty values for device slots is allowed. - If no devices are specified, booting from this configuration will hold until a device exists that allows the boot process to start.
helpersobjectHelpers enabled when booting to this Linode configuration.
interfacesarrayinterfaces is applicable only to legacy configuration profiles and does not apply to Linode interfaces. From one to three network interfaces to add to this Linode's configuration profile. The position in the array determines which of the Linode's network interfaces is configured: - First [0]: eth0 - Second [1]: eth1 - Third [2]: eth2 When updating a Linode's legacy interfaces, each interface must be redefined. An empty interfaces array results in a default public type interface configuration only. If no public Interface is configured, public IP addresses are still assigned to the Linode but will not be usable without manual configuration. > 📘 > > Changes to Linode Interface configurations can be enabled by rebooting the Linode. vpc details See the VPC documentation guide for its specifications and limitations. vlan details - Only Next Generation Network (NGN) data centers support VLANs. Run the List regions operation to view the capabilities of data center regions. If a VLAN is attached to your Linode and you attempt to migrate or clone it to a non-NGN data center, the migration or cloning will not initiate. If a Linode cannot be migrated or cloned because of an incompatibility, you will be prompted to select a different data center or contact support. - See the VLANs Overview guide to view additional specifications and limitations.
kernelstringThe ID of the kernel used to boot a Linode. Run the List kernels operation to see all available kernels. Here are some commonly used kernels: - linode/latest-64bit. This is the default, our latest kernel at the time of an instance boot or reboot. - linode/grub2. The upstream distribution-supplied kernel that's installed on the primary disk, or a custom kernel if installed. - linode/direct-disk. The master boot record (MBR) of the primary disk or root device. Use this in place of a Linux kernel. (default: linode/latest-64bit, example: linode/latest-64bit)
labelstringFilterable The name of the configuration for display in Akamai Cloud Manager. (example: My Config)
memory_limitintegerDefaults to the total RAM of the Linode.
root_devicestringThe root device to boot. > 📘 - If you leave this empty or set an invalid value, the root device defaults to /dev/sda. - If you specify a device at the root device location and it's not mounted, the Linode won't boot until a device is mounted. (example: /dev/sda, pattern: a-z, A-Z, 0-9, /, _, -)
run_levelstringDefines the state of your Linode after booting. Defaults to default. (example: default)
virt_modestringControls the virtualization mode. Defaults to paravirt. - paravirt is suitable for most cases. Linodes running in paravirt mode share some qualities with the host, ultimately making it run faster since there is less transition between it and the host. - fullvirt affords more customization, but is slower because 100% of the VM is virtualized. (example: paravirt)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_linode_configselectReturns information about a specific configuration profile.

Learn more...

Learn more...
get_linode_configsselectpage, page_sizeLists configuration profiles associated with a Linode.

Learn more...

Learn more...
post_add_linode_configinsertdata__label, data__devicesAdds a new configuration profile to a Linode.

> 📘
>
> This operation is for legacy configuration profiles only, and not Linode interfaces.

Learn more...

Learn more...
put_linode_configreplaceUpdates a configuration profile.

Learn more...

Learn more...
delete_linode_configdeleteDeletes the specified configuration profile from the specified Linode.

Learn more...

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.

NameDatatypeDescription
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns information about a specific configuration profile.

Learn more...

Learn more...

SELECT
id,
comments,
devices,
helpers,
interfaces,
kernel,
label,
memory_limit,
root_device,
run_level,
virt_mode
FROM linode.linode.config_profiles;

INSERT examples

Adds a new configuration profile to a Linode.

> 📘
>
> This operation is for legacy configuration profiles only, and not Linode interfaces.

Learn more...

Learn more...

INSERT INTO linode.linode.config_profiles (
data__comments,
data__devices,
data__helpers,
data__interfaces,
data__kernel,
data__label,
data__memory_limit,
data__root_device,
data__run_level,
data__virt_mode
)
SELECT
'{{ comments }}',
'{{ devices }}' --required,
'{{ helpers }}',
'{{ interfaces }}',
'{{ kernel }}',
'{{ label }}' --required,
{{ memory_limit }},
'{{ root_device }}',
'{{ run_level }}',
'{{ virt_mode }}'
RETURNING
id,
comments,
devices,
helpers,
interfaces,
kernel,
label,
memory_limit,
root_device,
run_level,
virt_mode
;

REPLACE examples

Updates a configuration profile.

Learn more...

Learn more...

REPLACE linode.linode.config_profiles
SET
data__comments = '{{ comments }}',
data__devices = '{{ devices }}',
data__helpers = '{{ helpers }}',
data__interfaces = '{{ interfaces }}',
data__kernel = '{{ kernel }}',
data__label = '{{ label }}',
data__memory_limit = {{ memory_limit }},
data__root_device = '{{ root_device }}',
data__run_level = '{{ run_level }}',
data__virt_mode = '{{ virt_mode }}'
WHERE

RETURNING
id,
comments,
devices,
helpers,
interfaces,
kernel,
label,
memory_limit,
root_device,
run_level,
virt_mode;

DELETE examples

Deletes the specified configuration profile from the specified Linode.

Learn more...

Learn more...

DELETE FROM linode.linode.config_profiles;