High Volume Agent Db2 for i API Configuration
Request
POST https://api.fivetran.com/v1/connections
{ "group_id": "group_id", "service": "db2i_hva", "trust_certificates": true, "trust_fingerprints": true, "run_setup_tests": true, "paused": false, "pause_after_trial": false, "sync_frequency": 1440, "data_delay_sensitivity": "NORMAL", "data_delay_threshold": 0, "daily_sync_time": "14:00", "schedule_type": "auto", "connect_card_config": { "redirect_uri": "https://your.site/path", "hide_setup_guide": true }, "proxy_agent_id": "proxy_agent_id", "private_link_id": "private_link_id", "networking_method": "Directly", "hybrid_deployment_agent_id": "hybrid_deployment_agent_id", "destination_configuration": { "virtual_warehouse": "virtual_warehouse" }, "destination_schema_names": "SOURCE_NAMING", "config": { "agent_user": "hvr", "connection_type": "Directly | SshTunnel | ProxyAgent", "agent_password": "agent_password", "always_encrypted": true, "log_journal": "test_log_journal", "log_journal_schema": "test_log_journal_schema", "agent_public_cert": "CERTIFICATE", "tunnel_user": "fivetran", "tunnel_port": 22, "database": "db2i", "password": "test_password", "port": 8471, "host": "host.com", "tunnel_host": "XXX.XXX.XXX.XXX", "agent_port": 4343, "agent_host": "host.com", "user": "test_user", "sap_schema": "string", "schema_prefix": "prefix" } }
Config parameters
| Name | Description |
|---|---|
agent_user | The agent user name. |
connection_type | Possible values:SshTunnel. SshTunnel is used as a value if this parameter is omitted in the request and the following parameter's values are specified: tunnel_host, tunnel_port, tunnel_user. |
agent_password | The agent password. |
always_encrypted | Require TLS through Tunnel |
log_journal | The log journal name. |
log_journal_schema | The log journal schema. |
agent_public_cert | The public certificate for the agent. |
tunnel_user | SSH user, specify only to connect via an SSH tunnel. Required for connector creation. |
tunnel_port | SSH port, only specify when connecting via an SSH tunnel. Required for connector creation. |
database | The database name. |
password | The user's password. |
port | The port number. |
host | A host address of the primary node. It should be a DB instance host/IP address with a port number. |
tunnel_host | SSH host, only specify when connecting via an SSH tunnel (do not use a load balancer). Required for connector creation. |
agent_port | The agent port. |
agent_host | The agent host. |
user | The user name. |
sap_schema | The SAP schema. |
schema_prefix (required) | Destination schema prefix. Prefix for each replicated schema. For example with prefix 'x', source schemas 'foo' and 'bar' get replicated as 'x_foo' and 'x_bar'. The prefix is permanent and cannot be changed after connection creation |
Authorization
There are two ways to authorize this connector type:
- By specifying the values for the
host,port,user,password,agent_host,agent_port,agent_public_cert,agent_userandagent_passwordparameters in the request.POST https://api.fivetran.com/v1/connections{ "service": "db2i_hva", "group_id": "group_id", "config": { "host": "host.com", "port": 8471, "user": "test_user", "password": "test_password", "agent_host": "host.com", "agent_port": 4343, "agent_public_cert": "CERTIFICATE", "agent_user": "hvr", "agent_password": "agent_password" } } By using the Connect Card or the Fivetran dashboard.