Tags are User-defined labels attached to objects in your Account, such as Linodes. They are used for specifying and grouping attributes of objects that are relevant to the User.
This operation returns a paginated list of Tags on your account.
Important: You must be an unrestricted User in order to access, add, or modify Tags information.
The field in the request that caused this error. This may be a path,
separated by periods in the case of nested fields. In
some cases this may come back as “null” if the error is
not specific to any single element of the request.
reason
string
What happened to cause this error. In most cases, this can be fixed
immediately by changing the data you sent in the request,
but in some cases you will be instructed to Open a support
ticket
or perform some other action before you can complete the
request successfully.
Create a tag
POST
https://api.linode.com/v4/tags
Creates a new Tag and optionally tags requested objects with it immediately.
Important: You must be an unrestricted User in order to access, add, or modify Tags information.
A list of Domain IDs to apply the new Tag to. You must be allowed to read_write
all of the requested Domains, or the Tag will not be created and
an error will be returned.
label
Required
string
3..50
characters
The new Tag.
linodes
array
of integers
A list of Linode IDs to apply the new Tag to. You must be allowed to read_write
all of the requested Linodes, or the Tag will not be created and
an error will be returned.
nodebalancers
array
of integers
A list of NodeBalancer IDs to apply the new Tag to. You must be allowed to read_write
all of the requested NodeBalancers, or the Tag will not be created
and an error will be returned.
volumes
array
of integers
A list of Volume IDs to apply the new Tag to. You must be allowed to read_write
all of the requested Volumes, or the Tag will not be created and
an error will be returned.
Response Samples
{"label":"example tag"}
{"errors":[{"field":"fieldname","reason":"fieldname must be a valid value"}]}
Responses
The new Tag.
label
string
A Label used for organization of objects on your Account.
Error
errors
array
of objects
field
string
The field in the request that caused this error. This may be a path,
separated by periods in the case of nested fields. In
some cases this may come back as “null” if the error is
not specific to any single element of the request.
reason
string
What happened to cause this error. In most cases, this can be fixed
immediately by changing the data you sent in the request,
but in some cases you will be instructed to Open a support
ticket
or perform some other action before you can complete the
request successfully.
Delete a tag
DELETE
https://api.linode.com/v4/tags/{tagLabel}
Remove a Tag from all objects and delete it.
Important: You must be an unrestricted User in order to access, add, or modify Tags information.
{"errors":[{"field":"fieldname","reason":"fieldname must be a valid value"}]}
Responses
Tag deleted.
Error
errors
array
of objects
field
string
The field in the request that caused this error. This may be a path,
separated by periods in the case of nested fields. In
some cases this may come back as “null” if the error is
not specific to any single element of the request.
reason
string
What happened to cause this error. In most cases, this can be fixed
immediately by changing the data you sent in the request,
but in some cases you will be instructed to Open a support
ticket
or perform some other action before you can complete the
request successfully.
List tagged objects
GET
https://api.linode.com/v4/tags/{tagLabel}
Returns a paginated list of all objects you’ve tagged with the requested Tag. This is a mixed collection of all object types.
Important: You must be an unrestricted User in order to access, add, or modify Tags information.
{"errors":[{"field":"fieldname","reason":"fieldname must be a valid value"}]}
Responses
A paginated list of objects, organized by type, that have been tagged with the requested Tag.
data
array
of objects
data
object
alerts
object
cpu
integer
The percentage of CPU usage required to trigger an alert. If the average CPU usage over two hours exceeds this value, we’ll send you an alert. Your Linode’s total CPU capacity is represented as 100%, multiplied by its number of cores.
For example, a two core Linode’s CPU capacity is represented as 200%. If you want to be alerted at 90% of a two core Linode’s CPU capacity, set the alert value to 180.
The default value is 90% multiplied by the number of cores.
If the value is set to 0 (zero), the alert is disabled.
io
integer
The amount of disk IO operation per second required
to trigger an alert. If the average disk IO
over two hours exceeds this value, we’ll send
you an alert. If set to 0 (zero), this alert
is disabled.
network_in
integer
The amount of incoming traffic, in Mbit/s, required
to trigger an alert. If the average incoming
traffic over two hours exceeds this value, we’ll
send you an alert. If this is set to 0 (zero),
the alert is disabled.
network_out
integer
The amount of outbound traffic, in Mbit/s, required
to trigger an alert. If the average outbound
traffic over two hours exceeds this value, we’ll
send you an alert. If this is set to 0 (zero),
the alert is disabled.
transfer_quota
integer
The percentage of network transfer that may be used
before an alert is triggered. When this value
is exceeded, we’ll alert you. If this is set
to 0 (zero), the alert is disabled.
backups
object
Information about this Linode’s backups status. For information
about available backups, run List backups.
available
boolean
Read-only Whether Backups for this Linode are available for restoration.
Backups undergoing maintenance are not available for restoration.
enabled
boolean
Read-only If this Linode has the Backup service enabled.
To enable backups, run Enable backups.
last_successful
string<date-time>
Read-only The last successful backup date. ’null’ if there
was no previous backup.
The day of the week that your Linode’s weekly Backup is taken. If not set manually, a day will be chosen for you. Backups are taken every day, but backups taken on this day are preferred when selecting backups to retain for a longer period.
If not set manually, then when backups are initially enabled, this may come back as Scheduling until the day is automatically selected.
window
Nullable
string
Enum:
SchedulingW0W2W4W6W8W10W12W14W16W18W20W22
The window in which your backups will be taken, in UTC. A backups window is a two-hour span of time in which the backup may occur.
For example, W10 indicates that your backups should be taken between 10:00 and 12:00. If you do not choose a backup window, one will be selected for you automatically.
If not set manually, when backups are initially enabled this may come back as Scheduling until the window is automatically selected.
created
string<date-time>
Read-only When this Linode was created.
disk_encryption
string
Enum:
enableddisabled
Default:
enabled
Local disk encryption ensures that your data stored on compute
instances is encrypted. Encryption converts the
data on the compute instance into unreadable code.
Decryption of the the disk requires other systems
within the datacenter. This requirement protects
against data leakage if the disk is removed from
a datacenter, lost, stolen, recycled or disposed.
group
string
A deprecated property denoting a group label for this Linode.
has_user_data
boolean
Read-only Whether this compute instance was provisioned utilizing
user_data provided via the Metadata service. See
the Create a Linode
description for more information on Metadata.
host_uuid
string<uuid>
Read-only The Linode’s host machine, as a UUID.
hypervisor
string
Enum:
kvm
Read-only The virtualization software powering this Linode.
id
integer
Read-only This Linode’s ID which must be provided for all
operations impacting this Linode.
image
Nullable
string
An Image ID to deploy the Linode Disk from.
Run the List images operation with authentication to view all available Images. Official Linode Images start with linode/, while your Account’s Images start with private/. Creating a disk from a Private Image requires read_only or read_write permissions for that Image. Run the Update a user’s grants operation to adjust permissions for an Account Image.
ipv4
array
of strings
<ipv4>
Read-only This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to Open a support ticket to get additional IPv4 addresses.
IPv4 addresses may be reassigned between your Linodes, or shared with other Linodes. See the networking operations for details.
ipv6
Nullable
string<ipv6/128>
Read-only This Linode’s IPv6 SLAAC address. This address is
specific to a Linode, and may not be shared. If
the Linode has not been assigned an IPv6 address,
the return value will be null.
label
string
3..64
characters
The Linode’s label is for display purposes only. If no label is provided for a Linode, a default will be assigned.
Linode labels have the following constraints:
Must begin and end with an alphanumeric character.
May only consist of alphanumeric characters, hyphens (-), underscores (_) or periods (.).
Cannot have two hyphens (--), underscores (__) or periods (..) in a row.
placement_group
Nullable
object
Read-only Details on the placement group
that this Linode belongs to. Empty if the Linode
isn’t in a placement group.
affinity_type
string
Read-only How compute instances are distributed in your placement group. anti-affinity:local places compute instances in separate fault domains, but still in the same region.
Note: With the limited availability release, only anti_affinity:local is available for affinity_type.
id
integer
The placement group’s ID. You need to provide it
for all operations impacting it.
is_strict
boolean
How the API enforces your affinity_type:
Set to true, your group is strict. You can’t add more compute instances to your placement group if your preferred container lacks capacity or is unavailable.
Set to false, your group is flexible. You can add more compute instances to it even if they violate the affinity_type. If you violate the affinity_type your placement group becomes non-compliant and you need to wait for our assistance.
label
string
1..
characters
The unique name set for the placement group. A label has these constraints:
It needs to begin and end with an alphanumeric character.
It can only consist of alphanumeric characters, hyphens (-), underscores (_) or periods (.).
region
string
Read-only This is the region
where the Linode was deployed. A Linode’s region
can only be changed by initiating a cross data
center migration.
specs
object
Read-only Information about the resources available to this
Linode.
disk
integer
Read-only The amount of storage space, in MB, this Linode
has access to. A typical Linode will divide
this space between a primary disk with an image
deployed to it, and a swap disk, usually 512
MB. This is the default configuration created
when deploying a Linode with an image through
Create a Linode.
While this configuration is suitable for 99%
of use cases, if you need finer control over
your Linode’s disks, see the List disks
operations.
gpus
integer
Read-only The number of gpus this Linode has access to.
memory
integer
Read-only The amount of RAM, in MB, this Linode has access to.
Typically, a Linode boots with all of its available RAM, but this can be configured in a Config profile. See the List config profiles operations and the LinodeConfig object for more information.
transfer
integer
Read-only The amount of network transfer this Linode is
allotted each month.
vcpus
integer
Read-only The number of vcpus this Linode has access to.
Read-only A brief description of this Linode’s current state.
This field may change without direct action from
you. For example, when a Linode goes into maintenance
mode its status will display “stopped”.
tags
array
of strings
An array of tags applied to this object. Tags are for organizational
purposes only.
type
string
Read-only This is the Linode type
that this Linode was deployed with. To change a
Linode’s Type, use Resize a Linode.
updated
string<date-time>
Read-only When this Linode was last updated.
watchdog_enabled
boolean
The watchdog, named Lassie, is a Shutdown Watchdog that monitors
your Linode and will reboot it if it powers off
unexpectedly. It works by issuing a boot job when
your Linode powers off without a shutdown job being
responsible. To prevent a loop, Lassie will give
up if there have been more than 5 boot jobs issued
within 15 minutes.
data
object
A domain zonefile in our DNS system. You must own the domain name and
tell your registrar to use Linode’s nameservers in order
for a domain in our system to be treated as authoritative.
axfr_ips
array
of strings
The list of IPs that may perform a zone transfer for this Domain. The total combined length of all data within this array cannot exceed 1000 characters.
Note: This is potentially dangerous, and should be set to an empty list unless you intend to use it.
description
string
1..253
characters
A description for this Domain. This is for display purposes only.
domain
string
1..253
characters
The domain this Domain represents. Domain labels cannot be
longer than 63 characters and must conform to RFC1035.
Domains must be unique on Linode’s platform, including
across different Linode accounts; there cannot be
two Domains representing the same domain.
expire_sec
integer
The amount of time in seconds that may pass before this Domain is no longer authoritative.
Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
Any other value is rounded up to the nearest valid value.
A value of 0 is equivalent to the default value of 1209600.
group
string
1..50
characters
The group this Domain belongs to. This is for display purposes
only.
id
integer
Read-only This Domain’s unique ID
master_ips
array
of strings
The IP addresses representing the master DNS for this Domain.
At least one value is required for type slave
Domains. The total combined length of all data within
this array cannot exceed 1000 characters.
refresh_sec
integer
The amount of time in seconds before this Domain should be refreshed.
Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
Any other value is rounded up to the nearest valid value.
A value of 0 is equivalent to the default value of 14400.
retry_sec
integer
The interval, in seconds, at which a failed refresh should be retried.
Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
Any other value is rounded up to the nearest valid value.
A value of 0 is equivalent to the default value of 14400.
soa_email
string<email>
Start of Authority email address. This is required for type
master Domains.
status
string
Enum:
disabledactive
Default:
active
Used to control whether this Domain is currently being rendered.
tags
array
of strings
An array of tags applied to this object. Tags are for organizational
purposes only.
ttl_sec
integer
“Time to Live” - the amount of time in seconds that this Domain’s records may be cached by resolvers or other domain servers.
Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
Any other value is rounded up to the nearest valid value.
A value of 0 is equivalent to the default value of 86400.
type
string
Enum:
masterslave
Whether this Domain represents the authoritative source
of information for the domain it describes (“master”),
or whether it is a read-only copy of a master (“slave”).
data
object
A Block Storage Volume associated with your Account.
created
string<date-time>
Read-only When this Volume was created.
filesystem_path
string
Read-only The full filesystem path for the Volume based on
the Volume’s label. Path is /dev/disk/by-id/scsi-0Linode_Volume_
Volume label.
hardware_type
string
Enum:
hddnvme
Read-only The storage type of this Volume.
id
integer
Read-only The unique ID of this Volume.
label
string
1..32
characters
The Volume’s label is for display purposes only.
linode_id
Nullable
integer
If a Volume is attached to a specific Linode, the ID of that
Linode will be displayed here.
linode_label
Nullable
string
Read-only If a Volume is attached to a specific Linode, the
label of that Linode will be displayed here.
region
string
Read-only The unique ID of this Region.
size
integer
The Volume’s size, in GiB.
status
string
Enum:
creatingactiveresizing
Read-only The current status of the volume. Can be one of:
creating - the Volume is being created and is not yet available
for use.
active - the Volume is online and available for use.
resizing - the Volume is in the process of upgrading
its current capacity.
tags
array
of strings
An array of Tags applied to this object. Tags are for organizational
purposes only.
updated
string<date-time>
Read-only When this Volume was last updated.
data
object
Linode’s load balancing solution. Can handle multiple ports, SSL
termination, and any number of backends. NodeBalancer
ports are configured with NodeBalancer Configs, and
each config is given one or more NodeBalancer Node that
accepts traffic. The traffic should be routed to the NodeBalancer’s
ip address, the NodeBalancer will handle routing individual
requests to backends.
client_conn_throttle
integer
0..20
Throttle connections per second. Set to 0 (zero) to disable
throttling.
created
string<date-time>
Read-only When this NodeBalancer was created.
host
string
Read-only This NodeBalancer’s hostname, beginning with its
IP address and ending with .ip.linodeusercontent.com.
id
integer
Read-only This NodeBalancer’s unique ID.
ipv4
string<ip>
Read-only This NodeBalancer’s public IPv4 address.
ipv6
Nullable
string<ip>
Read-only This NodeBalancer’s public IPv6 address.
label
string
3..32
characters
This NodeBalancer’s label. These must be unique on your Account.
region
string
Read-only The Region where this NodeBalancer is located. NodeBalancers
only support backends in the same Region.
tags
array
of strings
An array of Tags applied to this object. Tags are for organizational
purposes only.
transfer
object
Read-only Information about the amount of transfer this NodeBalancer
has had so far this month.
in
Nullable
number
Read-only The total outbound transfer, in MB, used for
this NodeBalancer this month.
out
Nullable
number
Read-only The total inbound transfer, in MB, used for
this NodeBalancer this month.
total
Nullable
number
Read-only The total transfer, in MB, used by this NodeBalancer
this month.
updated
string<date-time>
Read-only When this NodeBalancer was last updated.
The field in the request that caused this error. This may be a path,
separated by periods in the case of nested fields. In
some cases this may come back as “null” if the error is
not specific to any single element of the request.
reason
string
What happened to cause this error. In most cases, this can be fixed
immediately by changing the data you sent in the request,
but in some cases you will be instructed to Open a support
ticket
or perform some other action before you can complete the
request successfully.