跳到主要内容

获取规格

接口描述

获取数据任务规格列表,以便创建任务时选择。

接口地址

/cloudcanal/console/api/v1/openapi/constant/listspecs

请求方式

POST

请求参数

参数名称参数说明请求类型是否必须数据类型
dataJobType数据任务类型

MIGRATION(数据迁移)
SYNC(数据同步)
CHECK(数据校验)
REVISE(数据订正)
STRUCT_MIGRATION(结构迁移)
bodystring
initialSync当 dataJobType 选择为 SYNC 时,是否进行数据初始化(全量数据迁移)bodyboolean
shortTermSync当 dataJobType 选择为 MIGRATION 时,是否进行有限时长的增量数据同步bodyboolean

公共响应结果

参数名称参数说明类型(java)不为空
code1:成功 0:失败string
dataobject
msgstring
requestIdstring

data 参数说明

data 为数组,数组元素为规格实体

参数名称参数说明类型(java)不为空
id规格idstring
specKind规格系列string
specKindCn规格中文名称string
spec规格string
description规格描述string
fullMemoryMb全量内存占用(MB)integer
increMemoryMb增量内存占用(MB)integer
checkMemoryMb校验内存占用(MB)integer

响应示例

{
  "taskId": 0,
  "code": "1",
  "msg": "request success",
  "data": [
    {
      "id": 1,
      "specKind": "IncreEnhance",
      "specKindCn": "增量增强型",
      "spec": "cloudcanal.increenhance.large.full.xlarge.incre",
      "description": "1 KB/record , record count < 20 m, incre tps < 1k",
      "fullMemoryMb": 1024,
      "increMemoryMb": 2048,
      "checkMemoryMb": 1024
    },
    {
      "id": 2,
      "specKind": "IncreEnhance",
      "specKindCn": "增量增强型",
      "spec": "cloudcanal.increenhance.large.full.2xlarge.incre",
      "description": "1 KB/record , record count < 20 m, incre tps < 2k",
      "fullMemoryMb": 1024,
      "increMemoryMb": 3072,
      "checkMemoryMb": 1024
    },
    {
      "id": 3,
      "specKind": "IncreEnhance",
      "specKindCn": "增量增强型",
      "spec": "cloudcanal.increenhance.large.full.3xlarge.incre",
      "description": "1 KB/record , record count < 20 m, incre tps < 10k",
      "fullMemoryMb": 1024,
      "increMemoryMb": 4096,
      "checkMemoryMb": 1024
    },
    {
      "id": 4,
      "specKind": "IncreEnhance",
      "specKindCn": "增量增强型",
      "spec": "cloudcanal.increenhance.xlarge.full.2xlarge.incre",
      "description": "1 KB/record , record count < 200 m, incre tps < 2k",
      "fullMemoryMb": 2048,
      "increMemoryMb": 3072,
      "checkMemoryMb": 2048
    },
    {
      "id": 5,
      "specKind": "IncreEnhance",
      "specKindCn": "增量增强型",
      "spec": "cloudcanal.increenhance.xlarge.full.3xlarge.incre",
      "description": "1 KB/record , record count < 200 m, incre tps < 10k",
      "fullMemoryMb": 2048,
      "increMemoryMb": 4096,
      "checkMemoryMb": 2048
    },
    {
      "id": 6,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.large.full.small.incre",
      "description": "1 KB/record , record count < 20 m, incre tps < 0.2k",
      "fullMemoryMb": 1024,
      "increMemoryMb": 512,
      "checkMemoryMb": 1024
    },
    {
      "id": 7,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.xlarge.full.small.incre",
      "description": "1 KB/record , record count < 200 m, incre tps < 0.2k",
      "fullMemoryMb": 2048,
      "increMemoryMb": 512,
      "checkMemoryMb": 2048
    },
    {
      "id": 8,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.2xlarge.full.small.incre",
      "description": "1 KB/record , record count < 500 m, incre tps < 0.2k",
      "fullMemoryMb": 3072,
      "increMemoryMb": 512,
      "checkMemoryMb": 3072
    },
    {
      "id": 9,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.3xlarge.full.small.incre",
      "description": "1 KB/record , record count < 2 b, incre tps < 0.2k",
      "fullMemoryMb": 4096,
      "increMemoryMb": 512,
      "checkMemoryMb": 4096
    },
    {
      "id": 10,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.xlarge.full.large.incre",
      "description": "1 KB/record , record count < 200 m, incre tps < 0.5k",
      "fullMemoryMb": 2048,
      "increMemoryMb": 1024,
      "checkMemoryMb": 2048
    },
    {
      "id": 11,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.2xlarge.full.large.incre",
      "description": "1 KB/record , record count < 500 m, incre tps < 0.5k",
      "fullMemoryMb": 3072,
      "increMemoryMb": 1024,
      "checkMemoryMb": 3072
    },
    {
      "id": 12,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.3xlarge.full.large.incre",
      "description": "1 KB/record , record count < 2 b, incre tps < 0.5k",
      "fullMemoryMb": 4096,
      "increMemoryMb": 1024,
      "checkMemoryMb": 4096
    },
    {
      "id": 13,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.2xlarge.full.xlarge.incre",
      "description": "1 KB/record , record count < 500 m, incre tps < 1k",
      "fullMemoryMb": 3072,
      "increMemoryMb": 2048,
      "checkMemoryMb": 3072
    },
    {
      "id": 14,
      "specKind": "FullEnhance",
      "specKindCn": "全量增强型",
      "spec": "cloudcanal.fullenhance.3xlarge.full.xlarge.incre",
      "description": "1 KB/record , record count < 2 b, incre tps < 1k",
      "fullMemoryMb": 4096,
      "increMemoryMb": 2048,
      "checkMemoryMb": 4096
    },
    {
      "id": 15,
      "specKind": "Balance",
      "specKindCn": "平衡型",
      "spec": "cloudcanal.balance.large.full.large.incre",
      "description": "1 KB/record , record count < 20 m, incre tps < 0.5k",
      "fullMemoryMb": 1024,
      "increMemoryMb": 1024,
      "checkMemoryMb": 1024
    },
    {
      "id": 16,
      "specKind": "Balance",
      "specKindCn": "平衡型",
      "spec": "cloudcanal.balance.xlarge.full.xlarge.incre",
      "description": "1 KB/record , record count < 200 m, incre tps < 1k",
      "fullMemoryMb": 2048,
      "increMemoryMb": 2048,
      "checkMemoryMb": 2048
    },
    {
      "id": 17,
      "specKind": "Balance",
      "specKindCn": "平衡型",
      "spec": "cloudcanal.balance.2xlarge.full.2xlarge.incre",
      "description": "1 KB/record , record count < 500 m, incre tps < 2k",
      "fullMemoryMb": 3072,
      "increMemoryMb": 3072,
      "checkMemoryMb": 3072
    },
    {
      "id": 18,
      "specKind": "Balance",
      "specKindCn": "平衡型",
      "spec": "cloudcanal.balance.3xlarge.full.3xlarge.incre",
      "description": "1 KB/record , record count < 2 b, incre tps < 10k",
      "fullMemoryMb": 4096,
      "increMemoryMb": 4096,
      "checkMemoryMb": 4096
    },
    {
      "id": 19,
      "specKind": "Balance",
      "specKindCn": "平衡型",
      "spec": "cloudcanal.balance.small.full.small.incre",
      "description": "1 KB/record , record count < 10 m, incre tps < 0.2k",
      "fullMemoryMb": 512,
      "increMemoryMb": 512,
      "checkMemoryMb": 512
    }
  ]
}