Execute a command
post
/services/{version}/monitoring/commands/execute
Required Role: Operator
Execute a commandRequest
Supported Media Types
- application/json
Path Parameters
-
version(required): string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Root Schema : Oracle GoldenGate PM Service Command
Title:
Oracle GoldenGate PM Service Command
Match One
Show Source
-
object Oracle GoldenGate PM Service Command-x-oneOf[0]
Purge the Datastore Messages and Status Changes
Nested Schema : Oracle GoldenGate PM Service Command-x-oneOf[0]
Type:
object
Purge the Datastore Messages and Status Changes
Show Source
-
$schema:
Allowed Values:
[ "monitoring:command" ]
-
name(required):
Allowed Values:
[ "purgeDatastore" ]
-
retentionDays(required):
integer
Minimum Value:
1
Maximum Value:365
Allowed value for days value
Example Request (application/json)
{
"name":"purgeDatastore",
"daysValue":"90"
}
Response
Supported Media Types
- application/json
200 Response
Root Schema : Oracle GoldenGate Task Manager Command Result
Type:
object
Title:
Show Source
Oracle GoldenGate Task Manager Command Result
-
$schema:
Allowed Values:
[ "monitoring:commandResult" ]
-
commandResult:
object commandResult
-
messages:
array messages
Minimum Number of Items:
0
Maximum Number of Items:1024
Nested Schema : commandResult
Type:
Show Source
object
-
messagesPurged:
integer
Minimum Value:
0
Maximum Value:4294967295
-
statusChangesPurged:
integer
Minimum Value:
0
Maximum Value:4294967295
Nested Schema : messages
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
Show Source
1024
Nested Schema : items
Type:
Show Source
object
-
$schema:
Allowed Values:
[ "ogg:message" ]
-
code(required):
string
Minimum Length:
9
Maximum Length:9
Pattern:^OGG[-][0-9]{5}$
The Oracle GoldenGate message code -
issued(required):
string
Minimum Length:
20
Maximum Length:32
Pattern:^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$
The date and time that the message was issued -
severity(required):
Allowed Values:
[ "INFO", "WARNING", "ERROR" ]
The severity of the message -
title(required):
string
Minimum Length:
1
Maximum Length:4095
A human-readable description that provides information and detail specific to this occurence of the information, warning or error. -
type(required):
string
Minimum Length:
2
Maximum Length:4095
Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
An absolute URI [RFC3986] to a page that describes the info, warning or error type.
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://ogg.example.com:9000/services/v2/commands/execute",
"mediaType":"text/html",
"rel":"canonical"
}
],
"messages":[
{
"$schema":"ogg:message",
"code":"OGG-14082",
"issued":"2015-08-12T16:52:47Z",
"severity":"INFO",
"title":"Purge Complete, 123 Messages Removed, 11 Status Changes Removed.",
"type":"http://docs.oracle.com/goldengate/c1230/gg-winux/GMESG/oggus.htm#OGG-14082"
}
]
}