Get Global Dictionary Key Value
get
/rest/v19/globalDict/{key}
This operation returns a value stored in the global dictionary corresponding to the given key along with the minTimeToLive value.
Request
Path Parameters
-
key(required): string
Key of the global dictionary.
Response
Supported Media Types
- application/json
Default Response
Global Dictionary Detail
Root Schema : Global Dict Detail
Type:
object
Title:
Show Source
Global Dict Detail
-
dateAdded:
string
Title:
Date Created
Creation Date. -
dateModified:
string
Title:
Date Last Modified
Date last modified. -
key:
string
Title:
Key
Name of the key. -
links:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable -
minTimeTolive:
integer
Title:
Minimum time to live
The minimum time, in minutes, the key-value pair is guaranteed to exist in the global dictionary. -
value:
string
Title:
Value
Value associated with the key
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
rel:
string
Title:
Link Relationship to the current object
Link Relationship to the current object
Examples
The following example shows how to retrieve a value stored in the global dictionary corresponding to the given key along with the minTimeToLive value by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/globalDict/key1
Response Body Sample
{ "key": "key1", "value": "1", "minTimeToLive": 2500, "dateModified": "2024-03-11T14:25:11.000Z", "dateAdded": "2024-03-11T14:25:11.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v19/globalDict/key1" } ] }