<p>OpenStack by default has its metadata hosted at <code>169.254.169.254</code>, and you can get to it from any resource provisioned on OpenStack with,</p>
<pre><code>curl http://169.254.169.254/latest/meta-data
</code></pre>
<p>You can also substitute any date for <code>latest</code>. The list returned will look something like this,</p>
<pre><code>ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
local-hostname
local-ipv4
placement/
public-hostname
public-ipv4
public-keys/
reservation-id
</code></pre>
<p>You can then follow up by picking something like</p>
<pre><code>curl http://169.254.169.254/latest/meta-data/public-hostname
</code></pre>
<hr />
<p>You can find more information here,</p>
<ul>
<li><a href="https://docs.openstack.org/nova/train/user/metadata.html" rel="nofollow noreferrer">https://docs.openstack.org/nova/train/user/metadata.html</a></li>
</ul>

CC BY-SA 4.0
2023-04-13T08:48:48.843Z
We should note that `169.254.169.254` is a [link local address](https://en.wikipedia.org/wiki/Link-local_address).  A VM's hypervisor needs to route it to the actual metadata server.
Stephen C
CC BY-SA 4.0
2023-02-07T01:25:00.420Z
2023-02-07T01:25:00.420Z
Evan Carroll
<p>Where is the OpenStack metadata server located? What can I do query it?</p>

<openstack>
What is the ip address of the OpenStack metadata server, and how can I query it?
Evan Carroll
# What is the ip address of the OpenStack metadata server, and how can I query it?

(Asked by: username_0 on 2023-02-07)

Where is the OpenStack metadata server located? What can I do query it?

**Tags:** openstack


---

## 1 answers

### Answer by username_0 on 2023-02-07. Score: 0 | Accepted answer

OpenStack by default has its metadata hosted at 169.254.169.254, and you can get to it from any resource provisioned on OpenStack with,
curl http://169.254.169.254/latest/meta-data

You can also substitute any date for latest. The list returned will look something like this,
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
local-hostname
local-ipv4
placement/
public-hostname
public-ipv4
public-keys/
reservation-id

You can then follow up by picking something like
curl http://169.254.169.254/latest/meta-data/public-hostname


You can find more information here,

https://docs.openstack.org/nova/train/user/metadata.html

> **Comments:**
> **username_1**: We should note that `169.254.169.254` is a [link local address](https://en.wikipedia.org/wiki/Link-local_address).  A VM's hypervisor needs to route it to the actual metadata server.  

---

