Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisPersistFileGroup

int ctMemphisPersistFileGroup( pRCESJson request, ppRCESJson result )

Description:

Persist a FileGroup into the Replication Manager Database. If it doesn't exist, create it, otherwise update it. 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>/ctMemphisPersistFileGroup/

HTTP Verb: POST

Constraints:

  • "dbEngine" must be an existing DBEngine ID.
  • "name" is not NULL, not EMPTY and Unique per DBEngine.

Parameters:

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

{

"fileGroup": {

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

existing ID for update

"dbEngine": 0, // required

"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