Generate Mapping Objects using the Mapping Rules
post
http://{host}:{port}/veridata/v1/services/configuration/cps/mappings
Required Role: Administrator, SuperUser, CommandLineOperator
Generate mapping objects for viewing purpose.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source object
- sourceConnectionId(required): integer (int64) Connection Id.
- srcCatalogObjectName: string
- srcFilePattern: string Enscribe file pattern of volume.subVolume
- srcSchemaObjectName(required): string
- targetConnectionId(required): integer (int64) Connection Id.
- tgtCatalogObjectName: string
- tgtFilePattern: string Enscribe file pattern of volume.subVolume
- tgtSchemaObjectName(required): string
Match All
Show Source Example:
{ "exactName":false, "wildCard":[ { "srcLike":true, "srcPattern":"EMP%", "tgtLike":true, "tgtPattern":"EMP%" } ], "excludeViews":false, "mapTablePartitionName":true, "sourceConnectionId":1023, "targetConnectionId":1024, "srcSchemaObjectName":"VERIDATA", "srcCatalogObjectName":"ORCL1", "tgtSchemaObjectName":"VERIDATA_TGT", "tgtCatalogObjectName":"ORCL1_TGT" }
Nested Schema : PatternMapping
Type:
Show Source object
- exactName: boolean Default Value:
true
Map Source and Target Tables Using Exact Names. It is required during pattern mapping. - excludeViews: boolean Default Value:
false
- mapTablePartitionName: boolean Default Value:
false
Map Table Partition with exact name. - wildCard: object wildCard Map Source and Target Tables Using % OR * Wildcard Pattern. % or * should be used either at the start or end of the pattern. This will be used only if the exactName is set to false.
Nested Schema : wildCard
Type:
object
Map Source and Target Tables Using % OR * Wildcard Pattern. % or * should be used either at the start or end of the pattern. This will be used only if the exactName is set to false.
Show Source - srcLike: boolean Default Value:
true
Where Source Names Like/Not Like. - srcPattern: string Source Pattern.
- tgtLike: boolean Default Value:
true
Where Target names Like/Not Like. - tgtPattern: string Target Pattern
Response
Supported Media Types
- application/json
200 Response
Successfully generated compare pairs.
Nested Schema : MappedObject
Type:
Show Source object
- name: string Mapping name . Default is source table name = target table name.
- srcTable(required): srcTable Represents a table in compare pair with table and row partitions info, if any.
- tgtTable(required): tgtTable Represents a table in compare pair with table and row partitions info, if any.
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 Table Defines a table.
- 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 Table Defines a table.
- object tgtTable-allOf[1]
Nested Schema : Table
Type:
object
Defines a table.
Show Source - catalog: string
- filePattern: string NSK Encribe file pattern.
- isView: boolean
- name: string
- schema: string
- tablePartition: object tablePartition
Nested Schema : srcTable-allOf[1]
Type:
object
Nested Schema : tgtTable-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" }