Metadata API
You can fetch server configurations and settings via the Metadata API.
Querying the Metadata API
{
"hostname": "server.example.org",
"instance_type": {
"name": "bm7.std.8",
"cpu": {
"name": "Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz",
"base_clock": 3400,
"cpu_count": 1,
"cpu_cores": 8
},
"memory": {
"type": "ddr4",
"size": 32
},
"network_interfaces": [
{
"type": "1 Gbps",
"count": 2
}
],
"disks": [
{
"type": "ssd",
"size": 480
}
]
},
"location": {
"dc_code": "nlrtm1",
"name": "EU: Rotterdam"
},
"network_interfaces": [
{
"is_bond": true,
"mac_address": "10:98:36:A0:83:DD",
"name": "bond0",
"networks": [
{
"ip": "5.200.22.205",
"netmask": "255.255.255.192",
"prefix": "26",
"gateway": "5.200.22.193",
"vlan_id": 2602
},
{
"ip": "2a00:1630:2602:6::",
"prefix": "48",
"gateway": "2a00:1630:2602::1",
"vlan_id": 2602
}
],
"child_interfaces": [
{
"mac_address": "10:98:36:A0:83:DD",
"name": "eno0"
},
{
"mac_address": "10:98:36:A0:83:DE",
"name": "eno1"
}
]
}
],
"operating_system": {
"slug": "ubuntu-2404-lts",
"name": "Ubuntu",
"version": "24.04"
},
"server_id": "019bff06-a8ac-72e6-a0cb-82ac3f2dd000",
"ssh_keys": [
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHo8IaPkQ6UnDZvi4F4RBSouRa6Gtysdg2EF+SIXheVF2SGBQ2uH7RfDjXRfvq4VpHJrKYs4kWfNoHQg8ZG6PH4="
],
"tags": [
"a-tag"
]
}Userdata
Last updated
Was this helpful?