Execute a command

post

/services/{version}/monitoring/commands/execute

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Oracle GoldenGate PM Service Command
Title: Oracle GoldenGate PM Service Command
Match One
Show Source
Nested Schema : Oracle GoldenGate PM Service Command-x-oneOf[0]
Type: object
Purge the Datastore Messages and Status Changes
Show Source
Example Request (application/json)
{
    "name":"purgeDatastore",
    "daysValue":90
}

Response

Supported Media Types

200 Response

Body ()
Root Schema : Oracle GoldenGate Task Manager Command Result
Type: object
Title: Oracle GoldenGate Task Manager Command Result
Show Source
Nested Schema : commandResult
Type: object
Show Source
Nested Schema : messages
Type: array
Minimum Number of Items: 0
Maximum Number of Items: 1024
Show Source
Nested Schema : items
Type: object
Show Source
  • Allowed Values: [ "ogg:message" ]
  • Minimum Length: 9
    Maximum Length: 9
    Pattern: ^OGG[-][0-9]{5}$
    The Oracle GoldenGate message code
  • 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
  • Allowed Values: [ "INFO", "WARNING", "ERROR" ]
    The severity of the message
  • 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.
  • 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"
        }
    ]
}