# Issue with client.admin().cluster().prepareGetSnapshots(...)

**URL:** <https://discuss.elastic.co/t/issue-with-client-admin-cluster-preparegetsnapshots/17672>\
**Category:** Elasticsearch\
**Created:** [May 22, 2014, 10:01am UTC](https://discuss.elastic.co/t/issue-with-client-admin-cluster-preparegetsnapshots/17672 "2014-05-22T10:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chetana](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Chetana](https://discuss.elastic.co/u/Chetana)\
**Post date:** [May 22, 2014, 10:01am UTC](https://discuss.elastic.co/t/issue-with-client-admin-cluster-preparegetsnapshots/17672/1 "2014-05-22T10:01:49Z")

</div>

The call to prepareGetSnapshots(...) for getting a snapshot which is not  
existing, throws SnapshotMissingException. But I expect instead it should  
return response with a list of zero snapshots(getSnapshots()) or atleast  
isExist=false

Is there any other way one can check the existence of a snapshot?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3d5f4027-2db0-4da1-86a9-adbd117ec7d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3d5f4027-2db0-4da1-86a9-adbd117ec7d3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:27am UTC](https://discuss.elastic.co/t/issue-with-client-admin-cluster-preparegetsnapshots/17672/2 "2017-07-06T01:27:41Z")

</div>

Closed on July 6, 2017, 1:27am UTC


