본문으로 건너뛰기

ReplicationCreate

Payload used to create Replication. Required fields are name, collection_id, source, target.

nameName (string)필수

Stable name used to identify the resource. Minimum length: 1. Maximum length: 63.

Possible values: non-empty and <= 63 characters, Value must match regular expression ^[a-z][a-z0-9_]{0,62}(?![\s\S])

alias object
하나 이상(anyOf)
string
collection_idCollection Id (string)필수

Parent collection ID (required)

Possible values: non-empty

folder_id object
하나 이상(anyOf)
string
tags object
하나 이상(anyOf)
  • Array [
  • string
  • ]
  • description object
    하나 이상(anyOf)
    string
    typeType (string)
    상수 값: cdc
    기본값: cdc
    source object필수

    Data accepted by Create Replication. Required fields are connector_id, slot.

    connector_idConnector Id (string)필수

    Minimum length: 1.

    Possible values: non-empty

    slotSlot (string)필수

    Logical replication slot name (required)

    Possible values: non-empty

    publicationPublication (string)

    Publication that decides which tables are streamed

    Possible values: non-empty

    기본값: datacdc
    create_slotCreate Slot (boolean)

    Create the slot on start when it does not exist

    기본값: true
    schema object

    Single-relation filter (with table). Omit both to stream the whole publication

    하나 이상(anyOf)
    string
    table object

    Single-relation filter (with schema)

    하나 이상(anyOf)
    string
    tlsTls (boolean)

    Connect with TLS

    기본값: false
    tls_verifyTls Verify (boolean)

    Verify the server certificate when tls is on

    기본값: true
    fetch_timeoutFetch Timeout (string)

    Idle wait between change fetches

    기본값: 1s
    max_changesMax Changes (integer)

    Max changes fetched per round

    Possible values: >= 1

    기본값: 256
    commit_intervalCommit Interval (string)

    Batch commit interval

    기본값: 5s
    target object필수

    Target selected for Replication. The required field is connector_id.

    connector_idConnector Id (string)필수

    Minimum length: 1.

    Possible values: non-empty

    schema object

    Override the target schema for every event; defaults to the event's own

    하나 이상(anyOf)
    string
    tables object

    Per-relation target name mapping; unmapped relations keep their source name

    property name*string
    columns object

    Per-relation column selection and rename; a mapped relation keeps only the listed columns

    property name* object
    property name*string
    keystring[]

    Key columns for upsert / UPDATE / DELETE. Empty uses the target table's primary key. This is a sink-wide setting in datasink, so a keyless table needs its own Replication

    tlsTls (boolean)

    Connect with TLS

    기본값: false
    tls_verifyTls Verify (boolean)

    Verify the server certificate when tls is on

    기본값: true
    ReplicationCreate
    {
    "name": "string",
    "alias": "string",
    "collection_id": "string",
    "folder_id": "string",
    "tags": [
    "string"
    ],
    "description": "string",
    "type": "cdc",
    "source": {
    "connector_id": "string",
    "slot": "string",
    "publication": "datacdc",
    "create_slot": true,
    "schema": "string",
    "table": "string",
    "tls": false,
    "tls_verify": true,
    "fetch_timeout": "1s",
    "max_changes": 256,
    "commit_interval": "5s"
    },
    "target": {
    "connector_id": "string",
    "schema": "string",
    "tables": {},
    "columns": {},
    "key": [
    "string"
    ],
    "tls": false,
    "tls_verify": true
    }
    }