get

Display an entry in a region.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
get --key=value --region=value [--key-class=value] [--value-class=value]
key Required. String or JSON text from which to create the key. Examples include: "James", "100L" and "('id': 'l34s')".
region Required. Region from which to get the entry.
key-class Fully qualified class name of the key's type. The default is the key constraint for the current region or String.
value-class Fully qualified class name of the value's type. The default is the value constraint for the current region or String.
Example Commands:
get --key=('id':'133abg124') --region=region1

// Retrieving when key type is a wrapper(primitive)/String
get --key=('133abg124') --region=/region1/region12 --value-class=data.ProfileDetails

get --key=('100L') --region=/region1/region12 --value-class=data.ProfileDetails 
--key-class=java.lang.Long
Sample Output:
gfsh>get --key=('123') --region=region1
Result      : true
Key Class   : java.lang.String
Key         : ('123')
Value Class : java.lang.String
Value       : ABC