---
title: "REST API - How to use the REST API to obtain a list of all snoozed objects (managed entities, cells etc)"
description: "The REST API can be used to obtain a list of all snoozed objects such as managed entities, dataviews, and table cells. Examples show how to query the XPath for snoozed data items using the API."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360022554674-geneos-rest-api-how-to-use-the-rest-api-to-obtain-a-list-of-all-snoozed-objects-managed-entities-cells-etc/index.html"
---
You can use the REST API to look for data items in the XPath that are snoozed. As examples, you can look for managed entities, dataviews and table cells that are snoozed like below:

```
Example 1
curl -u username:password -X GET -s --data '{"target":"//managedEntity[(state(\"snoozed\")=\"1\")] "}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool

[geneos@kamcs7 ~]$ curl -u Web:hello123 -X GET -s --data '{"target":"//managedEntity[(state(\"snoozed\")=\"1\")] "}' http://kamcs7.cslab.ldn.itrs:9007/rest/xpaths/match | python -m json.tool
{
    "xpaths": [
        "/geneos/gateway[(@name=\"OERH_RMDS_02\")]/directory/probe[(@name=\"Trades\")]/managedEntity[(@name=\"Cardiff\")]",
        "/geneos/gateway[(@name=\"OERH_RMDS_02\")]/directory/probe[(@name=\"Trades\")]/managedEntity[(@name=\"Swansea\")]"
    ]
}
```

![Geneos - REST API - How to use the REST API to obtain a list of all snoozed objects (managed entities, cells etc)](https://docscdn.itrsgroup.com/faq/images/geneos/360022554674-34718378296477-image.png)

```
Example 2

curl -u username:password -X GET -s --data '{"target":"//dataview[(state(\"snoozed\")=\"1\")] "}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool

[geneos@kamcs7 ~]$ curl -u Web:hello123 -X GET -s --data '{"target":"//dataview[(state(\"snoozed\")=\"1\")] "}' http://kamcs7.cslab.ldn.itrs:9007/rest/xpaths/match | python -m json.tool
{
    "xpaths": [
        "/geneos/gateway[(@name=\"OERH_RMDS_02\")]/directory/probe[(@name=\"Trades\")]/managedEntity[(@name=\"Birmingham\")]/sampler[(@name=\"Hardware\")][(@type=\"\")]/dataview[(@name=\"Hardware\")]",
        "/geneos/gateway[(@name=\"OERH_RMDS_02\")]/directory/probe[(@name=\"Trades\")]/managedEntity[(@name=\"Cardiff\")]/sampler[(@name=\"TradesSpecific\")][(@type=\"\")]/dataview[(@name=\"TradesSpecific\")]"
    ]
}
```

![Geneos - REST API - How to use the REST API to obtain a list of all snoozed objects (managed entities, cells etc)](https://docscdn.itrsgroup.com/faq/images/geneos/360022554674-34718378300957-image.png)

```
Example 3

curl -u username:password -X GET -s --data '{"target":"//cell[(state(\"snoozed\")=\"1\")] "}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool

[geneos@kamcs7 ~]$ curl -u Web:hello123 -X GET -s --data '{"target":"//cell[(state(\"snoozed\")=\"1\")] "}' http://kamcs7.cslab.ldn.itrs:9007/rest/xpaths/match | python -m json.tool
{
    "xpaths": [
        "/geneos/gateway[(@name=\"OERH_RMDS_02\")]/directory/probe[(@name=\"Trades\")]/managedEntity[(@name=\"London\")]/sampler[(@name=\"FTM\")][(@type=\"\")]/dataview[(@name=\"FTM\")]/rows/row[(@name=\"/opt/geneos/Logs/test/2026-03-18_*.log\")]/cell[(@column=\"Delay\")]",
        "/geneos/gateway[(@name=\"OERH_RMDS_02\")]/directory/probe[(@name=\"Trades\")]/managedEntity[(@name=\"Swansea\")]/sampler[(@name=\"TradesSpecific\")][(@type=\"\")]/dataview[(@name=\"TradesSpecific\")]/rows/row[(@name=\"ARZ\")]/cell[(@column=\"Volume\")]"
    ]
}
```

![Geneos - REST API - How to use the REST API to obtain a list of all snoozed objects (managed entities, cells etc)](https://docscdn.itrsgroup.com/faq/images/geneos/360022554674-34718378303517-image.png)

```
 -u username:password -X GET -s --data '{"target":"//cell[(state(\"snoozed\")=\"1\")] "}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool
```


