Meta
Stacklet Properties
Get Metadata Json

Get Stacklet Metadata

Returns JSON object that contains the entire content of the Stacklet's metadata. This endpoint is unique because it returns all of the metadata properties in one object, instead of individual metadata items.

Endpoint

http://169.254.169.254/metadata/v1.json

Response

200

A JSON object of Stacklet metadata.

Example

json
{
  "id": 411,
  "hostname": "my-stacklet",
  "public_keys": [],
  "region": "fra",
  "vendor_data": "",
  "user-data": "",
  "interfaces": {
    "public": [
      {
        "anchor_ipv4": {
          "ip_address": "10.255.53.182",
          "netmask": "255.255.0.0",
          "gateway": "10.255.0.1"
        },
        "ipv4": {
          "ip_address": "192.168.50.88",
          "netmask": "255.255.255.0",
          "gateway": "192.168.50.1"
        },
        "ipv6": {
          "ip_address": "2A07:0440:2000:0006:0000:0000:0000:0091",
          "cidr": 64,
          "gateway": "2A07:0440:2000:0006:0000:0000:0000:0001"
        },
        "mac": "52:54:00:e9:12:7d",
        "type": "public"
      }
    ]
  },
  "dns": {
    "nameservers": ["8.8.8.8", "8.8.4.4"]
  },
  "floating_ip": {
    "ipv4": {
      "active": false
    }
  }
}