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:
objectTitle:
Show Source
Global Dict Detail-
dateAdded:
string
Title:
Date CreatedCreation Date. -
dateModified:
string
Title:
Date Last ModifiedDate last modified. -
key:
string
Title:
KeyName of the key. -
links:
object reference links
Title:
reference linksReference links for the Parent, Self, Children and Related as applicable -
minTimeTolive:
integer
Title:
Minimum time to liveThe minimum time, in minutes, the key-value pair is guaranteed to exist in the global dictionary. -
value:
string
Title:
ValueValue associated with the key
Nested Schema : reference links
Type:
objectTitle:
reference linksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related objectURL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current objectDefault Value:selfLink 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"
}
]
}