Description

The API in this article can be used to launch G-Migration+ through GMUS when it is used in conjunction with the G-Repository Client.

Note: If you are not using G-Repository Client, please refer to this API page: GMUS API: Launch G-Migration+.


REST Request

A REST request is made to the GMUS to launch G-Migration+.

http://<ip>:port/rest/repoMigrate


Method Type: POST


JSON Payload

JSON Payload to launch G-Migration+ with G-Repository Client. Please note that the schemaName parameter is required. Otherwise, the migration will not run successfully.


Example 1 - Where Clause and Limit


{
  "clientAppId": "XXXXXXXX-1e47-abcd-ba66-XXXXXXXXXXXX",
  "clientUserId": "XXXXXXXX-abcd-4284-aa45-XXXXXXXXXXXX",
  "username": "jane.doe@gmail.com",
  "repoName": "sampleRepo",
  "configName": "sample.gredb",
  "debug": true,
  "whereClause": "user.id<101",
  "limitType": "NUMBER",
  "limitValue": "300",
  "schemaName": "Company",
  "tableName": "user"
}


Example 2 - Where Clause Only


{ 
  "clientAppId": "XXXXXXXX-1e47-abcd-ba66-XXXXXXXXXXXX", 
  "clientUserId": "XXXXXXXX-abcd-4284-aa45-XXXXXXXXXXXX", 
  "username": "jane.doe@gmail.com",  
  "repoName": "sampleRepo",
  "configName": "sample.gredb",
  "whereClause": "user.id<101", 
  "schemaName": "Company",
  "tableName": "user" 
}