Create Compare Pairs
post
http://{host}:{port}/veridata/v1/services/configuration/cps/group/{groupId}
Required Role: Administrator, SuperUser, CommandLineOperator
API to create Compare Pairs.
Request
Path Parameters
- groupId(required): integer(int64) group ID.
Query Parameters
- includeColumnMapping: boolean Include column mapping details in payload.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source object
Example:
{ "comparePairs":[ { "name":"EMPLOYEE=EMPLOYEE", "description":"Compare pair of Oracle Employee table", "profileId":1, "srcTable":[ { "name":"EMPLOYEE", "schema":"VERIDATA", "catalog":"ORCL1", "filePattern":"EMP%", "tablePartition":[ { "name":"EMP_2025" } ] } ], "tgtTable":[ { "name":"EMPLOYEE", "schema":"VERIDATA", "catalog":"ORCL1", "filePattern":"EMP%", "tablePartition":[ { "name":"EMP_2025" } ] } ], "srcRowPartitions":[ { "name":"employees whose ID is greater than 100", "whereClause":"ID > 100", "type":"S", "runTime":true } ], "tgtRowPartitions":[ { "name":"employees whose ID is greater than 100", "whereClause":"ID > 100", "type":"S", "runTime":true } ], "enabled":true } ] }
Nested Schema : CreateComparePairRequest
Type:
Show Source object
- enabled: boolean Compare Pair is enabled in the group to run.
- profileId: integer (int64) Default Value:
1
Profile ID. - srcEnscribeInfo: array srcEnscribeInfo
- srcRowPartitions: array srcRowPartitions
- srcTable(required): srcTable Represents a table in compare pair with table and row partitions info, if any.
- tgtEnscribeInfo: array tgtEnscribeInfo
- tgtRowPartitions: array tgtRowPartitions
- tgtTable(required): tgtTable Represents a table in compare pair with table and row partitions info, if any.
Match All
Show Source Nested Schema : srcTable
Represents a table in compare pair with table and row partitions info, if any.
Match All
Represents a table in compare pair with table and row partitions info, if any.
Represents a table in compare pair with table and row partitions info, if any.
Show Source - object ReqTable Defines a table in request body.
- object srcTable-allOf[1]
Nested Schema : tgtTable
Represents a table in compare pair with table and row partitions info, if any.
Match All
Represents a table in compare pair with table and row partitions info, if any.
Represents a table in compare pair with table and row partitions info, if any.
Show Source - object ReqTable Defines a table in request body.
- object tgtTable-allOf[1]
Nested Schema : BaseObject_1
Type:
Show Source object
- description: string Object Description.
- name: string Object Name.
Nested Schema : CreateComparePairRequest-allOf[1]
Type:
object
Nested Schema : EnscribeAttributeRequest
Type:
Show Source object
- default: boolean
- name: string Allowed Values:
[ "AltKey", "Dictionary", "Record", "ExpandDDLRedefs", "ExpandDDLResolveDupAppend", "ExpandDDLResolveDupPrepend", "ExpandDDLExpandGroupArrays", "ExpandDDLFixLongNames", "ExpandDDLMaxColNameLen", "ExpandDDLSeparator", "ExpandDDLZeroFill" ]
- value: string
Nested Schema : RowPartitionParams
Type:
Show Source object
- endingKey: string Enscribe ending key.
- isAscii: boolean Enscribe is ASCII.
- name(required): string
- runtime: boolean Use at runtime.
- startingKey: string Enscribe starting key.
- type(required): string Allowed Values:
[ "S", "E", "A" ]
Type of Row Partition (SQL{S} , Enscribe{E} , Auto{A}) - whereClause: string SQL Predicate Statement.
Nested Schema : ReqTable
Type:
object
Defines a table in request body.
Show Source - catalog: string
- filePattern: string Valid for NSK Enscribe database.
- name: string
- schema: string
- tablePartition: object tablePartition
Nested Schema : srcTable-allOf[1]
Type:
object
Nested Schema : tgtTable-allOf[1]
Type:
object
Response
Supported Media Types
- application/json
201 Response
Compare Pairs created successfully.
Nested Schema : ComparePairInDetailsView
Type:
Show Source object
- columnMappings: array columnMappings
- columnsSystemMapped: boolean Default Value:
true
Is the key columns system mapped. - delta: delta
- deltaProcessingEnabled: boolean Default Value:
false
Delta processing is enabled for this compare pair. - enabled: boolean Default Value:
true
Compare Pair is enabled in the group to run. - keyColumnsSystemMapped: boolean Default Value:
true
Is the key columns system mapped. - profile: profile Profile Object.
- setting: object ComparePairSetting Mapping of a column in a table.
- srcIndexName: string
- srcRowPartitions: array srcRowPartitions
- srcTable: srcTable Represents a table in compare pair with table and row partitions info, if any.
- tgtIndexName: string
- tgtRowPartitions: array tgtRowPartitions
- tgtTable: tgtTable Represents a table in compare pair with table and row partitions info, if any.
- validationStatus: string Allowed Values:
[ "NeverValidated", "Validated" ]
enum for compare pair validation status. - validationTime: string (date-time)
Match All
Show Source Nested Schema : BaseObject_2
Type:
Show Source object
- createdOn: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- id: integer (int64) Object Id.
- name: string Object Name.
- updatedOn: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
Nested Schema : ComparePairInDetailsView-allOf[1]
Type:
object
Nested Schema : ComparePairInDetails-allOf[2]
Type:
object
Nested Schema : EnscribeAttribute
Type:
Show Source object
- default: boolean
- defaultValue: string
- enscribeName: string Allowed Values:
[ "AltKey", "Dictionary", "Record", "ExpandDDLRedefs", "ExpandDDLResolveDupAppend", "ExpandDDLResolveDupPrepend", "ExpandDDLExpandGroupArrays", "ExpandDDLFixLongNames", "ExpandDDLMaxColNameLen", "ExpandDDLSeparator", "ExpandDDLZeroFill" ]
- max: integer It is displayed when type is INTEGER.
- min: integer It is displayed when type is INTEGER.
- options: string It is displayed when type is ENUM.
- type: string Allowed Values:
[ "BOOLEAN", "ENUM", "INTEGER", "STRING" ]
- value: string
Nested Schema : BaseObject_3
Type:
Show Source object
- id: integer (int64) Object Id.
- name: string Object Name.
Nested Schema : group-allOf[1]
Type:
object
400 Response
Bad Request.
Root Schema : Error
Type:
Show Source object
- errCode: string Veridata Error Code.
- errMsg: string Veridata Error Message.
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }
401 Response
Unauthorized.
Root Schema : Error
Type:
Show Source object
- errCode: string Veridata Error Code.
- errMsg: string Veridata Error Message.
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }
404 Response
Not Found.
Root Schema : Error
Type:
Show Source object
- errCode: string Veridata Error Code.
- errMsg: string Veridata Error Message.
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }
500 Response
Server Error.
Root Schema : Error
Type:
Show Source object
- errCode: string Veridata Error Code.
- errMsg: string Veridata Error Message.
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }