Attach a Block Storage volume to an existing Linode.
The volume and its target Linode need to exist in the same
region. You can run the List volumes and List Linodes operations and review theregionfor each.There's a maximum number of volumes that can be attached to a single Linode configuration. This number varies, based on the Linode's plan, with higher plan types supporting more volumes. The maximum follows a formula of the Linode plan's
total_ram / 1024, with a minimum of 8 and a total maximum of 64 volumes. Rescue configurations support a maximum of 8.
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:
attach_volume
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
volumes:read_write, linodes:read_write
- Scopes:
CLI
linode-cli volumes attach 12345 \
--linode_id 12346 \
--config_id 23456