Create or Generate Compare Pairs using mapped objects

post

http://{host}:{port}/veridata/v1/services/configuration/cps/mappings/group/{groupId}

Required Role: Administrator, SuperUser, DetailMonitoringOperator, MonitoringOperator, CommandLineOperator

Create compare pairs.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Example:
{
    "mappedObjectWithOptions":[
        {
            "name":"EMPLOYEE=EMPLOYEE",
            "srcTable":{
                "name":"EMPLOYEE",
                "schema":"VERIDATA",
                "catalog":"ORCL1",
                "tablePartition":{
                    "name":"EMP_2025"
                }
            },
            "tgtTable":{
                "name":"EMPLOYEE",
                "schema":"VERIDATA",
                "catalog":"ORCL1",
                "tablePartition":{
                    "name":"EMP_2025"
                }
            },
            "profileId":1,
            "options":{
                "autoPartitionInfo":{
                    "autoPartition":true,
                    "autoPartitionNumber":10
                }
            },
            "rowPartition":[
                {
                    "side":"SOURCE",
                    "name":"employee ID's greater than 100",
                    "whereClause":"ID > 100",
                    "type":"S",
                    "runtime":true
                },
                {
                    "side":"TARGET",
                    "name":"employee ID's greater than 100",
                    "whereClause":"ID > 100",
                    "type":"S",
                    "runtime":true
                }
            ],
            "delta":{
                "srcColumn":"UPDATED_DATE",
                "tgtColumn":"UPDATED_DATE",
                "srcDeltaQuery":"select MAX(UPDATED_DATE) from ORCL1.VERIDATA.EMPLOYEE",
                "tgtDeltaQuery":"select MAX(UPDATED_DATE) from ORCL1.VERIDATA.EMPLOYEE",
                "srcDeltaCols":[
                    "UPDATED_DATE, MODIFIED_TS"
                ],
                "tgtDeltaCols":[
                    "UPDATED_DATE, MODIFIED_TS"
                ],
                "columnMapping":[
                    {
                        "useSourceColsAsKeys":true,
                        "useTargetColsAsKeys":true,
                        "useAllColsAsKeys":true
                    }
                ]
            }
        }
    ]
}
Nested Schema : mappedObjectWithOptions
Type: object
Match All
Show Source
Nested Schema : MappedObjectWithOptions
Type: object
Show Source
Match All
Show Source
Nested Schema : MappedObjectRequest
Type: object
Show Source
Nested Schema : DeltaProcessing
Type: object
Defines Delta Setting. For NSK this will be an empty object.
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
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
Nested Schema : srcDeltaCols
Type: array
List of Source Delta columns.
Show Source
Nested Schema : tgtDeltaCols
Type: array
List of Target Delta columns.
Show Source
Nested Schema : ReqTable
Type: object
Defines a table in request body.
Show Source
Nested Schema : srcTable-allOf[1]
Type: object
Nested Schema : tablePartition
Type: object
Match All
Show Source
Nested Schema : TablePartition
Type: object
Show Source
Nested Schema : tgtTable-allOf[1]
Type: object
Back to Top

Response

Supported Media Types

200 Response

Compare Pairs created successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : ComparePairInDetails
Type: object
Show Source
Match All
Show Source
Nested Schema : srcEnscribeInfo
Type: array
Show Source
Nested Schema : tgtEnscribeInfo
Type: array
Show Source
Nested Schema : ComparePairInDetailsView
Type: object
Show Source
Match All
Show Source
Nested Schema : BaseObject_2
Type: object
Show Source
Nested Schema : ComparePairInDetailsView-allOf[1]
Type: object
Nested Schema : Group_base
Type: object
Show Source
Nested Schema : ComparePairInDetails-allOf[2]
Type: object
Nested Schema : EnscribeAttribute
Type: object
Show Source
Nested Schema : group
Group Object.
Match All
Group Object.
Group Object.
Show Source
Nested Schema : BaseObject_3
Type: object
Show Source
Nested Schema : group-allOf[1]
Type: object

201 Response

Compare Pairs created successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : ComparePairInDetails
Type: object
Show Source
Match All
Show Source
Nested Schema : srcEnscribeInfo
Type: array
Show Source
Nested Schema : tgtEnscribeInfo
Type: array
Show Source
Nested Schema : ComparePairInDetailsView
Type: object
Show Source
Match All
Show Source
Nested Schema : BaseObject_2
Type: object
Show Source
Nested Schema : ComparePairInDetailsView-allOf[1]
Type: object
Nested Schema : Group_base
Type: object
Show Source
Nested Schema : ComparePairInDetails-allOf[2]
Type: object
Nested Schema : EnscribeAttribute
Type: object
Show Source
Nested Schema : group
Group Object.
Match All
Group Object.
Group Object.
Show Source
Nested Schema : BaseObject_3
Type: object
Show Source
Nested Schema : group-allOf[1]
Type: object

400 Response

Bad Request.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}

401 Response

Unauthorized.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}

404 Response

Not Found.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}

500 Response

Server Error.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}
Back to Top