概览
您需要一个有效的云暂存区来创建云暂存复制作业。要创建云暂存复制作业,请在请求 JSON 的设置对象中添加一个 cloudStagingArea 对象。确保该对象为作业指定有效的云暂存区。
使用以下 URL 和方法创建云暂存复制作业:
项目 | 说明 | ||
---|---|---|---|
URL | /datamover/jobs | ||
方法 | POST |
请求参数
- jobName
- 说明︰作业的名称
- uowind
- 说明:工作单元 ID
- sourceLogin
- 说明︰源系统的属性
- targetLogin
- 说明︰目标系统的属性
- settings
- 说明︰作业配置的属性
- jobSecurity
- 说明:作业安全性详细信息
- objects
- 说明︰要复制的对象
响应参数
无需响应参数。
响应示例
{ "error":"job creation failed, table does not exist in source database" }
请求示例
{ "jobName": "DMCSJob", "sourceLogin": { "teradata": { "username": "user", "password": "password", "tdpid": "sourceSystem", "sessionCharset": "UTF8", "passwordEncrypted": "false" } }, "targetLogin": { "teradata": { "username": "user", "password": "password", "tdpid": "targetSystem" }, "useTargetUserIdPool": false }, "settings": { "priority": "MEDIUM", "overwriteExistingObjects": "true", "freezeJobSteps": "false", "targetDatabase": "targetDatabaseJobLevel", "compareDDL": "true", "logLevel": "99", "tdTdSettings": { "forceUtility": "DSA", "dataStreams": 5, "sourceSessions": 10, "targetSessions": 10, "onlineArchive": "false" }, "enableTraceLog": { "cliTraceLog": { "netrace": -1, "netraceBufLen": -1 }, "tptTraceLog": { "tptapiDebug": -1 } }, "cloudStagingArea": { "name": "CSArea" }, "enableIncrementalRestore": "FALSE" }, "objects": { "database": [{ "name": "dm19948", "selection": "UNSELECTED", "table": [{ "name": "testtable", "ownerName": "devuser", "useSourceStagingTable": false, "forceTargetStagingTable": false, "targetDatabase": "test", "targetName": "test", "validateRowCount": "NONE", "selection": "INCLUDED", "teradataParameters": { "allowTPTLoadMultiset": false, "overrideLockAccess": false } }] }] } }