# How to get the information of something when you have it's "\_id" field already

**URL:** <https://discuss.elastic.co/t/how-to-get-the-information-of-something-when-you-have-its--id-field-already/79801>\
**Category:** Elasticsearch\
**Created:** [March 23, 2017, 7:34pm UTC](https://discuss.elastic.co/t/how-to-get-the-information-of-something-when-you-have-its--id-field-already/79801 "2017-03-23T19:34:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Ben\_Hoffman](https://discuss.elastic.co/u/Ben_Hoffman)\
**Post date:** [March 23, 2017, 7:34pm UTC](https://discuss.elastic.co/t/how-to-get-the-information-of-something-when-you-have-its--id-field-already/79801/1 "2017-03-23T19:34:08Z")

</div>

So I am trying to be able to access information about an object in elasticsearch, when I already have it's unique ID. Here is the current query that I have:

`curl -XGET 'localhost:9200/packetbeat-2017.03.23/AVr8l8YfyH-VqZ9J_0HZ?pretty'`

This is the response that I get from it:

```
{
  "error" : {
"root_cause" : [
  {
    "type" : "illegal_argument_exception",
    "reason" : "No endpoint or operation is available at [AVr8l8YfyH-VqZ9J_0HZ]"
  }
],
   "type" : "illegal_argument_exception",
   "reason" : "No endpoint or operation is available at [AVr8l8YfyH-VqZ9J_0HZ]"
},
   "status" : 400
}

```

I know that this index and this ID both exist, any ideas on how to do this?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 23, 2017, 8:17pm UTC](https://discuss.elastic.co/t/how-to-get-the-information-of-something-when-you-have-its--id-field-already/79801/2 "2017-03-23T20:17:39Z")

</div>

You are missing the type here.

```auto
GET index/type/id

```

---

<div class="post-metadata">

**Author:** ![Ben\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Ben\_Hoffman](https://discuss.elastic.co/u/Ben_Hoffman)\
**Post date:** [March 24, 2017, 1:21pm UTC](https://discuss.elastic.co/t/how-to-get-the-information-of-something-when-you-have-its--id-field-already/79801/3 "2017-03-24T13:21:05Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2017, 1:21pm UTC](https://discuss.elastic.co/t/how-to-get-the-information-of-something-when-you-have-its--id-field-already/79801/4 "2017-04-21T13:21:35Z")

</div>

Closed on April 21, 2017, 1:21pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
