REST gateway: URI format

By specifying a URI in a specific format, you can access and perform operations on your simple data grid.

URI Format

The REST URI for accessing a simple data grid on the WebSphere® eXtreme Scale is of the following format:
/[context_root]/datacaches/[grid_name]/[map_name]/[key]
The default context root is resources.

If you create a simple data grid named MyMap with the host name mydatagrid.ibm.com, then the resulting URL to access key name my.data.item would be:

http://mydatagrid.ibm.com/resources/datacaches/MyDataGrid/MyMap/my.data.item

In the previous example, the MyMap map was used in the MyDataGrid grid. This map does not have any time-to-live (TTL) eviction. Entries that are placed in the data grid stay in the data grid until they are explicitly removed. To configure TTL eviction, see REST gateway example: Time to live (TTL) expiration.