Creates a new Linode instance on your account. This incurs a charge on your account.
-
There are several types of Linode you can choose from. Each provides a different size, processing potential, and cost. Run the List Linode types operation for information on each available type.
-
You can create a Linode in any available regions. Run the List regions operation to see what's available.
-
You need to provide at least one authentication mechanism for disk access: a
root_pass,authorized_keys, orauthorized_users, with the latter two offering SSH protection. -
To fight spam, Akamai restricts outbound connections on ports 25, 465, and 587 on all Linodes. For more information, see our guide on Running a Mail Server.
-
To add or modify
tagson a Linode, your account user needsread-writeaccess for Linode instances and Tags operations. Talk to your local account administrator about access management.
There are several ways to create a Linode, using the objects available in this operation:
Use an Image
This includes using a Linode public image distribution or a private image that you created, based on another Linode.
There are tutorialsWe offer example API workflows you can follow for both public image distributions as well as private images.
Use cloud-init
Our cloud-init solution with Metadata automates system configuration and software installation by providing a base-64 encoded cloud-config file.
-
You need a compatible image. To check for compatibility, run the List images operation and check for
cloud-initundercapabilities. -
This also requires a compatible region. Run the List regions operation and look for
Metadataundercapabilitiesfor a specificregion.
Use a StackScript
You can use a StackScript to automate deployment of new systems, through a customized script.
There's a tutorialWe offer an example API workflow you can follow to create a new Linode using a StackScript.
Use a Linode backup
You can create a backup of an existing Linode and restore it to a new one.
There's a tutorialWe offer an example API workflow you can follow to create a new Linode using a backup.
Create an empty Linode
-
Use this operation to create a new one.
-
The Linode will remain
offlineand you need to manually start it. Run the Boot a Linode operation. -
Manually create the Linode's disks and configuration profiles (legacy) or configuration profile interfaces.
You should only use this method for advanced use cases.
Linodes and interfaces
Depending on your account settings, you can choose between legacy configuration interfaces or Linode interfaces when creating a Linode. Only one type of interface is allowed per Linode. The interface_generation field lets you select one interface type for new Linodes when both legacy and Linode interfaces options are available on your account. If a Linode is configured with a Linode interface, legacy configuration interfaces can no longer be used on that Linode.
Permissions and scopes
To call this operation, you need permissions, based on the model you're using:
-
Identity and access permissions. Your user needs a role with these permissions. Learn more.
- Permissions:
create_linode
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
linodes:read_write
- Scopes:
CLI
linode-cli linodes create \
--label linode123 \
--root_pass aComplex@Password \
--booted true \
--stackscript_id 10079 \
--stackscript_data '{"gh_username": "linode"}' \
--region us-east \
--disk_encryption enabled\
--placement_group.id 528 \
--type g6-standard-2 \
--authorized_keys "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer" \
--authorized_users "myUser" \
--authorized_users "secondaryUser" \
--metadata.user_data "I2Nsb3VkLWNvbmZpZw==" \
--firewall_id 9000 \
--ipv4 "192.0.2.141"