[Version 8.6.1 and later]

Getting a key value

Use the grid management API to get a key value from the data grid.

Procedure

  1. Open a command prompt and run a REST call via cURL.
    Example
    curl -k -u "xsadmin:xsadmin4Me!" 
    https://jsmith.abc.com:9444/wxsdata/v1/grids/{gridname}/{mapname}/{key} 
    -X GET
    where
    • "xsadmin:xsadmin4Me!" specifies the administrator user name and password for XSLD.
    • https://jsmith.abc.com:9444/wxsdata/v1/grids/{gridname}/{mapname}/{key} is the URL that represents the fully qualified host name and port number of the cache member group. It also contains the context root of the Operational REST server and the REST call to get a key value from the grid.
      • {gridname} is part of the REST call that specifies the name of the data grid you want to query.
      • {mapname} is part of the REST call that specifies the name of the map you want to query.
      • {key} is part of the REST call that specifies the key you want to retrieve.
    A complete example of this command, where {gridname} is testgrid1, {mapname} is map1, and {key} is key1.
    curl -k -u "xsadmin:xsadmin4Me!" 
    https://jsmith.abc.com:9444/wxsdata/v1/grids/testgrid1/map1/key1 
    -X GET
  2. A successful response code is returned as 200.