Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisPersistDBEngineGroup

int ctMemphisPersistDBEngineGroup( pRCESJson request, ppRCESJson result )

Description:

Persist a DBEngineGroup into the Replication Manager Database. If it doesn't exist, create it, otherwise updated it. In order to create a new one, the id must be -1 or not passed. And the update will be done by the ID.

HTTP URL: <baseURL>/ctMemphisPersistDBEngineGroup/

HTTP Verb: POST

Constraints:

  • "name" is not NULL, not EMPTY and Unique;

Parameters:

  • request [IN] - Persist DBEngine group request in JSON format. For example:

{

"dbEngineGroup": {

"id": -1, // optional, must be an

existing ID for update

"name": "fileGroup3", // required

"description": "General file group" // optional

}

}

  • result [OUT] - Result in JSON format. For example:

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

},

"id": 3

}

Return:

Error code

TOCIndex