You need to enable JavaScript to run this app.
导航

SetIncrementalSyncInterval

最近更新时间2023.07.18 10:22:42

首次发布时间2023.07.18 10:22:42

调用SetIncrementalSyncInterval接口,设置自动增量同步。

请求参数

名称类型是否必填示例值描述
ActionStringSetIncrementalSyncInterval要执行的操作,取值: SetIncrementalSyncInterval。
VersionString2020-04-01API的版本,取值: 2020-04-01。

MigrationJobId

String

job-3tiegs1y963vj0****

迁移任务ID。您可以调用DescribeMigrationJobs接口查询获取。

根据迁移任务ID查询时,需要传入该参数。

SyncInterval

Integer

2

增量同步时间间隔,单位小时。取值范围:0~168。

  • 最大值:168。
  • 最小值:1。

返回数据

操作接口仅返回公共参数及错误码。

请求示例

GET /?Action=SetIncrementalSyncInterval&Version=2020-04-01&MigrationJobId=job-3tiegs1y963vj0****&SyncInterval=2 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: smc

返回示例

{
  "ResponseMetadata": {
    "RequestId": "202306051643546E59A4A3E62D****",
    "Action": "SetIncrementalSyncInterval",
    "Version": "2020-04-01",
    "Service": "smc",
    "Region": "cn-beijing"
  },
  "Result": {}
}

错误码

HttpCode错误码错误信息描述
400InvalidJobConfigForIncrementalSync.UnsupportedThe specified migration job does not support incremental sync.指定的迁移任务不支持增量迁移。
400InvalidJobStateForUpdateSyncInterval.UnsupportedThe specified migration job state does not support update sync interval.迁移任务不支持修改增量同步频率。
400LimitExceeded.MaximumSyncIntervalThe number of specified SyncInterval exceeds the maximum limit.指定的SyncInterval超过最大限制。
400LimitExceeded.MinimumSyncIntervalThe number of specified SyncInterval exceeds the minimum limit.指定的SyncInterval超过最小限制。
400MissingParameter.MigrationJobIdThe required parameter MigrationJobId is not supplied.参数MigrationJobId不能为空。
400MissingParameter.SyncIntervalThe required parameter SyncInterval is not supplied.参数SyncInterval不能为空。
404InvalidMigrationJob.NotFoundThe specified migration job does not exist.指定的迁移任务不存在。