prometheus/discovery/scaleway/testdata/instance.json
Jules Casteran 7766f2f06c
tests(scaleway-sd): add case with multiple routed ips
Signed-off-by: Jules Casteran <jcasteran@scaleway.com>
2024-06-07 16:36:44 +02:00

577 lines
18 KiB
JSON

{
"servers": [
{
"id": "93c18a61-b681-49d0-a1cc-62b43883ae89",
"name": "scw-nervous-shirley",
"arch": "x86_64",
"commercial_type": "DEV1-S",
"boot_type": "local",
"organization": "cb334986-b054-4725-9d3a-40850fdc6015",
"project": "cb334986-b054-4725-9d5a-30850fdc6015",
"hostname": "scw-nervous-shirley",
"image": {
"id": "45a86b35-eca6-4055-9b34-ca69845da146",
"name": "Ubuntu 18.04 Bionic Beaver",
"organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"root_volume": {
"id": "b45d391a-90d7-4f0f-8a07-80806b31be94",
"name": "ubuntu_18.04_bionic_beaver:volume-0",
"volume_type": "l_ssd",
"size": 10000000000
},
"extra_volumes": {},
"public": true,
"arch": "x86_64",
"creation_date": "2021-03-05T14:31:33.729260+00:00",
"modification_date": "2021-03-05T14:31:33.729260+00:00",
"default_bootscript": null,
"from_server": null,
"state": "available",
"zone": "fr-par-1"
},
"volumes": {
"0": {
"id": "0dd09f67-a04a-495d-aae4-0ce437c87160",
"name": "ubuntu_18.04_bionic_beaver:volume-0",
"volume_type": "l_ssd",
"export_uri": null,
"organization": "cb334986-b054-4725-9d5a-40850fdc6015",
"project": "cb334986-b054-4725-9d5a-40850fdc6015",
"server": {
"id": "93c18a61-b681-49d0-a1cc-62b43883ae89",
"name": "scw-nervous-shirley"
},
"size": 20000000000,
"state": "available",
"creation_date": "2021-03-08T21:34:35.844665+00:00",
"modification_date": "2021-03-08T21:34:35.844665+00:00",
"zone": "fr-par-1"
}
},
"tags": [],
"state": "running",
"protected": false,
"state_detail": "booted",
"public_ip": null,
"ipv6": {
"address": "2001:bc8:630:1e1c::1",
"gateway": "2001:bc8:630:1e1c::",
"netmask": "64"
},
"extra_networks": [],
"dynamic_ip_required": false,
"enable_ipv6": true,
"private_ip": "10.70.60.57",
"creation_date": "2021-03-08T21:34:35.844665+00:00",
"modification_date": "2021-03-08T21:35:11.098337+00:00",
"bootscript": {
"id": "fdfe150f-a870-4ce4-b432-9f56b5b995c1",
"public": true,
"title": "x86_64 mainline 4.4.230 rev1",
"architecture": "x86_64",
"organization": "11111111-1111-4111-8111-111111111111",
"project": "11111111-1111-4111-8111-111111111111",
"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.4-4.4.230-rev1/vmlinuz-4.4.230",
"dtb": "",
"initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz",
"bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16",
"default": true,
"zone": "fr-par-1"
},
"security_group": {
"id": "a6a794b7-c05b-4b20-b9fe-e17a9bb85cf0",
"name": "Default security group"
},
"location": {
"zone_id": "fr-par-1",
"platform_id": "14",
"cluster_id": "40",
"hypervisor_id": "1601",
"node_id": "29"
},
"maintenances": [],
"allowed_actions": [
"poweroff",
"terminate",
"reboot",
"stop_in_place",
"backup"
],
"placement_group": null,
"private_nics": [
{
"id": "3a21e0a0-8d54-4314-b1e0-c6a3cb3bddec",
"private_network_id": "18ba4ed4-d194-4b5d-9083-447325234a71",
"server_id": "93c18a61-b681-49d0-a1cc-62b43883ae89",
"mac_address": "02:00:00:00:31:90",
"creation_date": "2021-03-08T21:35:53.312689+00:00",
"zone": "fr-par-1"
}
],
"zone": "fr-par-1"
},
{
"id": "5b6198b4-c677-41b5-9c05-04557264ae1f",
"name": "scw-quizzical-feistel",
"arch": "x86_64",
"commercial_type": "DEV1-S",
"boot_type": "local",
"organization": "cb334986-b054-4725-9d3a-40850fdc6015",
"project": "cb334986-b054-4725-9d5a-30850fdc6015",
"hostname": "scw-quizzical-feistel",
"image": {
"id": "71733b74-260f-4d0d-8f18-f37dcfa56d6f",
"name": "Debian Buster",
"organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"root_volume": {
"id": "0440a261-a953-4cdc-b1fd-2f9e7bc79214",
"name": "debian_buster:volume-0",
"volume_type": "l_ssd",
"size": 10000000000
},
"extra_volumes": {},
"public": true,
"arch": "x86_64",
"creation_date": "2021-03-05T15:00:19.389536+00:00",
"modification_date": "2021-03-05T15:00:19.389536+00:00",
"default_bootscript": null,
"from_server": null,
"state": "available",
"zone": "fr-par-1"
},
"volumes": {
"0": {
"id": "ee463105-8fe5-4d32-a9ec-19057d27858a",
"name": "debian_buster:volume-0",
"volume_type": "l_ssd",
"export_uri": null,
"organization": "cb334986-b054-4725-9d5a-40850fdc6015",
"project": "cb334986-b054-4725-9d5a-40850fdc6015",
"server": {
"id": "5b6198b4-c677-41b5-9c05-04557264ae1f",
"name": "scw-quizzical-feistel"
},
"size": 20000000000,
"state": "available",
"creation_date": "2021-03-11T20:14:07.197878+00:00",
"modification_date": "2021-03-11T20:14:07.197878+00:00",
"zone": "fr-par-1"
}
},
"tags": [],
"state": "running",
"protected": false,
"state_detail": "booted",
"public_ip": {
"id": "c4a7bd85-d0a6-493f-a204-456a7fb4a475",
"address": "151.115.45.127",
"dynamic": false
},
"ipv6": {
"address": "2001:bc8:1e00:6204::1",
"gateway": "2001:bc8:1e00:6204::",
"netmask": "64"
},
"extra_networks": [],
"dynamic_ip_required": false,
"enable_ipv6": true,
"private_ip": "10.193.162.9",
"creation_date": "2021-03-11T20:14:07.197878+00:00",
"modification_date": "2021-03-11T20:14:24.574333+00:00",
"bootscript": {
"id": "b00f3023-1606-4247-b453-3fc0ab1dc8c3",
"public": true,
"title": "x86_64 mainline 4.4.182 rev1",
"architecture": "x86_64",
"organization": "11111111-1111-4111-8111-111111111111",
"project": "11111111-1111-4111-8111-111111111111",
"kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.4-4.4.182-rev1/vmlinuz-4.4.182",
"dtb": "",
"initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz",
"bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16",
"default": true,
"zone": "fr-par-1"
},
"security_group": {
"id": "d35dd210-8392-44dc-8854-121e419a0f56",
"name": "Default security group"
},
"location": {
"zone_id": "fr-par-1",
"platform_id": "40",
"cluster_id": "4",
"hypervisor_id": "201",
"node_id": "5"
},
"maintenances": [],
"allowed_actions": [
"poweroff",
"terminate",
"reboot",
"stop_in_place",
"backup"
],
"placement_group": null,
"private_nics": [],
"zone": "fr-par-1"
},
{
"id": "4904366a-7e26-4b65-b97b-6392c761247a",
"name": "routed-dualstack",
"arch": "x86_64",
"commercial_type": "DEV1-S",
"boot_type": "local",
"organization": "20b3d507-96ac-454c-a795-bc731b46b12f",
"project": "20b3d507-96ac-454c-a795-bc731b46b12f",
"hostname": "routed-dualstack",
"image": {
"id": "3e0a5b84-1d69-4993-8fa4-0d7df52d5160",
"name": "Ubuntu 22.04 Jammy Jellyfish",
"organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"root_volume": {
"id": "13d945b9-5e78-4f9d-8ac4-c4bc2fa7c31a",
"name": "Ubuntu 22.04 Jammy Jellyfish",
"volume_type": "unified",
"size": 10000000000
},
"extra_volumes": {},
"public": true,
"arch": "x86_64",
"creation_date": "2024-02-22T15:52:56.037007+00:00",
"modification_date": "2024-02-22T15:52:56.037007+00:00",
"default_bootscript": null,
"from_server": null,
"state": "available",
"tags": [],
"zone": "nl-ams-1"
},
"volumes": {
"0": {
"boot": false,
"id": "fe85c817-e67e-4e24-8f13-bde3e9f42620",
"name": "Ubuntu 22.04 Jammy Jellyfish",
"volume_type": "l_ssd",
"export_uri": null,
"organization": "20b3d507-96ac-454c-a795-bc731b46b12f",
"project": "20b3d507-96ac-454c-a795-bc731b46b12f",
"server": {
"id": "4904366a-7e26-4b65-b97b-6392c761247a",
"name": "routed-dualstack"
},
"size": 20000000000,
"state": "available",
"creation_date": "2024-04-19T14:50:14.019739+00:00",
"modification_date": "2024-04-19T14:50:14.019739+00:00",
"tags": [],
"zone": "nl-ams-1"
}
},
"tags": [],
"state": "running",
"protected": false,
"state_detail": "booted",
"public_ip": {
"id": "53f8f861-7a11-4b16-a4bc-fb8f4b4a11d0",
"address": "51.158.183.115",
"dynamic": false,
"gateway": "62.210.0.1",
"netmask": "32",
"family": "inet",
"provisioning_mode": "dhcp",
"tags": [],
"state": "attached",
"ipam_id": "ec3499ff-a664-49b7-818a-9fe4b95aee5e"
},
"public_ips": [
{
"id": "53f8f861-7a11-4b16-a4bc-fb8f4b4a11d0",
"address": "51.158.183.115",
"dynamic": false,
"gateway": "62.210.0.1",
"netmask": "32",
"family": "inet",
"provisioning_mode": "dhcp",
"tags": [],
"state": "attached",
"ipam_id": "ec3499ff-a664-49b7-818a-9fe4b95aee5e"
},
{
"id": "f52a8c81-0875-4aee-b96e-eccfc6bec367",
"address": "2001:bc8:1640:1568:dc00:ff:fe21:91b",
"dynamic": false,
"gateway": "fe80::dc00:ff:fe21:91c",
"netmask": "64",
"family": "inet6",
"provisioning_mode": "slaac",
"tags": [],
"state": "attached",
"ipam_id": "40d1e6ea-e932-42f9-8acb-55398bec7ad6"
}
],
"mac_address": "de:00:00:21:09:1b",
"routed_ip_enabled": true,
"ipv6": null,
"extra_networks": [],
"dynamic_ip_required": false,
"enable_ipv6": false,
"private_ip": null,
"creation_date": "2024-04-19T14:50:14.019739+00:00",
"modification_date": "2024-04-19T14:52:21.181670+00:00",
"bootscript": {
"id": "5a520dda-96d6-4ed2-acd1-1d526b6859fe",
"public": true,
"title": "x86_64 mainline 4.4.182 rev1",
"architecture": "x86_64",
"organization": "11111111-1111-4111-8111-111111111111",
"project": "11111111-1111-4111-8111-111111111111",
"kernel": "http://10.196.2.9/kernel/x86_64-mainline-lts-4.4-4.4.182-rev1/vmlinuz-4.4.182",
"dtb": "",
"initrd": "http://10.196.2.9/initrd/initrd-Linux-x86_64-v3.14.6.gz",
"bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16",
"default": true,
"zone": "nl-ams-1"
},
"security_group": {
"id": "984414da-9fc2-49c0-a925-fed6266fe092",
"name": "Default security group"
},
"location": {
"zone_id": "ams1",
"platform_id": "23",
"cluster_id": "19",
"hypervisor_id": "1201",
"node_id": "24"
},
"maintenances": [],
"allowed_actions": [
"poweroff",
"terminate",
"reboot",
"stop_in_place",
"backup"
],
"placement_group": null,
"private_nics": [],
"zone": "nl-ams-1"
},
{
"id": "658abbf4-e6c6-4239-a483-3307763cf6e0",
"name": "multiple-ips",
"arch": "x86_64",
"commercial_type": "PLAY2-PICO",
"boot_type": "local",
"organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"hostname": "multiple-ips",
"image": {
"id": "f583f58c-1ea5-44ab-a1e6-2b2e7df32a86",
"name": "Ubuntu 24.04 Noble Numbat",
"organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"root_volume": {
"id": "cfab1e2e-fa24-480a-a372-61b19e8e2fda",
"name": "Ubuntu 24.04 Noble Numbat",
"volume_type": "unified",
"size": 10000000000
},
"extra_volumes": {
},
"public": true,
"arch": "x86_64",
"creation_date": "2024-04-26T09:24:38.624912+00:00",
"modification_date": "2024-04-26T09:24:38.624912+00:00",
"default_bootscript": null,
"from_server": "",
"state": "available",
"tags": [
],
"zone": "fr-par-1"
},
"volumes": {
"0": {
"boot": false,
"id": "7d4dc5ae-3f3c-4f9c-91cf-4a47a2193e94",
"name": "Ubuntu 24.04 Noble Numbat",
"volume_type": "b_ssd",
"export_uri": null,
"organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"server": {
"id": "658abbf4-e6c6-4239-a483-3307763cf6e0",
"name": "multiple-ips"
},
"size": 10000000000,
"state": "available",
"creation_date": "2024-06-07T13:33:17.697162+00:00",
"modification_date": "2024-06-07T13:33:17.697162+00:00",
"tags": [
],
"zone": "fr-par-1"
}
},
"tags": [
],
"state": "running",
"protected": false,
"state_detail": "booted",
"public_ip": {
"id": "63fd9ede-58d7-482c-b21d-1d79d81a90dc",
"address": "163.172.136.10",
"dynamic": false,
"gateway": "62.210.0.1",
"netmask": "32",
"family": "inet",
"provisioning_mode": "dhcp",
"tags": [
],
"state": "attached",
"ipam_id": "700644ed-f6a2-4c64-8508-bb867bc07673"
},
"public_ips": [
{
"id": "63fd9ede-58d7-482c-b21d-1d79d81a90dc",
"address": "163.172.136.10",
"dynamic": false,
"gateway": "62.210.0.1",
"netmask": "32",
"family": "inet",
"provisioning_mode": "dhcp",
"tags": [
],
"state": "attached",
"ipam_id": "700644ed-f6a2-4c64-8508-bb867bc07673"
},
{
"id": "eed4575b-90e5-4102-b956-df874c911e2b",
"address": "212.47.248.223",
"dynamic": false,
"gateway": "62.210.0.1",
"netmask": "32",
"family": "inet",
"provisioning_mode": "manual",
"tags": [
],
"state": "attached",
"ipam_id": "e2bdef64-828b-4f4a-a56b-954a85759adf"
},
{
"id": "fca8b329-6c0e-4f9c-aa88-d5c197b5919a",
"address": "51.15.231.134",
"dynamic": false,
"gateway": "62.210.0.1",
"netmask": "32",
"family": "inet",
"provisioning_mode": "manual",
"tags": [
],
"state": "attached",
"ipam_id": "e56808db-b348-4b7e-ad23-995ae08dc1a1"
},
{
"id": "3ffa6774-124c-4e64-8afb-148c15304b25",
"address": "2001:bc8:710:4a69:dc00:ff:fe58:40c1",
"dynamic": false,
"gateway": "fe80::dc00:ff:fe58:40c2",
"netmask": "64",
"family": "inet6",
"provisioning_mode": "slaac",
"tags": [
],
"state": "attached",
"ipam_id": "d97773d9-fd2c-4085-92bb-5c471abd132e"
},
{
"id": "28fcf539-8492-4603-b627-de0501ce8489",
"address": "2001:bc8:710:d::",
"dynamic": false,
"gateway": "fe80::dc00:ff:fe58:40c2",
"netmask": "64",
"family": "inet6",
"provisioning_mode": "manual",
"tags": [
],
"state": "attached",
"ipam_id": "005d19ac-203c-4034-ab16-9ff4caadbdd5"
},
{
"id": "db6fafda-3a12-403d-8c9c-1a1cb1c315ba",
"address": "2001:bc8:710:5417::",
"dynamic": false,
"gateway": "fe80::dc00:ff:fe58:40c2",
"netmask": "64",
"family": "inet6",
"provisioning_mode": "manual",
"tags": [
],
"state": "attached",
"ipam_id": "8c62fac8-4134-462c-ba48-71ce4f8ac939"
}
],
"mac_address": "de:00:00:58:40:c1",
"routed_ip_enabled": true,
"ipv6": null,
"extra_networks": [
],
"dynamic_ip_required": false,
"enable_ipv6": false,
"private_ip": null,
"creation_date": "2024-06-07T13:33:17.697162+00:00",
"modification_date": "2024-06-07T13:33:26.021167+00:00",
"bootscript": {
"id": "fdfe150f-a870-4ce4-b432-9f56b5b995c1",
"public": true,
"title": "x86_64 mainline 4.4.230 rev1",
"architecture": "x86_64",
"organization": "11111111-1111-4111-8111-111111111111",
"project": "11111111-1111-4111-8111-111111111111",
"kernel": "http://10.194.3.9/kernel/x86_64-mainline-lts-4.4-4.4.230-rev1/vmlinuz-4.4.230",
"dtb": "",
"initrd": "http://10.194.3.9/initrd/initrd-Linux-x86_64-v3.14.6.gz",
"bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16",
"default": true,
"zone": "fr-par-1"
},
"security_group": {
"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb",
"name": "Default security group"
},
"location": {
"zone_id": "par1",
"platform_id": "14",
"cluster_id": "7",
"hypervisor_id": "801",
"node_id": "95"
},
"maintenances": [
],
"allowed_actions": [
"poweroff",
"terminate",
"reboot",
"stop_in_place",
"backup"
],
"placement_group": null,
"private_nics": [
],
"zone": "fr-par-1"
}
]
}