choiruru

list device response

Sep 14th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.06 KB | None | 0 0
  1. {
  2.   "devices": [
  3.     {
  4.       "id": "bb5e6259-5cd3-4fcd-bac5-b5476cf85c1a",
  5.       "hostname": "bb5e6259.packethost.net",
  6.       "description": null,
  7.       "state": "active",
  8.       "tags": [],
  9.       "billing_cycle": "hourly",
  10.       "user": "root",
  11.       "userdata": null,
  12.       "locked": false,
  13.       "created_at": "2015-09-11T04:16:07Z",
  14.       "updated_at": "2015-09-11T04:23:05Z",
  15.       "operating_system": {
  16.         "slug": "centos_7",
  17.         "name": "CentOS 7",
  18.         "distro": "centos",
  19.         "version": "7",
  20.         "provisionable_on": [
  21.           "baremetal_1",
  22.           "baremetal_3"
  23.         ]
  24.       },
  25.       "facility": {
  26.         "id": "e1e9c52e-a0bc-4117-b996-0fc94843ea09",
  27.         "name": "Lab 1",
  28.         "code": "lab1",
  29.         "features": [
  30.           "baremetal"
  31.         ],
  32.         "address": null
  33.       },
  34.       "plan": {
  35.         "id": "6d1f1ffa-7912-4b78-b50d-88cc7c8ab40f",
  36.         "slug": "baremetal_1",
  37.         "name": "Type 1",
  38.         "description": "Our Type 1 configuration is a zippy general use server, with an Intel E3-1230 v3 processor and 16GB of RAM.",
  39.         "line": "baremetal",
  40.         "specs": {
  41.           "cpus": [
  42.             {
  43.               "count": 1,
  44.               "type": "Intel E3-1240 v3"
  45.             }
  46.           ],
  47.           "memory": {
  48.             "total": "16GB"
  49.           },
  50.           "drives": [
  51.             {
  52.               "count": 2,
  53.               "size": "120GB",
  54.               "type": "SSD"
  55.             }
  56.           ],
  57.           "nics": [
  58.             {
  59.               "count": 2,
  60.               "type": "gigabit"
  61.             }
  62.           ],
  63.           "features": {
  64.             "raid": true,
  65.             "txt": true
  66.           }
  67.         },
  68.         "pricing": {
  69.           "hourly": 0.4,
  70.           "monthly": 250
  71.         }
  72.       },
  73.       "project": {
  74.         "href": "/projects/74c29924-233c-4ac7-8cef-669533347874"
  75.       },
  76.       "ip_addresses": [
  77.         {
  78.           "address_family": 4,
  79.           "netmask": "255.255.255.254",
  80.           "cidr": 31,
  81.           "address": "147.75.193.5",
  82.           "gateway": "147.75.193.4",
  83.           "public": true
  84.         },
  85.         {
  86.           "address_family": 6,
  87.           "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe",
  88.           "cidr": 127,
  89.           "address": "2604:1380:4:a00::1",
  90.           "gateway": "2604:1380:4:a00::",
  91.           "public": true
  92.         },
  93.         {
  94.           "address_family": 4,
  95.           "netmask": "255.255.255.254",
  96.           "cidr": 31,
  97.           "address": "10.101.5.1",
  98.           "gateway": "10.101.5.0",
  99.           "public": false
  100.         }
  101.       ],
  102.       "href": "/devices/bb5e6259-5cd3-4fcd-bac5-b5476cf85c1a"
  103.     }
  104.   ],
  105.   "meta": {
  106.     "first": {
  107.       "href": "/projects/74c29924-233c-4ac7-8cef-669533347874/devices?page=1"
  108.     },
  109.     "previous": null,
  110.     "self": {
  111.       "href": "/projects/74c29924-233c-4ac7-8cef-669533347874/devices?page=1"
  112.     },
  113.     "next": null,
  114.     "last": {
  115.       "href": "/projects/74c29924-233c-4ac7-8cef-669533347874/devices?page=1"
  116.     },
  117.     "total": 1
  118.   }
  119. }
Advertisement
Add Comment
Please, Sign In to add comment